/* ════════════════════════════════════════════════════════════
   Grupo V&V · Tokens de diseño (azul de la marca: torre #0b57d0 sobre #4a90e2)
   Los dos temas definen EXACTAMENTE las mismas variables.
   ════════════════════════════════════════════════════════════ */

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --font-num: var(--font);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --nav-h: 64px;
  --sidebar-w: 232px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .18s;
}

/* ── Claro ─────────────────────────────────────────────────── */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4fc;
  --surface: #ffffff;
  --surface-2: #f2f7fe;
  --surface-3: #e3edfb;
  --border: #d2e0f4;
  --border-strong: #a9c2e6;
  --text: #16202f;
  --text-muted: #4f5e75;
  --text-faint: #5b6a82;
  --accent: #0b57d0;
  --accent-hover: #0947ab;
  --accent-contrast: #ffffff;
  --accent-text: #0b57d0;
  --accent-soft: #e1ecfc;
  --success: #1b7a3a;
  --success-soft: #def2e4;
  --warning: #8f4a00;
  --warning-soft: #fdebd0;
  --danger: #c62828;
  --danger-soft: #fde4e4;
  --c-cuchara: #0b57d0;
  --c-total: #1b7a3a;
  --header-bg: linear-gradient(135deg, #0b57d0, #1b65d1);
  --header-text: #ffffff;
  --overlay: rgba(10, 20, 40, .5);
  --shadow: 0 1px 2px rgba(16, 32, 64, .08), 0 8px 24px rgba(16, 32, 64, .07);
  --shadow-lg: 0 12px 40px rgba(16, 32, 64, .22);
  --swatch-a: #0b57d0;
  --swatch-b: #eef4fc;
}

/* ── Oscuro ────────────────────────────────────────────────── */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #081020;
  --surface: #0d1830;
  --surface-2: #12203d;
  --surface-3: #1a2c52;
  --border: #22365e;
  --border-strong: #36507f;
  --text: #dbe6f5;
  --text-muted: #9bb0cc;
  --text-faint: #8196b4;
  --accent: #1f6ad6;
  --accent-hover: #2a6fdc;
  --accent-contrast: #ffffff;
  --accent-text: #7fb5ff;
  --accent-soft: #12284d;
  --success: #4ade80;
  --success-soft: #0f2c1c;
  --warning: #fbbf24;
  --warning-soft: #33260a;
  --danger: #ff6b6b;
  --danger-soft: #371417;
  --c-cuchara: #7fb5ff;
  --c-total: #4ade80;
  --header-bg: linear-gradient(135deg, #0b3f99, #0d1830);
  --header-text: #eaf2ff;
  --overlay: rgba(0, 4, 12, .72);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .6);
  --swatch-a: #1f6ad6;
  --swatch-b: #0d1830;
}
