/* ---------------------------------------------HEADER y FONDO------------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    background-color: white;
    padding: 0.5% 0 0.5% 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* que ocupe todo el ancho */
    z-index: 1000;
    /* para que esté por encima de otros elementos */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

main#contenido {
    margin-top: 8vh;
    min-height: calc(100vh - 100px);
    background-image: url('../imagenes/Index/Carrusel2.jpg');
    background-size: cover;
    /* cubre todo el área */
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

main#contenido .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* negro semitransparente, ajusta el 0.3 al gusto */
    z-index: 1;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px auto;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 2vw;
}

.logo-wrap {
    width: 21vw;
    display: flex;
    align-items: center;
    color: rgb(24, 154, 219);
    font-family: fantasy;
    font-size: 1.7vw;
    justify-content: space-around;
}

.logo-wrap img {
    height: 8vh;
}

.verde {
    color: rgba(41, 217, 75)
}

.bar-wrap {
    width: 75%;
    display: flex;
    justify-content: flex-end;
    color: black;
    gap: 2.5%
}

.bar-wrap li {
    list-style: none;
}

.bar-wrap a {
    text-decoration: none;
    color: inherit;
}

.bar-wrap a:hover {
    color: rgb(24, 154, 219);
    font-weight: bold;
}

.bar-wrap div:hover {
    color: rgb(24, 154, 219);
    font-weight: bold;
}


/*-------------------------------BODY--------------------------------*/

.Bienvenida {
    position: relative;
    color: white;
    z-index: 10;
    top: 4vh;
    margin: auto;
    width: 90%;
    height: auto;
    overflow: hidden;
    text-align: center;
}

.texto1 {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #e5bb51;
}

.texto2 {
    font-size: 1.5rem;
    font-weight: 300;
    font-family: cursive;
}

.Descripcion {
    position: relative;
    display: flex;
    color: white;
    z-index: 10;
    margin: 5% 5% 2% 5%;
}

.Cuerpo {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: relative;
    color: white;
    z-index: 10;
    gap: 4rem;
    height: auto;
    margin: 0 5%;
}

.Informa {
    font-family: "Newsreader", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
    font-size: 1.7rem;
    text-align: justify;
    line-height: 125%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.845);
}

.box {
    flex: 1;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.Boximagen {
    height: 70vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    margin-right: 2%;
}

.Boximagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.animar {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
}

.Imagen {
    position: relative;
    overflow: hidden;
    height: auto;
    border-radius: 20px 20px;
}

.Imagen img {
    border-radius: 20px 20px;
    height: auto;
    aspect-ratio: 16 / 19;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.overlayInfo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.589);
    color: black;
    display: flex;
    flex-direction: column;
    /* los textos se colocan uno debajo del otro */
    gap: 0.5rem;
    /* separación entre textos */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px 20px;
}

.Boximagen:hover .overlayInfo {
    opacity: 1;
}

.Info {
    text-align: center;
    font-size: 3rem;
    font-family: "Pinyon Script", cursive;
    font-style: normal;
    font-weight: 600;
    padding: 0 5%;
}

.Invisible {
    display: none;
}


/*----------------------------------------VIDEOS-------------------------------------------*/

.txt {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: justify;
    color: white;
    z-index: 10;
    font-family: "Newsreader", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
    font-size: 1.7rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.845);
    margin: 5% 5% 0 5%;
    line-height: 125%;
}

.space {
    padding-left: 2%;
}

.VideoBox {
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    margin: 2.5% 5% 1% 5%;
    z-index: 10;
}

.VideoBox video {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}


/*----------------------------------------Carrusel-------------------------------------------*/

.ImagenesBottom {
    position: relative;
    z-index: 10;
    height: auto;
    margin: 2% 5%;
}

.carrusel-mini {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.carrusel-mini img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carrusel-mini img.active {
    opacity: 1;
    z-index: 1;
}


/*----------------------------------------Footer-------------------------------------------*/

.EspacioFinal {
    display: flex;
    align-items: stretch;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 1%;
    position: relative;
    height: 8vh;
    color: white;
    z-index: 16;
}


/*----------------------------------------RESPONSIVE---------------------------------------*/

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: rgb(24, 154, 219);
}

.bar-wrap {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    transition: all 0.3s ease;
}

.bar-wrap.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    z-index: 999;
}

