/* ── Tokens */
:root {
    --navy:       #0d2b4e;
    --navy-mid:   #163d6b;
    --navy-light: #1d5a92;
    --gold:       #b8922a;
    --gold-light: #d4a93a;
    --surface:    #f4f6fb;
    --text:       #1a2636;
    --text-muted: #5a6a7d;
    --navbar-h:   80px;
    /* SEVAC specific */
    --surface-soft: #eef3fa;
    --border: rgba(15,39,70,0.12);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--surface);
    color: var(--text);
    padding-top: var(--navbar-h);
    margin: 0;
    min-height: 100vh;
}

/* ── Navbar */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    background: #fff;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 20px rgba(13,43,78,0.12);
    display: flex;
    align-items: center;
}
.site-nav .inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 0 1.5rem;
}
.nav-logo {
    display: block;
    height: 50px;
    width: auto;
    flex-shrink: 0;
}
.nav-sep {
    width: 1px;
    height: 34px;
    background: rgba(13,43,78,0.15);
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}
.nav-links .nav-link {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none;
    transition: background .18s, color .18s;
}
.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    background: rgba(13,43,78,0.07);
    color: var(--navy-mid);
}
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid rgba(13,43,78,0.1);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(13,43,78,0.12);
    padding: 0.4rem;
    min-width: 180px;
    display: none;
    z-index: 200;
}
/* Bridge the gap so hover state isn't lost */
.nav-links .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
.nav-links .dropdown:hover .dropdown-menu,
.nav-links .dropdown-menu.show { display: block; }
.nav-links .dropdown-item {
    display: block;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    padding: 0.55rem 0.9rem;
    text-decoration: none;
    transition: background .15s;
}
.nav-links .dropdown-item:hover { background: rgba(13,43,78,0.07); }
.nav-links .dropdown-item.active { background: rgba(13,43,78,0.07); color: var(--navy-mid); font-weight: 700; }
.nav-toggler {
    display: none;
    margin-left: auto;
    background: none;
    border: 1.5px solid var(--navy);
    border-radius: 6px;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}
.nav-toggler span {
    display: block;
    width: 20px; height: 2px;
    background: var(--navy);
    border-radius: 2px;
}
@media (max-width: 991.98px) {
    .nav-toggler { display: flex; }
    .nav-sep     { display: none; }
    .nav-links   { display: none; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: var(--navbar-h); left: 0; right: 0;
        background: #fff;
        border-top: 1px solid rgba(13,43,78,0.08);
        border-bottom: 3px solid var(--gold);
        padding: 1rem 1.25rem;
        box-shadow: 0 8px 20px rgba(13,43,78,0.1);
        margin: 0;
        z-index: 999;
    }
    .nav-links .nav-link { padding: 0.65rem 0.75rem; width: 100%; }
    .nav-links .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid rgba(13,43,78,0.1);
        border-radius: 0;
        margin-left: 0.75rem;
    }
}

/* ── Utilities ── */
.z-1 { position: relative; z-index: 1; }

/* ── Hero shared utilities ── */
.hero-base {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 45%, #1e6fad 100%);
    position: relative;
    overflow: hidden;
}

/* ── Index Hero */
.hero {
    padding: 5rem 0 4.5rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 45%, #1e6fad 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 78% 30%, rgba(184,146,42,0.18) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(255,255,255,0.06) 0%, transparent 40%);
    pointer-events: none;
}
.hero-dots {
    position: absolute; top: 0; right: 0;
    width: 420px; height: 100%;
    opacity: 0.07;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(184,146,42,0.25);
    border: 1px solid rgba(184,146,42,0.5);
    color: #f0d080;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.35rem 0.85rem; border-radius: 100px;
    margin-bottom: 1.4rem;
}
.hero-badge::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; background: var(--gold-light); flex-shrink: 0;
}
.hero h1 {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    font-weight: 800; color: #fff;
    line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-lead {
    font-size: 1.05rem; color: rgba(255,255,255,0.78);
    line-height: 1.7; max-width: 44rem; margin-bottom: 2rem;
}
.btn-primary-gold {
    background: var(--gold); color: #fff; border: none;
    font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em;
    padding: 0.8rem 1.8rem; border-radius: 8px;
    text-decoration: none;
    transition: background .2s, box-shadow .2s, transform .15s;
    box-shadow: 0 4px 16px rgba(184,146,42,0.4);
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary-gold:hover {
    background: var(--gold-light); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184,146,42,0.45);
}
.btn-outline-white {
    background: rgba(255,255,255,0.12); color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    font-weight: 600; font-size: 0.88rem;
    padding: 0.8rem 1.8rem; border-radius: 8px;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .15s;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5); color: #fff;
    transform: translateY(-2px);
}
.hero-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px; padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hero-card-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(184,146,42,0.3);
    border: 1px solid rgba(184,146,42,0.4);
    display: grid; place-items: center; margin-bottom: 0.85rem;
}
.hero-card-icon svg {
    width: 20px; height: 20px; stroke: var(--gold-light);
    fill: none; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.hero-card-label {
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.55); margin-bottom: 0.3rem;
}
.hero-card-value {
    font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.3;
}

