/* ╔══════════════════════════════════════════╗
   ║  CoberturaMedica · Design System v2      ║
   ║  Philosophy: Institutional Minimalism    ║
   ║  Color: Grayscale + Semantic only        ║
   ╚══════════════════════════════════════════╝ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ── 1. TOKENS ──────────────────────────────── */
:root {
  /* Grayscale — the full system */
  --ink-0:   #FFFFFF;
  --ink-50:  #F9FAFB;
  --ink-100: #F3F4F6;
  --ink-200: #E5E7EB;
  --ink-300: #D1D5DB;
  --ink-400: #9CA3AF;
  --ink-500: #6B7280;
  --ink-600: #4B5563;
  --ink-700: #374151;
  --ink-800: #1F2937;
  --ink-900: #111827;
  --ink-950: #0D1117;

  /* Semantic — functional, not decorative */
  --inst:       #002A5A;   /* Institutional blue — primary action */
  --inst-hover: #003A7A;
  --inst-lt:    #EBF3FD;   /* Light tint for inst bg */
  --ok:         #166534;   /* Success — muted green */
  --ok-bg:      #F0FDF4;
  --ok-border:  #BBF7D0;
  --warn:       #9A3412;   /* Alert — desaturated orange-red */
  --warn-bg:    #FFF7ED;
  --warn-border:#FED7AA;
  --danger:     #991B1B;   /* Error */
  --danger-bg:  #FEF2F2;
  --danger-border:#FECACA;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --text-base: 15px;

  /* Spacing - High-End Rhythm */
  --gap: 24px;
  --card-pad: 40px;
  --container: 1100px; /* Editorial width */
  --section-pad: 120px;

  /* Borders */
  --border: 1px solid var(--ink-100);
  --radius: 12px;
  --radius-lg: 20px;

  /* Transitions - Pro Curves */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --t-fast: 200ms var(--ease-out-expo);
  --t-base: 400ms var(--ease-out-expo);
  --t-slow: 800ms var(--ease-out-expo);
}

/* ── 2. RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--text-base); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink-800);
  background: var(--ink-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; }
select, input, textarea { font-family: var(--font); }

/* ── 3. TYPOGRAPHY ──────────────────────────── */
.t-display {
  font-size: clamp(3rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--ink-950);
}
.t-h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink-900);
}
.t-h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
.t-body { font-size: 1.0625rem; line-height: 1.62; color: var(--ink-600); font-weight: 400; }
.t-small { font-size: .875rem; line-height: 1.5; color: var(--ink-500); }
.t-label {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.t-mono {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: .8125rem;
}
.t-inst { color: var(--inst); }
.t-muted { color: var(--ink-400); }

/* ── 4. LAYOUT ──────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section   { padding: var(--section-pad) 0; }
.section-sm { padding: calc(var(--section-pad) * 0.6) 0; }

/* Bento Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: var(--gap);
}

/* ── 5. DIVIDER ─────────────────────────────── */
.divider { height: 1px; background: var(--ink-200); }

/* ── 6. NAVIGATION ──────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 32px;
}
.nav-wordmark {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--inst);
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 6px 12px;
  font-size: .875rem;
  font-weight: 400;
  color: var(--ink-600);
  border-radius: 5px;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover { background: var(--ink-100); color: var(--ink-900); }
.nav-link.active { color: var(--ink-900); font-weight: 500; }
.nav-action {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--inst);
  padding: 6px 14px;
  border: 1px solid var(--inst);
  border-radius: 5px;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-action:hover { background: var(--inst); color: var(--ink-0); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 4px; background: none; border: none; padding: 6px; 
}
.nav-hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--ink-700); border-radius: 1px;
  transition: all var(--t-base);
}

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--ink-0); border-right: var(--border);
  flex-direction: column; padding: 80px 32px 40px;
  gap: 4px;
}
.nav-mobile.open { display: flex; animation: slideIn var(--t-base) ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.nav-mobile .nav-link { font-size: 1rem; display: block; }
.nav-mobile-close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: none; font-size: 1.2rem;
  color: var(--ink-500); padding: 6px;
}

/* ── 7. HERO ─────────────────────────────────── */
.hero {
  background: linear-gradient(135deg,
    #0d1117 0%,
    #0f1f3d 35%,
    #0a0f1e 65%,
    #0d1117 100%);
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
}
/* Subtle dot grid */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 1;
}
/* Blue glow accent */
.hero::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 25%;
  width: 700px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 100, 220, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow span { color: var(--ink-400); }
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
}
.hero h1 { color: var(--ink-0); margin-bottom: 20px; }
.hero-sub {
  font-size: 1.0625rem;
  color: var(--ink-400);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 44px;
}

