/* CONTENEDOR */

.beneficios-container{
    padding-top:140px;
    max-width:1400px;
    margin:auto;
}

/* TITULO */

.titulo-beneficios{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:30px;
    margin-bottom:50px;
    padding:0 20px;
}

.titulo-beneficios img{
    width:110px;
}

.titulo-beneficios h1{
    font-family:'DM Serif Display', serif;
    color:var(--azul-oscuro);
    font-size:3rem;
}

.linea{
    width:100%;
    height:8px;
    background:var(--amarillo);
    margin-top:15px;
}

/* GRID */

/* CARRUSEL DE BENEFICIOS */

.carrusel-beneficios {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 80px;
}

.carrusel-beneficios-contenedor {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--sombra-card);
}

/* Contenedor de slides */

.slides-beneficios {
    display: flex;
    transition: transform 0.45s ease-in-out;
}

/* Cada imagen ocupa el 100% del carrusel */

.slide-beneficio {
    min-width: 100%;
    height: 680px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7f7f7;
}

/* Imagen larga: se muestra completa sin deformarse */

.slide-beneficio img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

/* Flechas */

.flecha-beneficio {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.flecha-beneficio:hover {
    background: rgba(0, 0, 0, 0.75);
}

.flecha-beneficio-izquierda {
    left: 18px;
}

.flecha-beneficio-derecha {
    right: 18px;
}

/* Miniaturas */

.miniaturas-beneficios {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.miniatura-beneficio {
    width: 95px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.55;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #ffffff;
}

.miniatura-beneficio:hover {
    opacity: 0.85;
}

.miniatura-beneficio.activa {
    opacity: 1;
    border-color: var(--amarillo);
    transform: translateY(-3px);
}

/* MODAL PARA VER IMAGEN GRANDE */

.modal-beneficio {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.modal-beneficio img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 10px;
    background: #ffffff;
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.cerrar-modal:hover {
    color: var(--amarillo);
}

/* RESPONSIVE */

@media(max-width: 992px) {

    .slide-beneficio {
        height: 600px;
    }

}

@media(max-width: 768px) {

    .slide-beneficio {
        height: 500px;
    }

    .flecha-beneficio {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .miniatura-beneficio {
        width: 75px;
        height: 55px;
    }

}

@media(max-width: 480px) {

    .slide-beneficio {
        height: 430px;
    }

    .carrusel-beneficios {
        width: 95%;
    }

    .miniatura-beneficio {
        width: 65px;
        height: 48px;
    }

}