@import url("https://fonts.googleapis.com/css2?family=poppins:wght@300;400;500;600;700;800;900&display=swap");

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins",sans-serif;
}


/* Asegúrate de que el body ocupe toda la altura de la ventana */
body {
    display: flex;
    flex-direction: column; /* Asegura que los elementos hijos se apilen verticalmente */
    min-height: 100vh; /* Ocupa al menos el 100% de la altura de la ventana */
    margin: 0; /* Elimina márgenes */
}

/* El contenedor principal debe ocupar el espacio restante */
main {
    flex: 1; /* Hace que el contenido principal ocupe el espacio disponible */
}

/*Header_______________________________________________________________________________*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    font-size: 0.9rem;
    min-height: 50px; /* Establece una altura mínima */
    max-height: 70px; /* Establece una altura máxima */
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .1);
    backdrop-filter: blur(50px);
    z-index: -1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transition: .5s;
}

.header:hover::after {
    left: 100%;
}

.logo {
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.856));
}

.logo img {
    width: auto;
    max-width: 80px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.856));
}

.navbar a {
    font-size: 0.8rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 2rem;
    transition: transform 0.1s ease, color 0.3s ease;
    display: inline-block;
    text-shadow: 0 2px 5px rgb(212, 14, 14);
}

.navbar a:hover {
    transform: scale(1.15); /* Incrementa ligeramente el efecto de agrandamiento */
    color: rgb(228, 18, 18); /* Mantiene el color al pasar el cursor */
    text-shadow: 0 4px 8px rgb(235, 14, 14); /* Aumenta la intensidad de la sombra */
    transition: transform 0.3s ease-in-out, color 0.3s ease, text-shadow 0.3s ease; /* Transiciones más rápidas y suaves */
    position: relative;
}

.navbar a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(235, 16, 16);
    transition: width 0.4s ease, background-color 0.3s ease;
}

.navbar a:hover {
    color: rgb(230, 20, 20); /* Mantiene el color al pasar el cursor */
    text-shadow: 0 4px 8px rgb(226, 12, 12); /* Aumenta la intensidad de la sombra */
}

.navbar a:hover::after {
    width: 100%; /* Anima la línea subrayada */
    background-color: rgb(230, 21, 21); /* Cambia el color de la línea al pasar el cursor */
}

#check {
    display: none;
}

.icons {
    position: absolute;
    right: 5%;
    font-size: clamp(2rem, 2.5vw, 2.8rem); /* Responsive font size */
    color: #ffffff; /* White color for better contrast */
    cursor: pointer;
    display: none;
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth transitions */
}

.icons:hover {
    transform: scale(1.2); /* Slight enlargement on hover */
    color: rgb(226, 19, 19) /* Light blue color on hover */
}

@media (max-width: 992px) {
    .header {
        padding: clamp(1rem, 2vw, 1.3rem) clamp(3%, 5vw, 5%);
    }
}

@media (max-width: 768px) {
    .icons {
        display: inline-flex;
    }

    #check:checked~.icons #menu-icon {
        display: none;
    }

    .icons #close-icon {
        display: none;
    }

    #check:checked~.icons #close-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        max-height: none;
        overflow: hidden;
        background: rgba(0, 0, 0, .1);
        backdrop-filter: blur(50px);
        z-index: -1;
        transition: .3s ease;
    }

    #check:checked~.navbar {
        height: auto;
    }

    .navbar a {
        display: block;
        font-size: clamp(1rem, 2.5vw, 1.1rem);
        margin: clamp(0.8rem, 2vw, 1.5rem) 0;
        text-align: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: .3s ease;
    }

    #check:checked~.navbar a {
        transform: translateY(0);
        opacity: 1;
        transition-delay: calc(.15s * var(--i));
    }

    .logo img {
        width: clamp(80px, 10vw, 100px);
        height: clamp(80px, 10vw, 100px);
        object-fit: contain;
    }

    .logo {
        position: static;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        width: clamp(80px, 10vw, 100px);
        height: clamp(80px, 10vw, 100px);
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .home .content h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .home .content p {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        line-height: clamp(1.2, 2vw, 1.3);
    }

    .home .content img {
        width: clamp(100px, 20vw, 150px);
        filter: drop-shadow(0 0 5px rgb(216, 12, 12));
    }

    .pie-pagina .grupo-1 .box {
        width: clamp(70%, 90%, 80%);
        margin: 10px auto;
    }

    .pie-pagina .grupo-1 {
        gap: clamp(5px, 2vw, 10px);
    }

    .logo img {
        max-width: clamp(100px, 15vw, 140px);
        filter: drop-shadow(0 0 5px rgb(255, 255, 255));
        height: auto;
    }
}