@media (max-width: 1024px) {
    .logo-wrap {
        font-size: 1.3rem;
    }
    .Cuerpo {
        align-items: center;
    }
    .carrusel-mini {
        height: 70vh;
    }
    .carrusel-mini img {
        border-radius: 20px;
    }
    .Bienvenida {
        width: 100%;
        margin: 5% 0;
    }
    .texto1 {
        font-size: 4rem;
    }
    .texto2 {
        font-size: 1.5rem;
    }
    .Boximagen .BoximagenPlaya{
        margin-right: 0;
    }
    .Boximagen {
        min-height: 70vh;
        height: 70vh;
        border-radius: 20px;
    }
    .BoximagenPlaya {
        min-height: 50vh;
        height: 50vh;
        border-radius: 20px;
    }
    .Informa {
        font-size: 1.5rem;
    }
    .txt {
        font-size: 1.5rem;
    }
    .Descripcion {
        margin-top: 7%;
    }
    .Invisible {
        display: none;
    }
    .EspacioFinal {
        padding: 7% 0 3% 0;
        height: auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .bar-wrap {
        display: none;
        flex-direction: column;
    }
    .bar-wrap.active {
        display: flex;
    }
    .logo-wrap img {
        height: 60px;
    }
    .logo-wrap {
        font-size: 1.3rem;
    }
    .columnas {
        position: relative;
        display: flex;
        flex-direction: column;
    }
    .Bienvenida {
        width: 100%;
        order: 1;
        margin: 2.5% 0;
    }
    .texto1 {
        font-size: 3rem;
    }
    .texto2 {
        font-size: 1.2rem;
    }
    .ColumnaOrden {
        order: 2;
        margin-top: 5%;
    }
    .Cuerpo {
        flex-direction: column;
        gap: 0;
    }
    .box {
        padding-left: 5%;
    }
    .Boximagen{
        min-height: 70vh;
        height: 70vh;
        border-radius: 20px;
    }
    .BoximagenPlaya {
        min-height: 35vh;
        height: 35vh;
        border-radius: 20px;
    }
    .Invisible {
        display: flex;
        opacity: 1;
        width: 100%;
        margin: auto 5%;
        font-family: "Newsreader", serif;
        font-optical-sizing: auto;
        font-style: normal;
        font-weight: 300;
        font-size: 1.2rem;
        text-align: justify;
        margin: 8% 0 5% 0;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.845);
    }
    .Boximagen:hover .overlayInfo {
        opacity: 0;
    }
    .BoximagenPlaya:hover .overlayInfo {
        opacity: 0;
    }
    .Informa {
        font-size: 1.2rem;
        text-shadow: 2px 2px 4px rgb(0, 0, 0);
    }
    .txt {
        font-size: 1.2rem;
    }
    .VideoBox video {
        height: 70vh;
    }
    .space {
        padding-left: 5%;
    }
    .ImagenesBottom {
        margin: 4% 5% 2% 5%;
    }
    .carrusel-mini {
        border-radius: 20px;
    }
    .EspacioFinal {
        font-size: 0.8rem;
        order: 5;
        padding: 8% 0 3% 0;
        height: auto;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        padding-right: 5%;
    }
    header {
        padding: 0.5rem;
    }
    .columnas {
        position: relative;
        display: flex;
        flex-direction: column;
    }
    .Bienvenida {
        width: 100%;
        margin: 5% 0;
        order: 1;
    }
    .texto1 {
        font-size: 2rem;
    }
    .texto2 {
        font-size: 1rem;
    }
    .ColumnaOrden {
        order: 2;
        margin-top: 5%;
    }
    .Cuerpo {
        flex-direction: column;
        gap: 0;
    }
    .box {
        padding-left: 5%;
    }
    .Boximagen {
        min-height: 50vh;
        height: 50vh;
        border-radius: 20px;
    }
    .BoximagenPlaya{
        min-height: 20vh;
        height: 20vh;
    }
    .Invisible {
        opacity: 1;
        width: 100%;
        margin: auto 5%;
        font-family: "Newsreader", serif;
        font-optical-sizing: auto;
        font-style: normal;
        font-weight: 300;
        text-align: justify;
        margin: 8% 0 5% 0;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.845);
    }
    .Boximagen:hover .overlayInfo {
        opacity: 0;
    }
    .BoximagenPlaya:hover .overlayInfo {
        opacity: 0;
    }
    .Informa {
        font-size: 1.2rem;
        text-shadow: 2px 2px 4px rgb(0, 0, 0);
    }
    .txt {
        font-size: 1.2rem;
    }
    .VideoBox video {
        height: 50vh;
    }
    .space {
        padding-left: 5%;
    }
    .ImagenesBottom {
        margin: 4% 5% 2% 5%;
    }
    .EspacioFinal {
        font-size: 0.8rem;
        order: 3;
        padding: 8% 0;
        height: auto;
    }
    .logo-wrap {
        font-size: 1.2rem;
    }
}