/* Hero ghost CTA button */
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.4);
  color: #ffffff !important;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
  background: transparent;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #ffffff !important;
}

/* Command Palette */
.cmd-palette {
  background: var(--ink-0);
  border: var(--border);
  border-radius: var(--radius);
  max-width: 620px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.24), 0 0 0 1px rgba(0,0,0,.04);
}
.cmd-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: var(--border);
}
.cmd-icon { color: var(--ink-400); flex-shrink: 0; }
.cmd-input {
  flex: 1; border: none; outline: none;
  font-size: .9375rem; font-family: var(--font);
  color: var(--ink-900);
  background: transparent;
}
.cmd-input::placeholder { color: var(--ink-400); }
.cmd-kbd {
  font-size: .6875rem; font-weight: 500;
  color: var(--ink-400); background: var(--ink-100);
  border: 1px solid var(--ink-200); border-radius: 4px;
  padding: 2px 6px; white-space: nowrap;
}
.cmd-filters {
  display: flex; align-items: center; gap: 0;
  padding: 12px 18px; background: var(--ink-50);
}
.cmd-filter-group {
  display: flex; align-items: center; gap: 8px;
  flex: 1;
  padding-right: 16px;
  margin-right: 16px;
  border-right: var(--border);
}
.cmd-filter-group:last-of-type { border-right: none; }
.cmd-filter-label {
  font-size: .6875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-400); white-space: nowrap;
}
.cmd-select {
  flex: 1; border: none; background: transparent;
  font-size: .875rem; color: var(--ink-700);
  font-family: var(--font); cursor: pointer; outline: none;
}
.cmd-submit {
  background: var(--inst); color: var(--ink-0);
  border: none; border-radius: 5px;
  padding: 8px 18px;
  font-size: .8125rem; font-weight: 500;
  letter-spacing: -0.01em;
  transition: background var(--t-fast), opacity var(--t-fast);
  white-space: nowrap;
}
.cmd-submit:hover { background: var(--inst-hover); }

/* Hero metadata strip */
.hero-meta {
  margin-top: 28px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.hero-meta-item {
  font-size: .75rem;
  color: var(--ink-500);
}
.hero-meta-sep { color: var(--ink-700); }
.hero-meta-badge {
  font-size: .6875rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ok); background: rgba(22,101,52,.15);
  padding: 2px 8px; border-radius: 3px;
  border: 1px solid rgba(22,101,52,.25);
}

/* ── 8. BENTO SECTION ───────────────────────── */
.bento-section { padding: 32px 0 48px; background: var(--ink-50); }
.bento-card {
  background: var(--ink-0);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.bento-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--ink-300);
}
.bento-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: var(--border);
}
.bento-card-title {
  display: flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600;
  color: var(--ink-700); letter-spacing: -0.01em;
}
.bento-icon {
  color: var(--ink-400);
  display: flex; align-items: center;
  flex-shrink: 0;
}
.bento-badge {
  font-size: .625rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px;
}
.bento-badge-live {
  color: var(--ok); background: var(--ok-bg);
  border: 1px solid var(--ok-border);
}
.bento-badge-new {
  color: var(--inst); background: var(--inst-lt);
  border: 1px solid #BFDBFE;
}

/* Grid placements */
.bento-news    { grid-column: span 4; }
.bento-compare { grid-column: span 5; }
.bento-stat    { grid-column: span 3; }