/*end-Header______________________________________________________________________________*/

/* Slider */
.slider {
    display: flex;
    height: 100vh;
    margin-top: -30px;
    position: relative;
}

.slider .list .item {
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: .5s;
    margin-top: 5px; /* Margen superior agregado */
    justify-content: center; /* Centrar el contenido */
    align-items: center;
}

.slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Centrar la imagen */
}

.slider .list .item:nth-child(2) img {
    object-position: 80% center; /* Mostrar el 80% del lado derecho */
}

.slider .list .item:nth-child(3) img {
    object-position: 60% center; /* Centrar mostrando el 60% del lado derecho */
}

.slider .list .item:nth-child(3) img:hover {
    transform: scale(1.05); /* Efecto de zoom */
}

.slider .list .item:nth-child(4) img {
    object-position: left; /* Mostrar siempre la parte izquierda */
}

.slider .list .item:nth-child(5) img {
    object-position: right; /* Mostrar siempre la parte derecha */
}

.slider .list .item.active {
    opacity: 1;
    z-index: 10;
}

.slider .list .item .content {
    position: absolute;
    left: 10%;
    top: 10%;
    width: 500px;
    max-width: 80%;
    z-index: 1;
}

.slider .list .item .content p:nth-child(1) {
    text-transform: uppercase;
    letter-spacing: 5px;
}

.slider .list .item .content h2 {
    font-size: 100px;
    margin: 0;
}

/* Thumbnail */
.thumbnail {
    position: absolute;
    bottom: 10px; /* Ajustar la posición */
    z-index: 11;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden; /* Ocultar la barra de scroll vertical */
    scroll-behavior: smooth;
    gap: 5px; /* Ajustar el espaciado entre miniaturas */
    width: 100%;
    height: 180px; /* Aumentar la altura del contenedor */
    padding: 15px 25px; /* Aumentar el espaciado interno */
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    background: rgba(14, 9, 9, 0.288); /* Fondo más claro y semitransparente */
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.829); /* Sombra más pronunciada */
    display: flex !important; /* Forzar visibilidad */
    visibility: visible !important; /* Asegurar que sea visible */
    opacity: 1 !important; /* Asegurar que no esté oculta */
}

/* Optimizar sombras y bordes */
.thumbnail .item img {
    width: auto; /* Ajustar el ancho automáticamente */
    height: auto; /* Ajustar la altura automáticamente */
    max-height: 160px; /* Limitar la altura máxima */
    max-width: 160px; /* Limitar el ancho máximo */
    object-fit: contain; /* Mostrar la imagen completa sin recortes */
    border-radius: 12px; /* Bordes redondeados */
    background-color: transparent; /* Fondo transparente */
    display: block; /* Asegurar comportamiento consistente */
    margin: auto; /* Centrar la imagen */
    border: 1px solid transparent; /* Reducir grosor del borde */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Reducir sombra */
    transition: box-shadow 0.2s ease; /* Simplificar transición */
}

.thumbnail .item.active img {
    border: 2px solid #fff; /* Aumentar el grosor del borde blanco */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); /* Reducir sombra */
    transition: box-shadow 0.2s ease; /* Simplificar transición */
}

.thumbnail .item:hover img {
    border-color: #fff; /* Mostrar borde blanco al pasar el mouse */
}

