/* ==================================================
   HERO SLIDESHOW - ZOOM SINCRONIZADO CON CAMBIOS
   ================================================== */

/* Contenedor del slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Cada slide - empieza en tamaño normal */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
}

/* Slide activo - zoom sincronizado con el cambio (5 segundos exactos) */
.hero-slide.active {
    opacity: 1;
    z-index: 2;
    animation: smoothZoomInOut 5s ease-in-out forwards;
    /* 5s = tiempo hasta próximo cambio */
}

/* Animación de zoom IN y regreso - termina JUSTO cuando cambia la imagen */
@keyframes smoothZoomInOut {
    0% {
        transform: scale(1);
        /* Empieza normal */
    }

    50% {
        transform: scale(1.08);
        /* Aumenta 8% en el medio (2.5s) */
    }

    100% {
        transform: scale(1);
        /* Regresa a normal cuando cambia (5s) */
    }
}

/* Overlay oscuro sobre las imágenes */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 37, 47, 0.85) 0%, rgba(26, 37, 47, 0.3) 100%);
    z-index: 1;
}

/* Asegurar que el contenido esté por encima */
.modern-hero-content {
    position: relative;
    z-index: 10 !important;
}