header{
    height: 12vh!important;
}

header .container-fluid .row{
    height: 12vh
}

header .logo-sitt img{
    max-height: 8vh;
}

@media (max-width: 576px){
    header .logo-sitt img{
        max-height: 5vh;
    }
}

main{
    height: 80vh!important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

#imagen-background .container-fluid:not(.modal .container){
    height: 80vh!important;
    /* width: 80vw; */
}

#contenido .container-fluid > .row:first-child{
    height: 80vh!important;
    /* width: 80vw; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#contenido .slide .container-fluid > .row:first-child .titulo{
    height: 8vh!important;
}

#contenido .slide .container-fluid > .row:first-child .texto{
    height: 62vh!important;
    /* width: 80vw; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contenido .slide .container-fluid > .row:first-child .texto-img{
    height: 50vh!important;
}

#contenido .slide .container-fluid > .row:first-child .completo{
    height: 72vh!important;
    /* width: 80vw; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#contenido .slide .container-fluid > .row:first-child .completo video{
    max-height: 100%;
    width: 100%;
}
.video-container {
    width: 177.77vh; /* 🔥 16/9 = 1.7777 → Calcula el ancho basado en la altura */
    height: 100vh; /* 🔥 Se adapta al alto del viewport */
    max-width: 100vw; /* 🔥 Evita que el ancho exceda la pantalla */
    margin: 0 auto; /* Centrar */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

#contenido .container-fluid .col-4.texto{
    height: 62vh;
    /* width: 26.4vw; */
    display: flex;
    justify-content: center;
    align-items: center;
}
img.contenido:not(.modal img.contenido){
    height: 80%; /* Ajustar la altura de la imagen al 100% del contenedor */
    width: 80%; /* Ajustar la anchura de la imagen al 100% del contenedor */
    object-fit: contain; /* Mantener la relación de aspecto y ajustar la imagen dentro del contenedor */
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--blanco);
    box-shadow: 6px 7px 10px 4px rgba(0,0,0,0.36);
    margin-bottom: 1rem;
}

img.contenido.extra:not(.modal img.contenido){
    width: auto;
    object-fit: contain; /* Mantener la relación de aspecto y ajustar la imagen dentro del contenedor */
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--blanco);
    box-shadow: 6px 7px 10px 4px rgba(0,0,0,0.36);
    margin-bottom: 1rem;
}

#contenido .container-fluid > .row:first-child .col-12.botones{
    height: 8vh!important;
}

footer{
    height: 8vh
}

footer .container-fluid{
    height: 8vh
}

footer .logo-gebro img{
max-height: 6vh;
}

@media (max-width: 576px){
    footer .logo-gebro img{
        max-height: 5vh;
    }
}

@media (max-width: 767px) { 
    header, footer {
        height: auto !important; /* 🔥 Permite que crezcan si es necesario */
        min-height: 10vh; /* 🔥 Evita que sean demasiado pequeños */
    }

    main {
        height: auto !important; /* 🔥 Se expande en móviles si es necesario */
        min-height: 76vh; /* 🔥 Asegura que no sea demasiado pequeño */
        overflow: auto; /* 🔥 Habilita el scroll si el contenido no cabe */
    }

    #imagen-background .container-fluid:not(.modal .container) {
        height: auto !important;
        min-height: 76vh;
    }

    #contenido .container-fluid > .row:first-child {
        height: auto !important;
        min-height: 76vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    #contenido .slide .container-fluid > .row:first-child .titulo {
        height: auto !important;
        min-height: 8vh;
    }

    #contenido .slide .container-fluid > .row:first-child .texto {
        height: auto !important;
        min-height: 58vh;
    }

    #contenido .slide .container-fluid > .row:first-child .texto-img {
        height: auto !important;
        min-height: 50vh;
    }

    #contenido .slide .container-fluid > .row:first-child .completo {
        height: auto !important;
        min-height: 68vh;
    }

    #contenido .container-fluid .col-4.texto {
        height: auto !important;
        min-height: 58vh;
    }

    /* Ajustar imágenes */
    img.contenido:not(.modal img.contenido) {
        height: auto;
        max-height: 60vh; /* 🔥 Evita que sean demasiado grandes */
        width: auto;
        max-width: 90%;
    }

    img.contenido.extra:not(.modal img.contenido) {
        max-width: 100%;
    }

    /* Ajustar los botones */
    #contenido .container-fluid > .row:first-child .col-12.botones {
        height: auto !important;
        min-height: 6vh;
    }

    /* Ajustar el footer en móviles */
    footer .logo-gebro img {
        max-height: 6vh;
    }
}