/* List */
.list .item .content img {
    width: 100%;
    max-width: 150px; /* Aumentar el tamaño máximo de las imágenes */
    border-radius: 5px;
    box-shadow: 10px 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    transition: 0.3s;
    object-fit: cover; /* Ajustar la imagen al contenedor */
    object-position: center; /* Centrar la imagen */
    margin: 0 auto; /* Centrar la imagen */
    padding: none;
}

.list .item .content h4 {
    color: #ffffff;
    font-weight: 500; /* Aumentar ligeramente el grosor del texto */
    font-size: 1rem; /* Incrementar el tamaño del texto */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7); /* Sombra más suave y pronunciada */
    margin: 5px 0; /* Agregar un margen superior e inferior */
    padding: 5px 10px; /* Agregar padding para mayor espacio interno */
    text-align: center; /* Centrar el texto */
    background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    border-radius: 8px; /* Bordes redondeados */
    transition: transform 0.3s ease, color 0.3s ease; /* Transición suave para efectos */
}

.list .item .content h4:hover {
    transform: scale(1.1); /* Efecto de zoom al pasar el mouse */
    color: #24b4b4; /* Cambiar el color al pasar el mouse */
    text-shadow: 0 4px 10px rgba(36, 180, 180, 0.8); /* Sombra más brillante al pasar el mouse */
}

.list .item .content p {
    margin-top: 0px; /* Mantener margen superior */
    font-size: 1.1rem; /* Aumentar ligeramente el tamaño del texto */
    font-weight: 700; /* Texto más negrita para mejor legibilidad */
    line-height: 1.6; /* Espaciado entre líneas mejorado */
    color: #ffffff; /* Texto blanco para mejor contraste */
    text-align: justify; /* Justificar el texto */
    padding: 12px 18px; /* Espaciado interno ajustado */
    margin: 8px 0; /* Margen externo ajustado */
    background-color: rgba(0, 0, 0, 0.3); /* Fondo más oscuro con transparencia ajustada */
    border-radius: 10px; /* Bordes más redondeados */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); /* Sombra más pronunciada */
    transition: all 0.3s ease; /* Transición suave para todos los cambios */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7); /* Sombra para destacar el texto */
}

.list .item .content p:hover {
    transform: scale(1.05); /* Efecto de zoom al pasar el mouse */
    background-color: rgba(255, 255, 255, 0.8); /* Fondo con color atractivo */
    color: #000; /* Cambiar texto a negro para contraste */
    text-shadow: 0 4px 10px rgba(36, 180, 180, 0.8); /* Sombra más brillante */
}

.list .conntent  h4 i{
    background-color: orange;

}

.list .content .button {
    position: relative;
    
    /*aca*/
    
}

.item{
    display: flex;
}

.item .content {
    margin-top: 5px; /* Mantener margen superior */
}



.slider .list .item:nth-child(2) img {
    object-position: 80% center; /* Mostrar el 80% del lado derecho */
}

.slider .list .item:nth-child(3) img {
    object-position: 60% center; /* Centrar mostrando el 60% del lado derecho */
}

.slider .list .item:nth-child(3) img:hover {
    transform: scale(1.05); /* Efecto de zoom */
}