/* ── 9. NEWS MODULE ─────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 0;
  border-bottom: var(--border);
  transition: opacity var(--t-fast);
}
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-item:hover { opacity: .75; }
.news-date { font-size: .6875rem; font-weight: 600; color: var(--ink-400); letter-spacing: 0.04em; }
.news-headline {
  font-size: .875rem; font-weight: 500;
  color: var(--ink-800); line-height: 1.4;
  letter-spacing: -0.01em;
}
.news-source {
  font-size: .6875rem; color: var(--ink-400);
  display: flex; align-items: center; gap: 4px;
}
.news-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .6875rem; font-weight: 500; color: var(--inst);
  margin-top: 4px;
  opacity: 0; transition: opacity var(--t-fast);
}
.news-item:hover .news-link { opacity: 1; }

/* ── 10. CALCULATOR MODULE ──────────────────── */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.calc-field {
  display: flex; flex-direction: column; gap: 6px;
}
.calc-label {
  font-size: .6875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-500);
}
.calc-input, .calc-select {
  padding: 10px 12px;
  border: 1px solid var(--ink-300);
  border-radius: 5px;
  font-size: .875rem;
  color: var(--ink-900);
  background: var(--ink-0);
  font-family: var(--font);
  transition: border-color var(--t-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.calc-input:focus, .calc-select:focus { border-color: var(--inst); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-400);
  pointer-events: none;
}
.calc-btn {
  width: 100%; padding: 11px;
  background: var(--inst); color: var(--ink-0);
  border: none; border-radius: 5px;
  font-size: .875rem; font-weight: 500;
  transition: background var(--t-fast), transform var(--t-fast);
  margin-bottom: 20px;
}
.calc-btn:hover { background: var(--inst-hover); transform: scale(1.005); }
.calc-result {
  background: var(--ink-50); border: var(--border);
  border-radius: var(--radius); padding: 16px;
  min-height: 72px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-base);
}
.calc-result-placeholder { color: var(--ink-400); font-size: .8125rem; text-align: center; }
.calc-result-content { width: 100%; }
.calc-result-label { font-size: .6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 6px; }
.calc-result-range {
  font-size: 1.4rem; font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink-900);
}
.calc-result-note { font-size: .6875rem; color: var(--ink-400); margin-top: 4px; }

/* ── 11. COMPARATIVA MODULE ─────────────────── */
.compare-bars { display: flex; flex-direction: column; gap: 16px; }
.compare-row { display: flex; flex-direction: column; gap: 6px; }
.compare-row-header {
  display: flex; align-items: center; justify-content: space-between;
}
.compare-company {
  font-size: .8125rem; font-weight: 500; color: var(--ink-700);
}
.compare-val {
  font-size: .8125rem; font-weight: 600;
  color: var(--ink-900); font-variant-numeric: tabular-nums;
}
.compare-track {
  height: 6px; background: var(--ink-100); border-radius: 3px; overflow: hidden;
}
.compare-fill {
  height: 100%; border-radius: 3px; background: var(--inst);
  transition: width .6s cubic-bezier(.4,0,.2,1);
  opacity: .8;
}
.compare-fill.is-top { opacity: 1; }
.compare-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: var(--border);
  font-size: .6875rem; color: var(--ink-400);
  line-height: 1.5;
}

/* ── 12. STAT BENTO ─────────────────────────── */
.stat-bento { display: flex; flex-direction: column; gap: 0; height: 100%; }
.stat-block {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center;
  padding: 20px 0;
  border-bottom: var(--border);
}
.stat-block:last-child { border-bottom: none; }
.stat-value {
  font-size: 2.2rem; font-weight: 600;
  letter-spacing: -0.04em; color: var(--ink-950);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label-text { font-size: .75rem; color: var(--ink-500); }
.stat-delta {
  margin-top: 6px;
  font-size: .6875rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 3px;
}
.stat-delta.up { color: var(--warn); background: var(--warn-bg); }
.stat-delta.down { color: var(--ok); background: var(--ok-bg); }

/* ── 13. AUMENTOS SECTION ───────────────────── */
.aumentos-section { padding: 64px 0; background: var(--ink-0); border-top: var(--border); }
.aumentos-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-bottom: 28px;
}
.aumentos-controls { display: flex; gap: 6px; }
.mode-btn {
  padding: 6px 14px; border-radius: 5px;
  font-size: .8125rem; font-weight: 500;
  border: var(--border); background: var(--ink-0);
  color: var(--ink-600); cursor: pointer;
  transition: all var(--t-fast);
}
.mode-btn:hover { background: var(--ink-100); color: var(--ink-900); }
.mode-btn.active {
  background: var(--ink-950); color: var(--ink-0);
  border-color: var(--ink-950);
}

