/* -------------------------------------
   VIDEO EXPERIENCIA (SCROLLYTELLING CON NATIVE CSS STICKY)
   ------------------------------------- */
.video-experiencia {
    position: relative;
    width: 100%;
    height: 400vh; /* Define la distancia total de scroll (4 pantallas de alto) */
    background: #ffffff; /* Fondo blanco para fusionarse con el tema de la web */
    margin-bottom: 120px; /* Espacio elegante entre el video y la sección de entorno */
}

.video-experiencia .video-sticky-wrapper {
    position: sticky;
    top: 100px; /* Alineado perfectamente debajo del header scrolled */
    width: 100%;
    height: calc(100vh - 100px); /* Altura restante visible del viewport */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-experiencia .video-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 75vh; /* Ocupa el 75% de la altura de la pantalla */
    max-width: 1300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.video-experiencia .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción perfecta sin estiramiento */
    z-index: 0;
}

.video-experiencia .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.video-experiencia .video-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-experiencia .slide-text-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-experiencia .video-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    width: 100%;
    text-align: center;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                visibility 0.6s ease;
}

.video-experiencia .video-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(0);
}

.video-experiencia .video-slide h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-amarillo);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.video-experiencia .video-slide p {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    color: #f1f5f9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin: 0 auto;
}

/* Ajustes Responsive */
@media (max-width: 992px) {
    .video-experiencia .video-sticky-wrapper {
        top: 70px; /* Header móvil es más bajo */
        height: calc(100vh - 70px);
    }
    .video-experiencia .video-slide h3 {
        font-size: 2.3rem;
    }
    .video-experiencia .video-slide p {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .video-experiencia {
        margin-bottom: 80px; /* Menor espacio en móvil */
    }
    .video-experiencia .video-sticky-wrapper {
        top: 60px; /* Ajuste para header en pantallas pequeñas */
        height: calc(100vh - 60px);
    }
    .video-experiencia .video-frame {
        width: 92%;
        height: 60vh; /* Altura más baja adaptada a pantallas móviles */
        border-radius: 12px;
    }
    .video-experiencia .video-content-wrapper {
        padding: 0 20px;
    }
    .video-experiencia .video-slide h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .video-experiencia .video-slide p {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    .video-experiencia .slide-text-container {
        height: 250px;
    }
}
