/* =========================================================
   Tokens de diseño: colores, tipografías y medidas.
   Tema claro por defecto; el oscuro se activa con data-theme="dark".
   ========================================================= */
:root {
  --bg: #ffffff;
  --surface: #f6f5fb;
  --raised: #ffffff;
  --line: #e6e4ef;
  --fg: #14121c;
  --muted: #5d5a70;
  --accent: #6a3df0;
  --accent-soft: #efe9ff;
  --accent-fg: #ffffff;
  --ok: #16794a;   --ok-soft: #e3f5ec;
  --warn: #9a5b00; --warn-soft: #fff2dc;
  --bad: #b4232c;  --bad-soft: #fde8e9;
  --holiday: #c2410c; --holiday-soft: #fff1e8;
  --shadow: 0 12px 40px rgba(30, 20, 70, .10);

  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r: 12px;
  --header-h: 64px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #070a1a;
  --surface: #0d1127;
  --raised: #11162f;
  --line: #1f2546;
  --fg: #eef0fa;
  --muted: #9ca2c0;
  --accent: #a98dff;
  --accent-soft: #211b4a;
  --accent-fg: #0b0820;
  --ok: #5fd39a;   --ok-soft: #0f2a20;
  --warn: #f3b65a; --warn-soft: #2c2111;
  --bad: #ff7a82;  --bad-soft: #2d1218;
  --holiday: #ff9b6a; --holiday-soft: #2a1810;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* Colores por categoría (para agregar una nueva: .c-<id> y su entrada en js/config/catalogos.js) */
.c-ia             { --c1: #7c3aed; --c2: #3b82f6; }
.c-ciberseguridad { --c1: #0d9488; --c2: #1e3a5f; }
.c-cloud          { --c1: #38bdf8; --c2: #6366f1; }
.c-blockchain     { --c1: #f59e0b; --c2: #b45309; }
.c-devops         { --c1: #ec4899; --c2: #8b5cf6; }
.c-consultoria    { --c1: #64748b; --c2: #0f766e; }
.c-hackathon      { --c1: #22c55e; --c2: #0e7490; }
.c-ctf            { --c1: #ef4444; --c2: #7c2d12; }
.c-otros          { --c1: #94a3b8; --c2: #475569; }