/* Table */
.table-wrap {
  border: var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-xs);
}
.table-scroll { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse;
  font-size: .8125rem;
}
thead { background: var(--ink-50); border-bottom: var(--border); }
thead th {
  padding: 11px 16px; text-align: center;
  font-size: .625rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-500); white-space: nowrap;
}
thead th:first-child {
  text-align: left; min-width: 160px;
  position: sticky; left: 0; z-index: 2;
  background: var(--ink-100);
}
tbody tr { border-bottom: 1px solid var(--ink-100); }
tbody tr:last-child { border-bottom: none; }
tbody td {
  padding: 11px 16px; text-align: center;
  color: var(--ink-700); white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background var(--t-fast);
}
tbody td:first-child {
  text-align: left; font-weight: 500; color: var(--ink-800);
  background: var(--ink-0);
  position: sticky; left: 0; z-index: 1;
  border-right: var(--border);
}
tbody tr:hover td:not(:first-child) { background: var(--ink-50); }

/* Row: Promedio */
tr.tr-avg td {
  font-weight: 600; color: var(--ink-900);
  background: var(--ink-50) !important;
}
tr.tr-avg td:first-child {
  background: var(--ink-100) !important;
  color: var(--ink-950);
}
tr.tr-avg { border-bottom: var(--border) !important; }

/* Heat cells — semantic color only */
td.s-low  { background: var(--ok-bg)   !important; color: var(--ok)   !important; }
td.s-high { background: var(--warn-bg) !important; color: var(--warn) !important; }
/* mid = neutral default */

/* Cell bar view */
.cell-bar {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.cell-bar-fill {
  height: 4px; background: var(--inst); border-radius: 2px; opacity: .55;
}

/* Table footer */
.table-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 16px;
}
.legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .6875rem; color: var(--ink-500);
}
.legend-swatch {
  width: 8px; height: 8px; border-radius: 2px;
}
.legend-swatch.low  { background: var(--ok); }
.legend-swatch.high { background: var(--warn); }
.legend-swatch.mid  { background: var(--ink-300); }
.source-note { font-size: .6875rem; color: var(--ink-400); }

/* ── 14. FOOTER ─────────────────────────────── */
footer {
  background: var(--ink-0);
  border-top: var(--border);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { font-size: .875rem; font-weight: 600; letter-spacing: -0.02em; color: var(--inst); margin-bottom: 10px; }
.footer-desc { font-size: .8125rem; color: var(--ink-500); line-height: 1.65; max-width: 280px; }
.footer-col-title {
  font-size: .6875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link {
  font-size: .8125rem; color: var(--ink-500);
  transition: color var(--t-fast);
  font-weight: 300;
}
.footer-link:hover { color: var(--ink-900); }

.footer-bottom {
  border-top: var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.footer-copy { font-size: .75rem; color: var(--ink-400); font-weight: 300; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: .75rem; color: var(--ink-400); font-weight: 300; transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--ink-700); }

/* ── 15. INSTITUTIONAL PAGE ─────────────────── */
.page-header {
  background: var(--ink-950);
  padding: 100px 0 56px;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--ink-800) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .5;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header .t-label { color: var(--ink-500); margin-bottom: 16px; }
.page-header h1 { color: var(--ink-0); margin-bottom: 14px; }
.page-header-sub { color: var(--ink-400); font-size: 1rem; font-weight: 300; max-width: 480px; line-height: 1.65; }

/* Mission cards */
.mission-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.mission-card {
  padding: var(--card-pad);
  border: var(--border);
  border-radius: var(--radius-lg);
  background: var(--ink-0);
}
.mission-tag { font-size: .6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px; }
.mission-card.is-dark { background: var(--ink-950); border-color: var(--ink-800); }
.mission-card.is-dark .mission-tag { color: var(--ink-500); }
.mission-card.is-dark .t-h3 { color: var(--ink-0); }
.mission-card.is-dark .t-body { color: var(--ink-400); }

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.value-card {
  padding: 24px 20px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--ink-0);
  transition: border-color var(--t-base);
}
.value-card:hover { border-color: var(--ink-400); }
.value-num {
  font-size: .6875rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink-300); margin-bottom: 12px;
}
.value-title { font-size: .9375rem; font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.value-desc { font-size: .8125rem; color: var(--ink-500); line-height: 1.6; }

/* Timeline */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 0;
  width: 1px; background: var(--ink-200);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-dot {
  position: absolute; left: -20px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-0); border: 2px solid var(--ink-400);
}
.timeline-item.current .timeline-dot { background: var(--inst); border-color: var(--inst); }
.timeline-year { font-size: .6875rem; font-weight: 600; color: var(--ink-400); letter-spacing: 0.06em; margin-bottom: 4px; }
.timeline-title { font-size: .9375rem; font-weight: 500; color: var(--ink-900); margin-bottom: 4px; }
.timeline-desc { font-size: .8125rem; color: var(--ink-500); line-height: 1.55; }