/* ── Stats strip */
.stats-strip { background: var(--navy); padding: 1.4rem 0; }
.stat-item { display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,0.12); }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--gold-light); line-height: 1; }
.stat-desc { font-size: 0.78rem; color: rgba(255,255,255,0.65); font-weight: 500; line-height: 1.35; }

/* ── Section header */
.section-tag {
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800;
    color: var(--navy); letter-spacing: -0.02em; line-height: 1.2;
}

/* ── Feature cards */
.feature-card {
    background: #fff;
    border: 1px solid rgba(13,43,78,0.08);
    border-radius: 16px; padding: 1.75rem; height: 100%;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--navy-mid), var(--gold));
    opacity: 0; transition: opacity .25s;
}
.feature-card:hover {
    box-shadow: 0 16px 40px rgba(13,43,78,0.1);
    transform: translateY(-4px); border-color: rgba(13,43,78,0.14);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(22,61,107,0.1), rgba(22,61,107,0.04));
    border: 1px solid rgba(22,61,107,0.1);
    display: grid; place-items: center; margin-bottom: 1.1rem;
}
.feature-icon svg {
    width: 22px; height: 22px; stroke: var(--navy-mid);
    fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.feature-card h2 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.55rem; }
.feature-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0; }
.feature-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem; font-weight: 700; color: var(--navy-mid);
    text-decoration: none; margin-top: 1rem;
    transition: gap .2s, color .2s;
}
.feature-link:hover { color: var(--gold); gap: 0.65rem; }

/* ── CTA banner */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: 20px; padding: 3rem 2.5rem;
    position: relative; overflow: hidden;
}
.cta-banner::after {
    content: ''; position: absolute; right: -5%; top: -30%;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(184,146,42,0.12); pointer-events: none;
}
.cta-banner h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 800;
    color: #fff; letter-spacing: -0.02em; margin-bottom: 0.6rem;
}
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-bottom: 0; }

/* ── Footer */
.site-footer {
    background: var(--navy); color: rgba(255,255,255,0.6);
    padding: 2.5rem 0 1.5rem; font-size: 0.82rem; margin-top: 3rem;
}
/* Ensure index footer doesn't have extra top margin if not needed */
#institucional + .site-footer {
    margin-top: 0;
}
.footer-logo {
    height: 40px; width: auto;
    filter: brightness(0) invert(1); opacity: 0.75; margin-bottom: 0.75rem;
}
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 1.5rem 0 1rem; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.38); }
.footer-link { color: rgba(255,255,255,0.6); text-decoration: none; transition: color .15s; }
.footer-link:hover { color: var(--gold-light); }

