/* ===================================================
   HEADER COMPLEJO – ESTILO CORPORATIVO
   =================================================== */

.site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

/* ===== CAPA SUPERIOR ===== */
.header-top {
    background: #f2f2f2;
    padding: 15px 0;
}

.header-top-grid {
    display: grid;
    grid-template-columns: 220px 1fr 280px;
    align-items: center;
    gap: 20px;
}

.header-logo img {
    max-width: 100%;
}

.header-claim {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #2f3a60;
}

.header-contact {
    font-size: 13px;
    text-align: right;
    color: #2f3a60;
}

.header-contact span {
    display: block;
    margin-bottom: 4px;
}

/* ===== MENÚ PRINCIPAL ===== */
.main-nav {
    background: #2f4f73;
}

.nav-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 18px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.nav-menu a:hover {
    background: #223b57;
}

/* ===== DROPDOWN ===== */
.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    background: #ffffff;
    min-width: 180px;
    top: 100%;
    left: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.dropdown li a {
    color: #2f3a60;
    padding: 12px 15px;
    font-weight: 500;
}

.dropdown li a:hover {
    background: #f2f2f2;
}

/* ===== CTA ===== */
.nav-cta .cta-button {
    background: #1f9d5a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 3px;
    font-weight: 700;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {

    .header-top-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-contact {
        text-align: center;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-cta {
        display: none;
    }
}

@media (max-width: 992px) {

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        color: #fff;
        cursor: pointer;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #2f4f73;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li a {
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    .nav-cta {
        display: none;
    }
}

/* ===================================================
   HEADER COMPACTO AL SCROLL
   =================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all .3s ease;
}

/* Estado normal */
.header-top {
    transition: all .3s ease;
}

/* Estado compacto */
.site-header.header--compact .header-top {
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* Asegurar que el nav siempre quede visible */
.main-nav {
    position: relative;
    z-index: 1001;
}