/* Stat stripe */
.stat-stripe {
  background: var(--ink-50); border: var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stripe-item {
  padding: 32px 24px; text-align: center;
  border-right: var(--border);
}
.stripe-item:last-child { border-right: none; }
.stripe-val { font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; color: var(--ink-950); margin-bottom: 4px; }
.stripe-lbl { font-size: .75rem; color: var(--ink-500); }

/* Contact grid */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.contact-card {
  padding: 24px; border: var(--border); border-radius: var(--radius);
  background: var(--ink-0); transition: border-color var(--t-base);
}
.contact-card:hover { border-color: var(--ink-400); }
.contact-tag { font-size: .6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 8px; }
.contact-val { font-size: .9375rem; font-weight: 500; color: var(--ink-900); margin-bottom: 4px; }
.contact-note { font-size: .75rem; color: var(--ink-500); }

/* ── 16. UTILITIES ──────────────────────────── */
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.full-width  { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Button reusable */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 5px;
  font-size: .875rem; font-weight: 500; font-family: var(--font);
  border: var(--border); cursor: pointer;
  transition: all var(--t-fast);
}
.btn-inst { background: var(--inst); color: var(--ink-0); border-color: var(--inst); }
.btn-inst:hover { background: var(--inst-hover); border-color: var(--inst-hover); }
.btn-ghost { background: transparent; color: var(--ink-600); }
.btn-ghost:hover { background: var(--ink-100); color: var(--ink-900); border-color: var(--ink-300); }

/* Inline link */
.link-inst { color: var(--inst); font-size: .8125rem; font-weight: 500; text-decoration: none; }
.link-inst:hover { text-decoration: underline; }

/* ── 16.5 FAQ SECTION ──────────────────────── */
.faq-section {
  padding: 80px 0;
  background: var(--ink-0);
  border-top: 1px solid var(--ink-200);
}
.faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.faq-container {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--ink-200);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-summary {
  padding: 24px 0;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink-950);
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color var(--t-fast);
  letter-spacing: -0.01em;
}
.faq-summary:hover {
  color: var(--inst);
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--ink-400);
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--inst);
}
.faq-content {
  padding: 0 0 24px 0;
  color: var(--ink-600);
  line-height: 1.6;
  font-size: 1rem;
}
.faq-content strong {
  color: var(--ink-900);
}

/* ── 17. ANIMATIONS ─────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── 18. RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .bento-news    { grid-column: span 6; }
  .bento-stat    { grid-column: span 6; }
  .bento-compare { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-stripe { grid-template-columns: repeat(2, 1fr); }
  .stripe-item:nth-child(2) { border-right: none; }
  .stripe-item:nth-child(3) { border-top: var(--border); }
  .stripe-item:nth-child(4) { border-top: var(--border); border-right: none; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner  { padding: 0 20px; }
  .nav-links, .nav-action { display: none; }
  .nav-hamburger { display: flex; }
  .bento-news, .bento-compare, .bento-stat { grid-column: span 12; }
  .mission-pair { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stat-stripe { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-desc { max-width: 100%; }
  .cmd-filters { flex-wrap: wrap; gap: 8px; }
  .cmd-filter-group { border-right: none; margin-right: 0; padding-right: 0; width: 100%; }
  .calc-grid { grid-template-columns: 1fr; }
  .aumentos-section .aumentos-header { flex-direction: column; align-items: flex-start; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .t-display { font-size: 2rem; }
  .hero { padding: 100px 0 56px; }
}


/* ── GLOBAL BUTTON SYSTEM ── */
.btn-primary, .wizard-btn-start, .cmd-submit, .nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink-900);
  color: white !important;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary:hover, .wizard-btn-start:hover, .cmd-submit:hover, .nav-action:hover {
  transform: translateY(-2px);
  background: #252525;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-primary:active, .wizard-btn-start:active {
  transform: scale(0.97);
}

