/* Contenedor que permite el scroll de la página */
.parallax-viewport {
    height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 8px;
    scroll-behavior: smooth;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 90vh; /* Mayor parte de la pantalla */
    display: flex;
    justify-content: center;
    align-items: center; /* Alinea el texto hacia abajo */
    overflow: hidden;
    /* Efecto Parallax */
    transform-style: preserve-3d;
    z-index:-1;
}

/* Video de fondo */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /*filter: brightness(90%); /* Oscurece para resaltar el texto */
    /* Este es el truco del parallax: se mueve más lento que el scroll */
    transform: translateZ(-10px) scale(1);
    z-index: -1;
}
/* Contenedor de texto con animación */
.info_s {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    width: 100%;
    max-width: 900px;
    transform: translateZ(0);
    bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
}

.info_s h1 {
    font-size: 3.5rem;
    color: white !important;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    /* Animación de entrada: cae desde arriba */
    animation: slideDown 1.5s ease-out forwards;
    opacity: 0;
}

.info_s p {
		color: white !important;
    font-size: 1.4rem;
    font-weight: 300;
    border-top: 2px solid rgba(255,255,255,0.3);
    margin-bottom: 15px;
    /* Animación de entrada: sube desde abajo */
    animation: slideUp 1.5s ease-out 0.3s forwards;
    opacity: 0;
}

/* Estilos para el botón elegante */
.btn-institucional {
    display: inline-block;
    width: fit-content;
    
    padding: 12px 30px;
    background-color: #003366; /* Azul Marino Académico */
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px; /* Redondeado sutil */
    border: 1px solid #c5a059; /* Borde color oro inicial */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Transición suave */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    /* Animación para que aparezca junto con el texto */
    animation: slideUp 1.5s ease-out 0.6s forwards, pulse 2s infinite ease-in-out;
    opacity: 0;
}

.btn-institucional:hover {
    background-color: #c5a059; /* Cambio a Oro al pasar el mouse */
    color: #003366 !important; /* Texto cambia a azul para contraste */
    border-color: #003366;
    transform: translateY(-3px) scale(5.05); /* Pequeño levante */
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
    animation-play-state: running, paused;
}

.btn-institucional:active {
    transform: translateY(-1px);
}
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4); /* Brillo inicial */
    }
    70% {
        transform: scale(1.05); /* Ligeramente más grande */
        box-shadow: 0 0 0 10px rgba(197, 160, 89, 0); /* Brillo se expande y desaparece */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); /* Regreso al estado inicial */
    }
}

/* Ajuste extra para celulares muy pequeños (iPhone SE, etc.) */
@media (max-width: 480px) {
	.info_s p {
		font-size: 1.2rem;
	}
    .info_s h1 {
        font-size: 1.5rem;
    }
    
    .info_s {
        bottom: 30px;
    }
}