/* Video como fondo del hero - SIN REPRODUCTOR VISIBLE */
.hero {
    position: relative !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Overlay blanco que aparece gradualmente para oscurecer el video */
.hero::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0) !important;
    z-index: 0 !important;
    pointer-events: none !important;
    animation: hero-overlay-appear 3s ease-in-out forwards !important;
}

.hero-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: -1 !important; /* DETRÁS del contenido */
    pointer-events: none !important; /* No interactivo */
    /* Animación directa sin keyframes complejos */
    animation: video-darken 3s ease-in-out forwards !important;
}

/* SOLUCIÓN RADICAL: Ocultar scroll en pantallas problemáticas */
@media (max-height: 600px) {
    .scroll-down {
        display: none !important;
    }
}

/* Cuando el botón está visible, el scroll debe estar oculto */
.hero-content:hover ~ .scroll-down {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Zona de exclusión para el botón - SOLUCIÓN RADICAL */
.hero-content::after {
    content: '' !important;
    position: absolute !important;
    bottom: -60px !important; /* Zona debajo del botón */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 300px !important;
    height: 80px !important;
    z-index: 10 !important; /* Por encima del scroll */
    pointer-events: none !important;
}

/* Asegurar que el contenido esté sobre el video */
.hero-content {
    position: relative !important;
    z-index: 20 !important; /* Alto para estar sobre overlay y scroll */
    color: white !important;
    text-align: center !important;
    padding: 2rem !important;
    margin: 0 auto !important;
    max-width: 800px !important;
}

/* Ocultar overlay que pueda interferir */
.hero-overlay {
    display: none !important;
}

/* Animación del video: aparece brillante por 0.5s, luego se oscurece */
@keyframes video-darken {
    0% {
        opacity: 1;
    }
    16.67% { /* 0.5s de 3s total */
        opacity: 1;
    }
    100% {
        opacity: 0.4; /* Más oscuro para resaltar el texto */
    }
}

/* Animación del overlay del hero para mejorar legibilidad */
@keyframes hero-overlay-appear {
    0% {
        background: rgba(255, 255, 255, 0);
    }
    16.67% { /* 0.5s de 3s total */
        background: rgba(255, 255, 255, 0);
    }
    100% {
        background: rgba(255, 255, 255, 0.4); /* Overlay blanco para oscurecer video */
    }
}

/* Eliminamos la animación del overlay - usamos solo el video */