/* ===========================
   PALETA GH STAND (HEADER)
   =========================== */
:root {
    --gh-navy: #0b2b4a;
    --gh-navy-dark: #071b30;
    --gh-yellow: #FFD700; /* MOSTAZA GH STAND */
    --gh-light: #f7f8fb;
    --gh-border-soft: rgba(0, 0, 0, 0.06);
    --gh-border-strong: rgba(0, 0, 0, 0.12);
    --gh-accent: #ff4f5a;
    --gh-accent-dark: #d73745;
    --gh-text-dark: #1b1b1b;
    --gh-text-muted: #555555;
    --gh-transition: 200ms ease;
    --gh-radius-pill: 999px;
}

/* ===========================
   HEADER GENERAL
   =========================== */
.gh-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: transparent;
    color: var(--gh-text-dark);
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: box-shadow 220ms ease, transform 180ms ease, background 220ms ease;
}

/* Sombra al hacer scroll (solo a la barra blanca, ver .navbar) */
.gh-header.is-scrolled .navbar {
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

/* ===========================
   TOPBAR (AZUL CORPORATIVO)
   =========================== */
.gh-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 4vw;
    background: rgba(3, 19, 40, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: #ffffff;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
}

.topbar-item i {
    font-size: 0.78rem;
}

.topbar-link {
    text-decoration: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--gh-transition), opacity var(--gh-transition), transform var(--gh-transition);
}

.topbar-link:hover {
    color: #ffffff;
    opacity: 1;
    transform: translateY(-1px);
}

.topbar-location {
    border-left: 1px solid rgba(255,255,255,0.18);
    padding-left: 1rem;
}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--gh-radius-pill);
    font-weight: 600;
    font-size: 0.78rem;
    background: #1fbf4a;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(31,191,74,0.3);
    transition: transform var(--gh-transition), box-shadow var(--gh-transition), background var(--gh-transition);
}

.topbar-cta i {
    font-size: 0.86rem;
}

.topbar-cta:hover {
    background: #16a23d;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(31,191,74,0.4);
}

/* ===========================
   NAVBAR (BARRA BLANCA)
   =========================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 4vw;
    position: relative;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gh-yellow);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* LOGO */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    display: block;
    height: 56px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
    transition: transform 220ms ease, filter 220ms ease;
}

.logo-link:hover .logo-img {
    transform: translateY(-1px) scale(1.02);
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
}

/* ===========================
   MENÚ PRINCIPAL
   =========================== */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    font-size: 0.86rem;
    text-decoration: none;
    color: var(--gh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 600;
    padding: 0.35rem 0;
    display: inline-flex;
    align-items: center;
    transition: color var(--gh-transition), opacity var(--gh-transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--gh-yellow);
    transition: width 220ms ease;
}

.nav-link:hover {
    color: #000000;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.is-active,
.nav-link.active {
    color: #000000;
}

.nav-link.is-active::after,
.nav-link.active::after {
    width: 100%;
}

/* ===========================
   ACCIONES DERECHA
   =========================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-left: 1.5rem;
}

/* Redes visibles SIEMPRE */
.header-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255, 215, 0, 0.08); /* leve toque mostaza */
    color: #444444;                       /* icono visible siempre */
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--gh-transition),
                box-shadow 0.25s var(--gh-transition),
                background 0.25s var(--gh-transition),
                color 0.25s var(--gh-transition),
                border-color 0.25s var(--gh-transition);
}

.header-social-link:hover {
    transform: translateY(-3px);
    background: var(--gh-yellow);
    color: #111111;
    border-color: rgba(0,0,0,0.18);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* WhatsApp con verde al hover */
.header-social-link[href*="wa.me"]:hover {
    background: #25D366;
    color: #ffffff;
}

/* ===========================
   BOTÓN COTIZAR (MOSTAZA)
   =========================== */
.btn-cotizar {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.5rem;
    border-radius: var(--gh-radius-pill);
    background: linear-gradient(135deg, var(--gh-yellow) 0%, #ffef9a 100%);
    color: #151515;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, background 160ms ease;
}

.btn-cotizar .btn-icon {
    transform: translateX(0);
    transition: transform 170ms ease;
}

.btn-cotizar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.55), transparent 58%);
    opacity: 0.5;
    pointer-events: none;
}

.btn-cotizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.22);
    filter: brightness(1.03);
}

.btn-cotizar:hover .btn-icon {
    transform: translateX(3px);
}

.btn-cotizar:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* ===========================
   BURGER
   =========================== */
.burger {
    display: none;
    width: 34px;
    height: 26px;
    position: relative;
    cursor: pointer;
    margin-left: 1rem;
}

.burger-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #111111;
    border-radius: 999px;
    transition: transform 200ms ease, opacity 180ms ease, top 200ms ease, bottom 200ms ease;
}

.burger-line.top   { top: 3px; }
.burger-line.mid   { top: 50%; transform: translateY(-50%); }
.burger-line.bottom{ bottom: 3px; }

.burger.active .top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger.active .mid {
    opacity: 0;
}

.burger.active .bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Línea de luz debajo del header (en mostaza suave) */
.header-light {
    position: absolute;
    inset-inline: 5%;
    top: calc(100% - 1px);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.7), transparent);
    opacity: 0.9;
    pointer-events: none;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
    .gh-topbar {
        padding-inline: 1.2rem;
        font-size: 0.72rem;
    }

    .topbar-location {
        display: none;
    }

    .navbar {
        padding: 0.6rem 1.2rem 0.6rem;
    }

    .nav-links {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem 1.4rem 1.3rem;
        border-top: 1px solid var(--gh-border-soft);
        box-shadow: 0 10px 26px rgba(0,0,0,0.12);
        transform-origin: top;
        transform: scaleY(0.9);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
        z-index: 10;
    }

    .nav-links.open,
    .nav-links.active,
    .nav-links.is-open {
        opacity: 1;
        transform: scaleY(1);
        pointer-events: auto;
    }

    .nav-link {
        font-size: 0.9rem;
        color: var(--gh-text-dark);
    }

    .header-actions {
        margin-left: auto;
        gap: 0.6rem;
    }

    .burger {
        display: block;
    }
}

@media (max-width: 576px) {
    .gh-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
        gap: 0.6rem;
    }

    /* Si quieres ocultar el botón en móviles, déjalo así;
       si no, comenta esta regla */
    .btn-cotizar {
        display: none;
    }
}
