/**
 * Design tokens compartidos (app / admin / nóminas).
 * Única fuente de :root y tema oscuro. No redefinir estas variables en plantilla.css.
 */
:root {
  --bg: #0c1220;
  --bg-2: #141c2c;
  --bg-3: #1c2740;
  --panel: #f8f9fb;
  --panel-soft: #e9eef5;
  --ink: #121a28;
  --ink-soft: #5c6b7e;
  --line: #cdd5e0;
  --accent: #2b4c7e;
  --accent-2: #b86b2e;
  --danger: #b43f3a;
  --ok: #2b4c7e;
  --warn: #b86b2e;
  --sidebar: #0a1018;
  --shadow: 0 16px 40px rgba(12, 18, 32, 0.1);
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Outfit", system-ui, sans-serif;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.55);
  --surface-border: rgba(255, 255, 255, 0.7);
  --page-grad-1: rgba(43, 76, 126, 0.1);
  --page-grad-2: rgba(184, 107, 46, 0.06);
  --page-base: linear-gradient(160deg, #eef1f5 0%, #e6ebf2 50%, #dde4ee 100%);
  --enlace: #1f7a5c;
  --enlace-hover: #155a44;
  --chip-bg: rgba(255, 255, 255, 0.9);
  --tabla-hover: rgba(43, 76, 126, 0.05);
}

html[data-tema="oscuro"] {
  color-scheme: dark;
  --panel: #161e2e;
  --panel-soft: #1c2740;
  --ink: #e8eef6;
  --ink-soft: #9aa6b8;
  --line: #2e3a4f;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --surface: rgba(22, 30, 46, 0.92);
  --surface-solid: #1a2336;
  --surface-soft: rgba(28, 39, 64, 0.75);
  --surface-border: rgba(46, 58, 79, 0.9);
  --page-grad-1: rgba(43, 76, 126, 0.22);
  --page-grad-2: rgba(184, 107, 46, 0.1);
  --page-base: linear-gradient(160deg, #0a1018 0%, #0f1624 50%, #121a2a 100%);
  --enlace: #3dcea0;
  --enlace-hover: #6ee0b8;
  --chip-bg: rgba(26, 35, 54, 0.95);
  --tabla-hover: rgba(58, 97, 153, 0.18);
}
