/*---------------------------------------------ANIMACIÓN---------------------------------------------*/

#splash {
    position: fixed;
    inset: 0;
    background-color: rgba(2, 1, 51, 0.878);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    transition: opacity 1.5s ease;
    opacity: 1;
}

#splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

#splash img {
    width: 30%;
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 2s ease forwards;
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1.2);
    }
}


/* ---------------------------------------------CUERPO------------------------------------------------- */

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%;
    z-index: 1000;
    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/Fondo1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: scroll;
}

main#contenido .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    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;
}


/*-----------------------------------CARRUSEL-------------------------------------*/

.carrusel {
    position: relative;
    z-index: 2;
    top: 8vh;
    margin: auto;
    width: 90%;
    height: 65vh;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.4));
}

.slides {
    display: flex;
    height: 100%;
    border-radius: 20px;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

button.prev,
button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

button.prev:hover,
button.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

.puntos {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.punto {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s;
}

.punto.active {
    background-color: rgba(255, 255, 255, 1);
}


/*-----------------------------------MINI-CARRUSEL-------------------------------------*/

.carrusel-mini {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.carrusel-mini img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* 🔹 transición suave de 1 segundo */
}

.carrusel-mini img.active {
    opacity: 1;
    z-index: 1;
}

.Bienvenida {
    position: relative;
    color: white;
    z-index: 5;
    text-align: center;
    margin: 7% auto 0;
    width: 80%;
    font-family: 'Playfair Display', serif;
}

.texto1 {
    font-size: 4rem;
    font-weight: 400;
    font-family: "Pinyon Script", cursive;
    font-style: normal;
}

.texto2 {
    font-size: 5rem;
    font-weight: 700;
    color: #e5bb51;
}

.texto3 {
    font-size: 1.5rem;
    font-weight: 300;
    font-family: cursive;
}

.animar {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
}

.EspacioFinal {
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    height: 4vh;
    color: white;
    z-index: 16;
}

.Cuerpo {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    position: relative;
    color: white;
    z-index: 10;
    gap: 4rem;
    height: 60vh;
    margin: 5% 5%;
}

.box,
.Boximagen {
    flex: 1;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centra el contenido verticalmente */
}

.Boximagen {
    width: auto;
    height: 100%;
    justify-content: right;
}

.Boximagen img {
    border-radius: 20px;
    height: 100%;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
}

.Boximagen img:hover {
    transform: scale(1.03);
}

.Titulo {
    font-weight: 400;
    font-family: "Pinyon Script", cursive;
    font-style: normal;
    font-size: 3.5rem;
    cursor: pointer;
}

.Titulo:hover {
    color: #e5bb51;
}

.Info {
    margin-top: 5%;
    font-family: "Newsreader", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
    text-align: justify;
    font-size: 1.7rem;
}


/*----------------------------------------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) {
    .carrusel {
        height: 55vh;
    }
    .Bienvenida {
        width: 90%;
        margin-top: 15%;
    }
    .texto1 {
        font-size: 2.8rem;
    }
    .texto2 {
        font-size: 3rem;
    }
    .texto3 {
        font-size: 1rem;
    }
    .Titulo {
        font-size: 2.8rem;
    }
    .Info {
        font-size: 1.5rem;
    }
    .Cuerpo {
        gap: 2rem;
        height: auto;
        flex-wrap: wrap;
    }
    .orden .carrusel-mini {
        position: relative;
        min-height: 53vh;
    }
    .orden .carrusel-mini img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    #splash img {
        width: 50%;
    }
    .logo-wrap {
        font-size: 1.5rem;
    }
}

@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.5rem;
    }
    .Cuerpo {
        margin: 7% 5% 5% 5%;
        flex-direction: column;
    }
    .Cuerpo .Boximagen:not(.carrusel-mini) {
        flex: none;
        height: 50vh;
        position: relative;
    }
    .Cuerpo .Boximagen:not(.carrusel-mini) img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: static;
    }
    .orden .carrusel-mini {
        order: 2;
        position: relative;
        min-height: 50vh;
    }
    .orden .carrusel-mini img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .orden .box {
        order: 1;
    }
    .Titulo {
        font-size: 2.5rem;
    }
    .Info {
        font-size: 1.2rem;
    }
    .carrusel {
        width: 95%;
        height: 50vh;
    }
    #splash img {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        padding-right: 5%;
    }
    header {
        padding: 0.5rem;
    }
    .carrusel {
        width: 90%;
        height: 40vh;
    }
    .slides img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .Bienvenida {
        width: 90%;
        margin-top: 25%;
    }
    .texto1 {
        font-size: 1.8rem;
    }
    .texto2 {
        font-size: 2rem;
    }
    .texto3 {
        font-size: 1rem;
    }
    .Cuerpo {
        margin: 7% 5% 5% 5%;
        flex-direction: column;
    }
    .Cuerpo .Boximagen:not(.carrusel-mini) {
        flex: none;
        height: 40vh;
        position: relative;
    }
    .Cuerpo .Boximagen:not(.carrusel-mini) img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: static;
    }
    .orden .carrusel-mini {
        order: 2;
        position: relative;
        min-height: 40vh;
    }
    .orden .carrusel-mini img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .orden .box {
        order: 1;
    }
    .Titulo {
        font-size: 1.8rem;
        color: #e5bb51;
    }
    .Info {
        font-size: 1.2rem;
    }
    .EspacioFinal {
        font-size: 0.8rem;
    }
    .logo-wrap {
        font-size: 1.2rem;
    }
    #splash img {
        width: 70%;
    }
}