.btn-accent {
  background: var(--accent);
  color: white !important;
}

.btn-accent:hover {
  background: #0066dc;
}

.btn-ghost {
  background: rgba(0,0,0,0.03);
  color: var(--ink-800);
  border: 1px solid var(--ink-200);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost:hover {
  background: var(--ink-100);
  border-color: var(--ink-300);
}

.mode-btn {
  background: white;
  color: var(--ink-600);
  border: 1px solid var(--ink-200);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn:hover {
  background: var(--ink-50);
  border-color: var(--ink-300);
}

.mode-btn.active {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-location {
  width: 100%;
  background: rgba(0, 114, 245, 0.04);
  color: var(--accent);
  border: 1.5px solid rgba(0, 114, 245, 0.1);
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-location:hover {
  background: rgba(0, 114, 245, 0.08);
  border-color: var(--accent);
}

/* ── WIZARD CALCULATOR (MOBILE FIRST) ── */
.wizard-progress {
  width: 80px;
  height: 4px;
  background: var(--ink-200);
  border-radius: 2px;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-container {
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.wizard-step {
  display: none;
  animation: wizardSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-step.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@keyframes wizardSlide {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Option Cards (Large) */
.wizard-card-large {
  display: flex;
  align-items: center;
  padding: 18px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-card-large:hover, .wizard-card-large.selected {
  border-color: var(--accent);
  background: rgba(0, 114, 245, 0.03);
}

.wizard-card-large.selected {
  box-shadow: 0 0 0 1px var(--accent);
}


.card-icon-svg {
  width: 44px;
  height: 44px;
  background: var(--ink-50);
  color: var(--ink-900);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  transition: all 0.2s;
}

.wizard-card-large.selected .card-icon-svg {
  background: var(--accent);
  color: white;
}

.card-info strong {
  display: block;
  font-size: 16px;
  color: var(--ink-900);
}

.card-info span {
  font-size: 13px;
  color: var(--ink-500);
}

/* Zone Grid */
.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.wizard-mini-card {
  padding: 14px;
  text-align: center;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.wizard-mini-card.selected {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}

/* Age Counters */
.age-manager {
  background: var(--ink-50);
  border-radius: 16px;
  padding: 12px;
}

.age-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.age-row:last-child { border-bottom: none; }

.age-label strong { display: block; font-size: 14px; }
.age-label span { font-size: 16px; font-weight: 700; color: var(--accent); }

.age-controls {
  display: flex;
  gap: 4px;
  background: white;
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--ink-200);
}

.btn-age {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--ink-900);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-age:active { background: var(--ink-100); }

.btn-age-remove {
  width: 32px;
  height: 32px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
  border: none;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-member-soft {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border: 1.5px dashed var(--ink-300);
  color: var(--ink-600);
  background: transparent;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-member-soft:hover {
  background: var(--ink-50);
  border-color: var(--ink-400);
}

/* Success UI Minimalist */
.success-check-minimal {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.summary-details {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 12px;
}

.btn-text-link {
  background: transparent;
  border: none;
  color: var(--ink-500);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.wizard-input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.wizard-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ──────────────────────────────────────────────
   14. NOVEDADES DEL SECTOR (DYNAMIC SYSTEM)
   ────────────────────────────────────────────── */
.bento-news .news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.news-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-headline {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-950);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-badge-new {
  font-size: 10px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
}

.news-link-minimal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}

.news-link-minimal:hover {
  gap: 6px;
}

.news-footer-action .news-link-minimal {
  font-size: 13px;
  color: var(--ink-950);
  letter-spacing: -0.01em;
}

.bento-badge-live {
  background: #ff3b30;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bento-badge-live::before {
  content: "";
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* ──────────────────────────────────────────────
   15. AUMENTOS DASHBOARD & VISUALIZATIONS
   ────────────────────────────────────────────── */

.aumentos-stats-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  animation: fadeIn 0.8s ease-out;
}

.stat-card-mini {
  background: white;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--ink-100);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: transform 0.2s;
}

.stat-card-mini:hover {
  transform: translateY(-4px);
  border-color: var(--ink-200);
}

.stat-card-mini .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.stat-card-mini .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-950);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-card-mini .trend {
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-up { color: #10b981; } /* Subidas en verde premium */
.trend-down { color: #ef4444; }

/* Magnitud visual en celdas */
.magnitude-cell {
  position: relative;
  min-width: 110px;
}

.magnitude-value-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.magnitude-bar-container {
  width: 100%;
  height: 6px;
  background: var(--ink-50);
  border-radius: 10px;
  overflow: hidden;
}

.magnitude-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  opacity: 0.8;
  transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.trend-indicator {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 4px;
}

.table-wrap {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.increases-table th {
  background: var(--ink-50);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 16px;
  color: var(--ink-500);
  border-bottom: 1px solid var(--ink-100);
}

.increases-table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--ink-50);
}

.increases-table tr:last-child td {
  border-bottom: none;
}

.month-label-sticky {
  font-weight: 700;
  color: var(--ink-950);
}

/* 16. NEWS SHARING & CAPTURE OPTIMIZATION */
.whatsapp-btn {
  color: #25D366 !important;
  border-color: rgba(37, 211, 102, 0.2) !important;
}
.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.05) !important;
  border-color: #25D366 !important;
}

.news-analysis {
  background: var(--ink-50);
  border-left: 2px solid var(--accent);
  padding: 24px;
  border-radius: 0 12px 12px 0;
  margin: 40px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-700);
}

.news-analysis strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-950);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 17. CHART & TABLE EXPANSION - REFINED DASHBOARD */
.chart-mini-container {
  background: #ffffff;
  border: 1px solid var(--ink-100);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  height: 240px; /* Mas chico como pidió el usuario */
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}

.aumentos-stats-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card-mini {
  background: #fdfdfd;
  border: 1px solid var(--ink-100);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card-mini .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-card-mini .value {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-950);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-card-mini .trend {
  font-size: 12px;
  font-weight: 500;
}

.stat-card-mini .trend-up { color: #10b981; }
.stat-card-mini .trend-down { color: #ef4444; }

.table-outer-wrapper {
  position: relative;
}

#table-truncator {
  max-height: 400px;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

#table-truncator.expanded {
  max-height: 2500px;
}

/* Gradient Fade */
.table-outer-wrapper:not(.is-expanded)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, #ffffff);
  z-index: 5;
  pointer-events: none;
}

.table-actions-full {
  display: flex;
  justify-content: center;
  margin-top: -20px;
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
}

.btn-expand {
  background: var(--ink-950);
  color: var(--ink-0);
  border: none;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-expand:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,102,255,0.2);
}

.is-expanded .btn-expand {
  display: none;
}

/* 18. CONVERSION ENGINEERING & VISUAL POLISH */
.hero-badges {
  display: flex;
  gap: 10px;
}

.badge-premium {
  background: var(--ink-950);
  color: var(--ink-0);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.badge-update {
  background: #dcfce7;
  color: #15803d;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid #bbf7d0;
}

.hero-stats-row {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--ink-100);
  padding-top: 40px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-item strong {
  font-size: 24px;
  color: var(--ink-950);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-item span {
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Tactical Floating CTA for Mobile */
.floating-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink-950);
  color: #fff;
  padding: 14px 28px;
  border-radius: 99px;
  z-index: 1000;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  white-space: nowrap;
}

.floating-cta.visible {
  transform: translateX(-50%) translateY(0);
}

.floating-cta svg {
  color: var(--accent);
}

  }
}

/* 20. PREMIUM INTERACTIVE COMPONENTS */
.btn-primary {
  background: var(--ink-950);
  color: var(--ink-0);
  padding: 14px 32px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--t-base);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: none;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,102,255,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-950);
  padding: 14px 32px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink-200);
  transition: all var(--t-base);
}

.btn-ghost:hover {
  background: var(--ink-50);
  border-color: var(--ink-300);
  transform: translateY(-2px);
}


/* 19. ADVANCED REVEAL & LOAD COORDINATION */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-slow) var(--ease-out-expo), 
              transform var(--t-slow) var(--ease-out-expo);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group {
  display: flex !important;
  flex-direction: column;
}

.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--t-slow) var(--ease-out-expo);
}

.reveal-group.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.reveal-group.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.reveal-group.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.reveal-group.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }

#preloader {
  position: fixed;
  inset: 0;
  background: var(--ink-950);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s var(--ease-out-expo);
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* 21. TOTAL MOBILE EMERGENCY REPAIR (Extreme Priority) */
@media screen and (max-width: 768px) {
  /* Prevent horizontal spill at all costs */
  html, body {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  :root {
    --section-pad: 40px !important;
    --gap: 12px !important;
  }

  /* Force Navbar Integrity */
  .nav {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }
  .nav-inner {
    padding: 0 16px !important;
    width: 100% !important;
  }
  .nav-links { 
    display: none !important; 
    visibility: hidden !important;
  }
  .nav-action { 
    display: none !important; 
    visibility: hidden !important;
  }
  .nav-hamburger { 
    display: flex !important; 
  }

  /* Fix Bento Overflows */
  .bento {
    display: block !important;
    width: 100% !important;
  }
  .bento-card {
    width: 100% !important;
    margin-bottom: 12px !important;
    grid-column: auto !important;
  }

  /* Fix Scrollable Tables */
  .table-scroll {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 20px !important;
  }

  /* Fix Typography */
  .t-display { font-size: 2rem !important; }
  .t-h2      { font-size: 1.5rem !important; }

  /* Floating CTA Mobile */
  .floating-cta {
    width: calc(100% - 32px) !important;
    left: 16px !important;
    bottom: 16px !important;
    z-index: 1000 !important;
  }
}

/* 22. UTILITIES */
.m-only { display: none; }
@media (max-width: 768px) { .m-only { display: block !important; } .d-only { display: none !important; } }

/* 23. NEWS LIST ITEMS (bento card) */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-list-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-100);
  transition: background var(--t-fast);
}
.news-list-item:last-child { border-bottom: none; }
.news-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.news-list-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--inst-lt);
  color: var(--inst);
  padding: 2px 8px;
  border-radius: 4px;
}
.news-list-date {
  font-size: 11px;
  color: var(--ink-400);
  font-weight: 500;
}
.news-list-headline {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.4;
  text-decoration: none;
  display: block;
  transition: color var(--t-fast);
}
.news-list-headline:hover { color: var(--inst); }