.list .content .button a {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    background: linear-gradient(to right, #ff6f61, #b3473c);
    color: #fff;
    padding: 6px 12px; /* Reducir el padding de los botones */
    font-size: 0.8rem; /* Reducir el tamaño del texto en los botones */
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.list .content .button a:hover:nth-child(2){
    background: #b85d09;
}

.slider{
    display: flex;
    height: 100vh;
    margin-top: -30px;
    position: relative;
}
.slider .list .item{
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: .5s;
    margin-top: 5px; /* Margen superior agregado */
}
.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Centrar la imagen */
}
.slider .list .item{
    justify-content: center; /* Centrar el contenido */
    align-items: center;
}
.slider .list .item:nth-child(4) img {
    object-position: left; /* Mostrar siempre la parte izquierda */
}
.slider .list .item:nth-child(5) img {
    object-position: right; /* Mostrar siempre la parte derecha */
}
.slider .list .item::after{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    /*background-image: linear-gradient(
        to top, #000 40%, transparent
    );*/
}
.slider .list .item .content{
    position: absolute;
    left: 10%;
    top: 10%;
    width: 500px;
    max-width: 80%;
    z-index: 1;
}
.slider .list .item .content p:nth-child(1){
    text-transform: uppercase;
    letter-spacing: 5px;
}
.slider .list .item .content h2{
    font-size: 100px;
    margin: 0;
}
.slider .list .item.active{
    opacity: 1;
    z-index: 10;
}
@keyframes showContent {
    to{
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}
.slider .list .item.active p:nth-child(1),
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(3){
    transform: translateY(30px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .15s .17s ease-in-out 1 forwards;
}
.slider .list .item.active h2{
    animation-delay: 1s;
}
.slider .list .item.active p:nth-child(3){
    animation-duration: 1.3s;
}
.arrows{
    position: absolute;
    top: 25%;
    right: 30px;
    z-index: 100;
}
.arrows button{
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semitransparente negro */
    color: #fff; /* Texto blanco */
    font-family: monospace;
    width: 50px; /* Ajustar ancho para mantener proporción */
    height: 50px; /* Ajustar altura de las flechas */
    border-radius: 5px;
    font-size: x-large;
    transition: .5s;
    border-color: #fff ;
}

/* Reducir transiciones en botones */
.arrows button {
    transition: background-color 0.2s ease, transform 0.2s ease; /* Simplificar transición */
}

.arrows button:hover{
    background-color: rgba(255, 255, 255, 0.8); /* Fondo semitransparente blanco al pasar el mouse */
    color: black; /* Texto negro */
    transform: scale(1.05); /* Reducir el escalado */
    
}

.arrows button:active{
    transform: scale(0.9);
}
.arrows button:focus{
    outline: none;
}
.arrows button:disabled{
    background-color: #eee5; /* Verificar si este color es consistente */
    color: #eee; /* Confirmar contraste adecuado */
    cursor: not-allowed;
}

.arrows button:disabled:hover{
    background-color: #eee5;
    color: #eee;
}

.arrows button:disabled:active{
    transform: scale(1); /* Confirmar si este comportamiento es deseado */
}

.arrows button:disabled:focus{
    outline: none; /* Asegurar que no haya problemas de accesibilidad */
}

@media screen and (max-width: 768px) {
    .arrows button {
        height: 40px; /* Reducir altura en pantallas medianas */
        width: 40px; /* Ajustar ancho proporcionalmente */
    }
}

@media screen and (max-width: 480px) {
    .arrows button {
        height: 30px; /* Reducir aún más la altura en pantallas pequeñas */
        width: 30px; /* Ajustar ancho proporcionalmente */
    }
}

/* Thumbnail Styles */
.thumbnail {
    position: absolute;
    bottom: 10px; /* Ajustar la posición */
    z-index: 11;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden; /* Ocultar la barra de scroll vertical */
    scroll-behavior: smooth;
    gap: 5px; /* Ajustar el espaciado entre miniaturas */
    width: 100%;
    height: 180px; /* Aumentar la altura del contenedor */
    padding: 15px 25px; /* Aumentar el espaciado interno */
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    background: rgba(14, 9, 9, 0.288); /* Fondo más claro y semitransparente */
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.829); /* Sombra más pronunciada */
    display: flex !important; /* Forzar visibilidad */
    visibility: visible !important; /* Asegurar que sea visible */
    opacity: 1 !important; /* Asegurar que no esté oculta */
}

.thumbnail::-webkit-scrollbar {
    height: 8px; /* Altura del scrollbar */
}

.thumbnail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5); /* Color del scrollbar */
    border-radius: 10px;
}

.thumbnail::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7); /* Color al pasar el mouse */
}

