/* ==========================================================================
   FINANCIERA 360 — TOKENS + NAVEGACIÓN WEB (Blanco · Verde Bosque · Dorado)
   Paleta tomada del logo oficial. Usado por la navegación compartida y las
   landing pages de cada sede.
   ========================================================================== */
:root {
    --f360-green-950: #0a2419;
    --f360-green-900: #0f3426;
    --f360-green-800: #164532;
    --f360-green-700: #1d5a40;
    --f360-green-600: #2a7152;
    --f360-sage-500: #4f6b5a;
    --f360-sage-300: #9fb5a6;
    --f360-sage-200: #cfdcd3;
    --f360-sage-100: #e9f0eb;
    --f360-sage-50: #f5f8f6;
    --f360-gold-700: #9c6c30;
    --f360-gold-600: #b48a3e;
    --f360-gold-500: #cfa95c;
    --f360-gold-400: #e2c27b;
    --f360-gold-100: #f8f0de;
    --f360-white: #ffffff;
    --f360-ink: #15241c;
    --f360-muted: #5d6f64;
    --f360-line: #e3ebe5;
    --f360-wa: #25d366;
    --f360-gold-grad: linear-gradient(135deg, #e2c27b 0%, #cfa95c 45%, #9c6c30 100%);
    --f360-green-grad: linear-gradient(145deg, #164532 0%, #0f3426 55%, #0a2419 100%);
    --f360-radius: 18px;
    --f360-shadow-sm: 0 2px 10px rgba(15, 52, 38, 0.06);
    --f360-shadow: 0 14px 40px rgba(15, 52, 38, 0.10);
    --f360-shadow-lg: 0 24px 60px rgba(15, 52, 38, 0.18);
    --font-head: 'Outfit', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Alias de compatibilidad con variables antiguas */
    --f360-navy: var(--f360-green-900);
    --f360-navy-deep: var(--f360-green-950);
    --f360-navy-surface: var(--f360-green-800);
    --f360-navy-border: var(--f360-sage-200);
    --f360-blue: var(--f360-green-700);
    --f360-blue-hover: var(--f360-green-800);
    --f360-blue-glow: rgba(29, 90, 64, 0.30);
    --f360-gold: var(--f360-gold-500);
    --f360-gold-dark: var(--f360-gold-700);
    --f360-emerald: var(--f360-green-600);
    --f360-emerald-glow: rgba(42, 113, 82, 0.30);
    --f360-bg: var(--f360-sage-50);
    --f360-card-bg: #ffffff;
    --f360-card-border: var(--f360-line);
    --f360-text: var(--f360-ink);
}

/* ─────────────────────────── NAVEGACIÓN 2026 ULTRA FROSTED GLASSMORPHISM ─────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; width: 100%;
    height: 76px; z-index: 1000;
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(40px) saturate(220%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(220%) !important;
    border-bottom: 1.5px solid rgba(16, 185, 129, 0.24) !important;
    box-shadow: 0 10px 36px rgba(4, 32, 20, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    transition: all .25s ease;
    padding-top: env(safe-area-inset-top);
    box-sizing: content-box;
}
.site-header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent 0%, #10b981 25%, #c89d46 75%, transparent 100%);
    opacity: .85;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 14px 42px rgba(4, 32, 20, 0.12), inset 0 1px 0 #ffffff !important;
    border-bottom-color: rgba(200, 157, 70, 0.4) !important;
}
.header-inner {
    max-width: 1400px; height: 100%; margin: 0 auto; padding: 0 1.25rem;
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
}
.header-brand { 
    display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; min-width: 0; 
    transition: transform .2s ease;
}
.header-brand:hover { transform: translateY(-1px); }
.header-logo { 
    height: 48px; width: auto; max-width: 140px; object-fit: contain; display: block; 
    filter: drop-shadow(0 4px 10px rgba(6, 78, 59, 0.22)); 
    transition: transform .25s ease, filter .25s ease;
}
.header-brand:hover .header-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 14px rgba(6, 78, 59, 0.32));
}
.header-brand-text { display: flex; flex-direction: column; min-width: 0; }
.header-brand-name {
    font-family: var(--font-head); font-size: 1.18rem; font-weight: 900; line-height: 1.08;
    color: #032215 !important; letter-spacing: -0.015em; white-space: nowrap;
}
.header-brand-name strong {
    background: linear-gradient(135deg, #059669 0%, #d97706 100%) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.header-brand-sub {
    font-size: .60rem; color: #065f46 !important; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; margin-top: 2px; white-space: nowrap;
}
.header-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: nowrap; min-width: 0; }
.nav-link {
    color: #042416 !important; text-decoration: none; font-size: .88rem !important; font-weight: 800 !important;
    padding: .52rem .98rem !important; border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.32) !important;
    display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; font-family: var(--font-body), sans-serif;
    white-space: nowrap; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(9, 44, 30, 0.05), inset 0 1px 0 #ffffff !important;
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.nav-link i { color: #059669 !important; font-size: .92rem !important; transition: transform .2s ease; }
.nav-link:hover { 
    background: #ffffff !important; 
    border-color: #10b981 !important; 
    color: #021a10 !important; 
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.22), inset 0 1px 0 #ffffff !important;
}
.nav-link:hover i { transform: scale(1.15); color: #047857 !important; }
.nav-link.active {
    background: linear-gradient(135deg, #064e3b 0%, #0d5f41 100%) !important;
    border-color: #cfa95c !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.32), 0 0 0 1px rgba(207, 169, 92, 0.4) !important;
}
.nav-link.active i { color: #f7d287 !important; }
.nav-sedes-dropdown { position: relative; flex-shrink: 0; }
.nav-sedes-btn {
    border: 1.5px solid rgba(180, 138, 62, 0.42) !important;
    background: linear-gradient(135deg, rgba(207, 169, 92, 0.18) 0%, rgba(16, 185, 129, 0.16) 100%) !important;
    color: #032215 !important;
    box-shadow: 0 2px 10px rgba(180, 138, 62, 0.12), inset 0 1px 0 #ffffff !important;
}
.nav-sedes-btn:hover {
    background: linear-gradient(135deg, rgba(207, 169, 92, 0.28) 0%, rgba(16, 185, 129, 0.24) 100%) !important;
    border-color: #b48a3e !important;
    box-shadow: 0 6px 18px rgba(180, 138, 62, 0.25) !important;
}
.nav-sedes-btn .drop-arrow { font-size: .68rem; color: #b48a3e !important; transition: transform .2s; margin-left: 2px; }
.nav-sedes-btn[aria-expanded="true"] .drop-arrow { transform: rotate(180deg); }
.nav-divider { width: 1.5px; height: 26px; background: rgba(16, 185, 129, 0.22) !important; margin: 0 .25rem; flex-shrink: 0; }
.nav-portal-btn, .nav-cta-btn, .nav-wa-btn {
    display: inline-flex; align-items: center; gap: .42rem; text-decoration: none; white-space: nowrap;
    font-size: .84rem; font-weight: 800; padding: .55rem 1rem; border-radius: 999px; line-height: 1;
    flex-shrink: 0; transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-portal-btn {
    background: linear-gradient(135deg, #064e3b 0%, #04382a 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #10b981 !important;
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.25) !important;
}
.nav-portal-btn i { color: #34d399 !important; }
.nav-portal-btn:hover {
    background: linear-gradient(135deg, #0d5f41 0%, #064e3b 100%) !important;
    border-color: #34d399 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35) !important;
}
.nav-cta-btn {
    background: linear-gradient(135deg, #f5d485 0%, #cf9f45 100%) !important;
    color: #041911 !important;
    font-weight: 900;
    border: 1.5px solid #fae6b2 !important;
    box-shadow: 0 4px 16px rgba(207, 159, 69, 0.3) !important;
}
.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(207, 159, 69, 0.45) !important;
}
.nav-wa-btn {
    background: rgba(37, 211, 102, 0.16) !important;
    color: #047857 !important;
    border: 1.5px solid rgba(37, 211, 102, 0.45) !important;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.12), inset 0 1px 0 #ffffff !important;
}
.nav-wa-btn i { color: #16a34a !important; font-size: .98rem; }
.nav-wa-btn:hover {
    background: rgba(37, 211, 102, 0.28) !important;
    border-color: #16a34a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25) !important;
}
.sedes-menu {
    position: absolute; top: calc(100% + 10px); right: 0; width: 340px;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 18px; padding: .95rem;
    box-shadow: 0 20px 50px rgba(9, 44, 30, 0.12), 0 0 20px rgba(16, 185, 129, 0.05) !important;
    display: none; flex-direction: column; gap: .75rem; z-index: 1001;
}
.sedes-menu.show { display: flex; }
.sedes-menu-header { border-bottom: 1px solid rgba(16, 185, 129, 0.14) !important; padding-bottom: .5rem; }
.sedes-menu-title {
    font-size: .76rem; font-weight: 800; color: #064e3b !important; text-transform: uppercase;
    letter-spacing: .05em; display: flex; align-items: center; gap: .4rem;
}
.sedes-menu-title i { color: #b48222 !important; }
.sedes-grid-menu { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.sede-menu-item {
    display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem; border-radius: 10px;
    text-decoration: none; color: #1a3c2e !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(16, 185, 129, 0.12) !important;
    transition: all .15s ease;
}
.sede-menu-item:hover {
    background: rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(200, 157, 70, 0.45) !important;
    color: #042014 !important;
    transform: translateY(-1px);
}
.badge-mini {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #064e3b !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    font-size: .64rem; font-weight: 800; padding: .18rem .4rem; border-radius: 6px;
    flex-shrink: 0; font-family: var(--font-mono);
}
.sede-menu-item strong { display: block; font-size: .8rem; line-height: 1.2; color: #042014 !important; }
.sede-menu-item small { font-size: .68rem; color: #526f63 !important; }
.sedes-menu-footer { border-top: 1px solid rgba(16, 185, 129, 0.14) !important; padding-top: .5rem; text-align: center; }
.btn-all-sedes { color: #064e3b !important; font-size: .78rem; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.btn-all-sedes:hover { color: #b48222 !important; text-decoration: underline; }
.mobile-toggle {
    display: none; background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    color: #042014 !important;
    font-size: 1.15rem; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; flex-shrink: 0;
}
@media (max-width: 1220px) {
    .nav-wa-lbl { display: none; }
    .header-brand-sub { display: none; }
}
@media (max-width: 1120px) {
    .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .header-nav {
        position: fixed; top: calc(72px + env(safe-area-inset-top)); left: 0; right: 0;
        max-height: calc(100vh - 72px); overflow-y: auto;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(28px) !important;
        border-bottom: 3px solid #10b981 !important;
        box-shadow: 0 18px 40px rgba(9, 44, 30, 0.12) !important; padding: 1rem 1.1rem 1.25rem;
        flex-direction: column; align-items: stretch; gap: .45rem; display: none;
    }
    .header-nav.open { display: flex; animation: f360Drop .2s ease; }
    .nav-link, .nav-portal-btn, .nav-cta-btn, .nav-wa-btn { justify-content: flex-start; padding: .85rem 1rem; font-size: .95rem; min-height: 48px; }
    .nav-portal-btn, .nav-cta-btn, .nav-wa-btn { justify-content: center; }
    .nav-wa-lbl { display: inline; }
    .nav-divider { display: none; }
    .sedes-menu { position: static; width: 100%; box-shadow: none; margin-top: .4rem; }
}
@media (max-width: 420px) {
    .header-inner { padding: 0 1rem; }
    .header-brand-sub { display: none; }
    .header-brand-name { font-size: 1.05rem; }
    .header-logo { height: 40px; width: 40px; }
}
@keyframes f360Drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