/* ── SMOOTH SCROLL ──────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── SCROLL-TO-TOP BUTTON ───────────────────── */
#scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink-200);
  background: var(--ink-0);
  color: var(--ink-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
              background 0.2s ease, border-color 0.2s ease;
}
#scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scroll-top-btn:hover {
  background: var(--ink-950);
  color: #fff;
  border-color: var(--ink-950);
}

/* Push WhatsApp FAB up when scroll-top is visible */
.wa-float {
  bottom: 24px;
  right: 24px;
}

/* ── LAZY IMAGE FADE-IN ─────────────────────── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* ── HERO PROOF METRICS BAR ─────────────────── */
.hero-metrics-bar {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 32px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.hero-metrics-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
}
.metric-item {
  text-align: center;
}
.metric-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--inst);
  letter-spacing: -0.02em;
}
.metric-label {
  font-size: 0.875rem;
  color: #334155;
  margin-top: 6px;
  font-weight: 600;
}
.metric-divider {
  width: 1px;
  height: 40px;
  background: #cbd5e1;
}

@media (max-width: 768px) {
  .hero-metrics-grid {
    flex-direction: column;
    gap: 20px;
  }
  .metric-divider {
    display: none;
  }
}

/* ── STICKY MOBILE CTA BAR (ANIMATED) ────────── */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  background: #0b141a;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 99999;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sticky-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-mobile-sticky {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  letter-spacing: -0.01em;
  animation: pulseWa 2.5s infinite ease-in-out;
}

@keyframes pulseWa {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); transform: scale(1); }
  50% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.75); transform: scale(1.02); }
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
  }
  #scroll-top-btn {
    bottom: 84px;
  }
}