/* ── SEVAC Hero */
.sevac-hero {
    padding: 4rem 0 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 45%, #1e6fad 100%);
    position: relative; overflow: hidden;
}
.sevac-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(184,146,42,0.18) 0%, transparent 45%),
        radial-gradient(circle at 5% 85%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.sevac-hero-dots {
    position: absolute; top: 0; right: 0;
    width: 420px; height: 100%; opacity: 0.07;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 28px 28px; pointer-events: none;
}
.sevac-hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(184,146,42,0.25); border: 1px solid rgba(184,146,42,0.5);
    color: #f0d080; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.35rem 0.85rem; border-radius: 100px; margin-bottom: 1.2rem;
}
.sevac-hero-badge::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; background: var(--gold-light); flex-shrink: 0;
}
.sevac-hero h1 {
    font-size: clamp(1.7rem, 3.5vw, 2.7rem);
    font-weight: 800; color: #fff;
    line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.9rem;
}
.sevac-hero h1 em { font-style: normal; color: var(--gold-light); }
.sevac-hero p {
    font-size: 1rem; color: rgba(255,255,255,0.75);
    line-height: 1.7; max-width: 48rem; margin-bottom: 0;
}
.sevac-stat-chip {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px; padding: 1.1rem 1.4rem;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: inline-flex; gap: 1.4rem; align-items: center;
}
.sevac-stat-chip .chip-item { text-align: center; }
.sevac-stat-chip .chip-label {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.2rem;
}
.sevac-stat-chip .chip-value {
    font-size: 1.5rem; font-weight: 800; color: var(--gold-light); line-height: 1;
}
.sevac-stat-chip .chip-sep {
    width: 1px; height: 36px; background: rgba(255,255,255,0.2);
}

/* ── Content card */
.soft-card {
    background: #fff;
    border: 1px solid rgba(13,43,78,0.08);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(13,43,78,0.07);
}

/* ── Year pills */
.year-pill {
    border: 1px solid rgba(22,61,107,0.2);
    background: #fff; color: var(--navy-mid);
    font-weight: 600; font-size: 0.82rem;
    padding: 0.35rem 0.9rem; border-radius: 100px;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.year-pill:hover {
    border-color: var(--navy-mid);
    box-shadow: 0 2px 8px rgba(13,43,78,0.1);
}
.year-pill.active {
    background: var(--navy-mid); color: #fff; border-color: var(--navy-mid);
    box-shadow: 0 4px 14px rgba(22,61,107,0.25);
}

/* ── Quarter nav tabs */
.quarter-nav .nav-link {
    border-radius: 100px; margin-right: 0.5rem; margin-bottom: 0.5rem;
    border: 1px solid rgba(22,61,107,0.18); color: var(--navy-mid);
    background: #fff; font-weight: 600; font-size: 0.82rem;
    padding: 0.4rem 1rem;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.quarter-nav .nav-link.active {
    background: var(--navy-mid); border-color: var(--navy-mid); color: #fff;
    box-shadow: 0 6px 18px rgba(22,61,107,0.22);
}

/* ── Quarter panel */
.quarter-panel {
    background: var(--surface-soft); border-radius: 14px;
    padding: 1.25rem; border: 1px solid rgba(22,61,107,0.08);
}

/* ── Document list */
.doc-list { display: grid; gap: 0.65rem; }
.doc-item {
    display: flex; align-items: flex-start; gap: 0.9rem;
    padding: 0.9rem 1rem; border-radius: 12px;
    background: #fff; border: 1px solid rgba(15,39,70,0.08);
    text-decoration: none; color: inherit;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.doc-item:hover {
    transform: translateY(-2px); color: inherit;
    box-shadow: 0 10px 24px rgba(15,39,70,0.09);
    border-color: rgba(22,61,107,0.2);
}
.doc-icon {
    flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(22,61,107,0.1), rgba(22,61,107,0.04));
}
.doc-meta { font-size: 0.82rem; color: #64748b; margin-top: 0.15rem; }

/* ── Accordion */
.accordion-item {
    border: 1px solid rgba(13,43,78,0.08) !important;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.accordion-button {
    font-weight: 700; color: var(--navy); font-size: 0.95rem;
    background: #fff;
}
.accordion-button:not(.collapsed) {
    color: var(--navy-mid);
    background: linear-gradient(90deg, rgba(22,61,107,0.06), rgba(22,61,107,0.02));
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }

/* ── Empty state */
.empty-state {
    border: 1px dashed rgba(22,61,107,0.22);
    background: rgba(255,255,255,0.72);
    border-radius: 12px; padding: 1rem 1.15rem; color: #52657b;
}

/* ── Section title */
.section-title {
    font-size: 1.15rem; font-weight: 800;
    color: var(--navy); letter-spacing: -0.01em;
}