.thumbnail .item {
    width: auto; /* Ajustar el ancho automáticamente */
    height: auto; /* Ajustar la altura automáticamente */
    display: inline-block; /* Mostrar las imágenes en línea */
    background: none; /* Fondo transparente por defecto */
    margin: 0; /* Eliminar márgenes */
    padding: 0; /* Eliminar padding */
}

.thumbnail .item img {
    width: auto; /* Ajustar el ancho automáticamente */
    height: auto; /* Ajustar la altura automáticamente */
    max-height: 160px; /* Limitar la altura máxima */
    max-width: 160px; /* Limitar el ancho máximo */
    object-fit: contain; /* Asegurar que la imagen no se deforme */
    border-radius: 12px; /* Bordes redondeados */
    background-color: transparent; /* Fondo transparente */
    display: block; /* Asegurar comportamiento consistente */
    margin: auto; /* Centrar la imagen */
    border: 2px solid transparent; /* Borde inicial transparente */
    filter: drop-shadow( 0 0 5px rgba(255, 255, 255, 0.5)); /* Sombra suave */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Sombra más pronunciada */
    transition: box-shadow 0.2s ease, border 0.3s ease; /* Transición suave */
    padding: 0; /* Eliminar padding */
    margin: 0; /* Eliminar márgenes */
    background: none; /* Fondo transparente por defecto */
}

.thumbnail .item.active img {
    border: 2px solid #fff; /* Aumentar el grosor del borde blanco */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* Agregar un brillo alrededor */
    transition: border 0.3s ease, box-shadow 0.3s ease; /* Transición suave */
}

.thumbnail .item:hover img {
    border-color: #fff; /* Mostrar borde blanco al pasar el mouse */
}

iframe{ 
    margin-top: 20px;
    border: none;
    margin-top: -30px;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, .1);
    backdrop-filter: blur(50px);
    border-radius: 10px;
    object-position: right;
    object-fit: cover;
    /* Carga diferida de iframes debe manejarse en el HTML */
}

/* Imagenes responsivas */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-position: right;
    object-fit: cover;
    margin: 0 auto; /* Centra las imágenes */
    transition: transform 0.3s ease;
    /* Carga diferida de imágenes debe manejarse en el HTML */
}

img:hover {
    transform: scale(1.1); /* Efecto más sutil */
}

/* Reproductor */
@media screen and (max-width: 368px) and (max-height: 700px) {
    .reproductor {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }
    /* Asegurarse de que la sección thumbnail no desaparezca */
    .thumbnail {
        display: flex !important; /* Forzar que siempre sea visible */
    }
}

/* Organization of divs */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
}

/* Adjust images to the right */
img {
    object-position: right;
    object-fit: cover;
}

/* Estilos para el modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: rgba(0, 0, 0, .1);
    backdrop-filter: blur(50px);
    padding: 15px; /* Reducir padding para compensar el tamaño extra */
    border-radius: 10px;
    max-width: 90%; /* Limitar el ancho máximo al 70% de la ventana */
    max-height: 85%; /* Limitar la altura máxima al 70% de la ventana */
    width: calc(100% - 30px); /* 30px más ancho que el iframe */
    height: calc(100% - 30px); /* 30px más alto que el iframe */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Botón de cerrar fuera del modal */
.close-modal {
    position: absolute;
    top: -30px; /* Fuera del modal */
    left: 50%; /* Centrado horizontalmente */
    background-color: #df2c0d;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    z-index: 1001; /* Asegurar que esté por encima del modal */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
}

.close-modal:hover {
    background-color: #d14b0c; /* Cambiar color al pasar el mouse */
    transform: scale(1.05); /* Efecto de zoom */
}

.close-modal:active {
    transform: scale(0.95); /* Efecto de clic */
}

@media (max-width: 768px) {
    .close-modal {
        top: -20px; /* Ajustar posición para pantallas más pequeñas */
        padding: 8px 12px; /* Reducir padding */
        font-size: 0.9rem; /* Reducir tamaño de fuente */
    }
}

