/* --- VARIABLES Y CONFIGURACIÓN GLOBAL --- */
:root {
    --primary-color: #0056b3; 
    --accent-color: #43aa8b;
    --dark-blue: #082032;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #444;
    overflow-x: hidden;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* --- BARRA DE NAVEGACIÓN (SIEMPRE BLANCA Y DELIMITADA) --- */
#mainNav {
    background-color: #ffffff !important;
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Efecto delimitado */
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Clase para ocultar la barra al deslizar (Activada por JS) */
.nav-hidden {
    transform: translateY(-110%);
}

.logo-container {
    background: white;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-container {
    transform: scale(1.05) rotate(3deg);
}

.logo-text {
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* Links Modernos */
.modern-nav-link {
    color: #333333 !important;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1.0rem;
}

.modern-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-nav-link:hover::after {
    width: 60%;
}

.modern-nav-link:hover {
    color: var(--primary-color) !important;
}

/* Botón de Contacto Pill */
.contact-pill-btn {
    border-radius: 50px;
    background: linear-gradient(45deg, #0056b3, #00d2ff);
    border: none;
    color: white !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 15px rgba(0, 86, 179, 0.2);
    transition: all 0.3s ease;
}

.contact-pill-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 86, 179, 0.3);
    filter: brightness(1.1);
}

/* Ajuste para páginas estáticas (Nosotros, Contacto, Programas) */
.page-static-header #mainNav {
    position: relative !important; 
    transform: none !important;    
    background-color: #ffffff !important;
}

/* --- SECCIÓN HERO (VIDEO) --- */
.hero-video {
    position: relative;
    height: 80vh; 
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 0;
    filter: brightness(0.5); 
}

.z-index-hero {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* --- TARJETAS Y CONTENIDO --- */
.card-hover {
    transition: all 0.4s ease;
    border-radius: 20px;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Iconos de Valores en Nosotros */
#nosotros .fs-1 {
    transition: transform 0.3s ease;
    display: inline-block;
}

#nosotros .col-md-3:hover .fs-1 {
    transform: scale(1.2);
}

/* --- FOOTER AZULITO --- */
footer {
    background: linear-gradient(0deg, rgba(0, 86, 179, 0.85), rgba(0, 123, 255, 0.85)), url(../img/banner1.jpeg), #0056b3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

footer .footer-top {
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
    padding-top: 20px;
}

footer p {
    color: #ffffff !important;
    opacity: 0.9;
}

.eagle-link-footer {
    font-family: 'Brush Script MT', 'Dancing Script', cursive; 
    color: #ffffff !important;
    font-size: 1.4rem;
    text-decoration: none;
    margin-left: 5px;
    transition: 0.3s ease;
}

.eagle-link-footer:hover {
    color: #00d2ff !important; 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .hero-video {
        height: 60vh;
    }
}