/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- GENERAL STYLES --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Disable scroll when mobile menu is open */
html.no-scroll {
    overflow: hidden;
}

/* --- HERO SECTION GRADIENT --- */
/* La sección Hero ahora usa una imagen de fondo desde el HTML */

/* --- HEADER SCROLL EFFECT --- */
#main-header.scrolled {
    /* Fondo blanco con opacidad */
    background-color: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Cambiar color del texto y botones cuando el header es sticky */
#main-header.scrolled .header-brand-text,
#main-header.scrolled .nav-link {
    color: #0D244F; /* brand-dark-blue */
}

#main-header.scrolled .nav-link:hover {
    color: #1E57A8; /* brand-medium-blue */
}

#main-header.scrolled .header-cta-btn {
    color: #0D244F;
    border-color: #0D244F;
}

#main-header.scrolled .header-cta-btn:hover {
    background-color: #0D244F;
    color: white;
}

/* --- MOBILE NAVIGATION --- */
#hamburger-btn {
    position: relative;
    width: 24px;
    height: 24px;
    z-index: 60; /* Ensure it's above the nav panel */
}
#hamburger-btn span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

#main-header.scrolled #hamburger-btn span {
    background-color: #0D244F; /* brand-dark-blue */
}

.hamburger-top { top: 4px; }
.hamburger-middle { top: 11px; }
.hamburger-bottom { top: 18px; }

/* Hamburger open state */
#hamburger-btn.open .hamburger-top { transform: rotate(45deg) translate(5px, 5px); }
#hamburger-btn.open .hamburger-middle { opacity: 0; }
#hamburger-btn.open .hamburger-bottom { transform: rotate(-45deg) translate(5px, -5px); }

#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 36, 79, 0.98);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 55; /* Por encima del header (50), por debajo del botón (60) */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
#main-nav.open {
    transform: translateX(0);
}
#main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
}
#main-nav a {
    font-size: 1.5rem;
    color: #d1d5db;
    transition: color 0.3s ease;
    text-decoration: none;
}
#main-nav a:hover {
    color: white;
}
#main-nav .btn-outline {
    border: 1px solid #22d3ee;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    width: 100%;
}
#main-nav .btn-outline:hover {
    background-color: #22d3ee;
    color: #0D244F;
}


/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER NAVIGATION LINK HOVER --- */
.nav-link {
    position: relative;
    padding-bottom: 4px; /* Espacio para el subrayado */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px; /* Grosor de la línea */
    background-color: #3ABFF0; /* Color azul secundario (brand-light-blue) */
    transition: width 0.3s ease-in-out;
}

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