/* VARIABLES Y CONFIGURACIÓN BASE */
:root {
    --hunter-blue: #004f9f;
    --hunter-yellow: #ffcd1c;
    --hunter-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-light: #f8fafc;
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilidades */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.position-relative {
    position: relative;
    z-index: 2;
}

.text-white {
    color: var(--hunter-white);
}

.text-yellow {
    color: var(--hunter-yellow) !important;
}

/* Tipografía de Títulos */
.section-title {
    color: var(--hunter-blue);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.lead-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Botones */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--hunter-yellow);
    color: var(--hunter-blue);
    border: 2px solid var(--hunter-yellow);
    box-shadow: 0 4px 15px rgba(255, 205, 28, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--hunter-yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 205, 28, 0.5);
}

.btn-secondary-dark {
    display: inline-block;
    background: transparent;
    color: var(--hunter-yellow);
    border: 2px solid var(--hunter-yellow);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary-dark:hover {
    background: var(--hunter-yellow);
    color: var(--hunter-blue);
    transform: translateX(5px);
    /* Efecto de flecha hacia la derecha */
}


/* HEADER (MENÚ SUPERIOR) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 79, 159, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--hunter-blue);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--hunter-yellow);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.btn-primary::after {
    display: none;
}

.header-cta .btn-primary {
    background-color: var(--hunter-blue);
    color: var(--hunter-white);
    border-color: var(--hunter-blue);
    box-shadow: none;
}

.header-cta .btn-primary:hover {
    background-color: var(--hunter-yellow);
    color: var(--hunter-blue);
    border-color: var(--hunter-yellow);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--hunter-blue);
    cursor: pointer;
    position: relative;
    z-index: 1001;
    margin-right: 15px;
}

.mobile-cta {
    display: none;
}

/* SUBMENÚS DESPLEGABLES (DROPDOWNS) */
.has-dropdown {
    position: relative;
}

.arrow {
    font-size: 0.75rem;
    margin-left: 4px;
    transition: transform var(--transition-fast);
    display: inline-block;
}

.has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 79, 159, 0.15);
    border-radius: 0 0 10px 10px;
    border-top: 3px solid var(--hunter-yellow);
    padding: 10px 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 12px 25px !important;
    color: var(--text-dark) !important;
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}

.dropdown a::after {
    display: none !important;
}

.dropdown a:hover {
    background-color: var(--bg-light);
    color: var(--hunter-blue) !important;
    padding-left: 32px !important;
    font-weight: 700 !important;
}

/* FOOTER (PIE DE PÁGINA) */
.main-footer {
    background-color: #003a75;
    color: var(--text-light);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--hunter-yellow);
    color: var(--hunter-blue);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.social-icons a:hover {
    transform: scale(1.1);
    background-color: var(--hunter-white);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--hunter-yellow);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--hunter-white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--hunter-yellow);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    background-color: #002b5e;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: #aaa;
}

.footer-bottom span {
    color: var(--hunter-white);
    font-weight: 600;
}

/* BANNERS PARALLAX (USADO EN VARIAS PÁGINAS) */
.parallax-banner {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

@supports (-webkit-touch-callout: none) {
    .parallax-banner {
        background-attachment: scroll !important;
    }
}

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
    .parallax-banner {
        background-attachment: scroll !important;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 79, 159, 0.85);
    z-index: 1;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* BANNERS DE PÁGINAS INTERNAS (Header y Títulos) */
.page-header {
    padding: 150px 0 100px;
    margin-bottom: 60px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.lead-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 500;
}

/* DISEÑO RESPONSIVO GENERAL (MÓVILES Y TABLETS) */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .mobile-cta {
        display: block;
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        padding: 100px 20px 40px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        width: 100%;
    }

    .main-nav a {
        font-size: 1.1rem;
    }

    .has-dropdown {
        width: 100%;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        border-left: 2px solid var(--hunter-yellow);
        padding: 5px 0 5px 15px !important;
        margin-top: 10px;
        display: flex !important;
        width: 100%;
    }

    .dropdown a {
        padding: 8px 10px !important;
        font-size: 1rem !important;
    }

    .dropdown a:hover {
        padding-left: 10px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}