@media (max-width: 480px) {
    .close-modal {
        top: -15px; /* Ajustar posición para pantallas muy pequeñas */
        padding: 6px 10px; /* Reducir aún más el padding */
        font-size: 0.8rem; /* Reducir más el tamaño de fuente */
    }
}

.close-modal:hover {
    background-color: #d14b0c;
}

/* Ajustar iframe dentro del modal */
#modal-iframe-container {
    width: calc(100% - 30px); /* Ajustar al tamaño del modal */
    height: calc(100% - 30px); /* Ajustar al tamaño del modal */
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
    object-fit: contain; /* Asegura que el contenido del iframe se ajuste */
}

.slider .list .button button {
    background-color: #5c0707; /* Verde característico */
    color: #fff; /* Texto blanco */
    border: 2px solid #d6dad6; /* Borde verde oscuro */
    padding: 12px 25px; /* Espaciado interno */
    border-radius: 25px; /* Bordes más redondeados */
    font-size: 16px; /* Tamaño de fuente */
    font-weight: 600; /* Texto semi-negrita */
    cursor: pointer; /* Cambiar cursor al pasar */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
}

.slider .list .button button:hover {
    background-color: #388E3C; /* Verde más oscuro al pasar el mouse */
    transform: scale(1.1); /* Efecto de zoom */
}

.slider .list .button button:active {
    transform: scale(0.95); /* Efecto de clic */
}

.slider .list .button button:hover {
    background-color: #5e0b0b; /* Rojo más oscuro al pasar el mouse */
    transform: scale(1.05); /* Efecto de zoom */
}

.slider .list .button button:active {
    transform: scale(0.95); /* Efecto de clic */
}

/* Media queries para dispositivos móviles */

.video-play{
    display: flex;
    gap: 20px;
    justify-content: center; 
}
/*footer__________________________________________________________________________________*/

.vacio {
    width: 100%;
    height: 90px;
    
}

@media (max-width: 768px) {
    .header {
        padding: clamp(1rem, 2vw, 1.3rem) clamp(3%, 5vw, 5%);
    }
}

@media (max-width: 768px) {
    .thumbnail {
        height: 180px; /* Reducir la altura del contenedor */
        padding: 10px 15px; /* Reducir el espaciado interno */
        display: flex; /* A0.segurar que los elementos hijos se alineen */
        align-items: flex-start; /* Centrar las imágenes en lo alto */
    }
    .thumbnail .item img {
        width: auto; /* Ajustar el ancho automáticamente */
        height: auto; /* Ajustar altura automáticamente */
        max-height: 100px; /* Limitar la altura máxima */
        max-width: 100px; /* Ajustar el tamaño máximo */
        object-fit: contain; /* Asegurar que la imagen no se deforme */
    }
}

@media (max-width: 480px) {
    .thumbnail {
        height: 120px; /* Reducir aún más la altura del contenedor */
        padding: 8px 10px; /* Reducir aún más el espaciado interno */
    .thumbnail .item img {
            width: auto; /* Ajustar el ancho automáticamente */
            height: auto; /* Ajustar altura automáticamente */
            max-height: 80px; /* Limitar la altura máxima */
            max-width: 80px; /* Ajustar el tamaño máximo */
            object-fit: contain; /* Asegurar que la imagen no se deforme */
        }
        object-fit: contain; /* Asegurar que la imagen no se deforme */
    }
}

.desktop-img {
    display: block;
}

.mobile-img {
    display: none;
}

@media (max-width: 1100px) {
    .desktop-img {
        display: none;
    }

    .mobile-img {
        display: block;
        width: 100%; /* Ajustar al ancho de la pantalla */
        height: auto; /* Mantener proporciones */
    }
}

@media (max-width: 900px) {
    .slider .list .item:nth-child(5) img {
        object-position: calc(93% - 0px) center; /* Desplaza más hacia la izquierda */
    }
}

@media (max-height: 599px) {
    .thumbnail {
        display: none !important;
    }
}