/* COMPROVAL / PULSO 1.0 — Tokens compartidos. Sin dependencias. */
:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-subtle: #f0f3f6;
  --surface-hover: #e9edf3;
  --border: #dce2e9; /* Separadores decorativos. No usar como único límite de un campo. */
  --border-strong: #7b8999;
  --text: #192431;
  --text-2: #485765;
  --text-3: #5d6c7c;
  /* Cobalto Comproval («Rastro exacto»); el comercio lo reemplaza con su color. */
  --brand: #1e40af;
  --brand-hover: #19368f;
  --on-brand: #ffffff;
  --on-brand-hover: #ffffff;
  --brand-soft: #ebf1fd;
  --brand-text: #1e40af;
  --brand-edge: #1e40af;
  --accent: #b5cfdb;
  --accent-soft: #eaf2f6;
  --accent-text: #304e61;
  --focus: #1e40af;
  --focus-gap: #ffffff;
  --overlay: rgb(15 23 42 / 48%);
  --ok: #126c46;
  --ok-soft: #eaf6ef;
  --ok-text: #105836;
  --on-ok: #ffffff;
  --pending: #255cc0;
  --pending-soft: #edf3ff;
  --pending-text: #204f9e;
  --on-pending: #ffffff;
  --risk: #b12e3d;
  --risk-soft: #fff0f1;
  --risk-text: #972335;
  --on-risk: #ffffff;
  --used: #70419a;
  --used-soft: #f4eefa;
  --used-text: #633987;
  --on-used: #ffffff;
  --missing: #8c570a;
  --missing-soft: #fff5e5;
  --missing-text: #795007;
  --on-missing: #ffffff;
  --disabled-bg: #e7ebf0;
  --disabled-text: #606c7a;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --text-xs: .75rem; --text-sm: .8125rem; --text-md: .9375rem;
  --text-base: 1rem; --text-lg: 1.125rem; --text-xl: 1.25rem;
  --text-2xl: 1.5rem; --text-3xl: 2rem; --text-4xl: 2.5rem;
  --text-verdict: 2.5rem; --text-amount: 2rem;
  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700;
  --leading-tight: 1.12; --leading-heading: 1.25; --leading-body: 1.5;
  --space-0: 0; --space-1: 4px; --space-2: 8px; --space-3: 12px;
  --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-7: 28px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --space-14: 56px; --space-16: 64px; --space-20: 80px;
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px;
  --radius-xl: 16px; --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgb(18 33 53 / 4%);
  --shadow-md: 0 8px 28px rgb(18 33 53 / 8%);
  --shadow-dialog: 0 24px 72px rgb(13 24 44 / 24%);
  --touch: 44px; --control-height: 44px; --camera-height: 64px;
  --sidebar-width: 224px; --header-height: 72px;
  --content-max: 1360px; --cash-max: 480px; --page-gutter: 32px;
  --z-nav: 20; --z-tooltip: 40; --z-toast: 90;
  --duration-fast: 120ms; --duration-normal: 180ms;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111820; --surface: #19232e; --surface-subtle: #202d3b;
  --surface-hover: #29394b; --border: #344353; --border-strong: #7d8c9f;
  --text: #f3f6fa; --text-2: #c0cbd8; --text-3: #a5b4c6;
  --brand: #93b4ff; --brand-hover: #b3caff; --on-brand: #121d39;
  --on-brand-hover: #121d39; --brand-soft: #1d2b4f; --brand-text: #b3caff;
  --brand-edge: #93b4ff; --accent: #96bacb; --accent-soft: #203644; --accent-text: #b6d5e3;
  --focus: #bfd2ff; --focus-gap: #111820; --overlay: rgb(3 9 16 / 70%);
  --ok: #73d7a4; --ok-soft: #18372c; --ok-text: #9be3bb; --on-ok: #10251c;
  --pending: #a2c2ff; --pending-soft: #203454; --pending-text: #b9d1ff; --on-pending: #10203f;
  --risk: #ffadb4; --risk-soft: #43262e; --risk-text: #ffbac2; --on-risk: #3d111b;
  --used: #d3b4f4; --used-soft: #352944; --used-text: #d9c0f5; --on-used: #291335;
  --missing: #f4c77e; --missing-soft: #3b301f; --missing-text: #f8d698; --on-missing: #332207;
  --disabled-bg: #2a3745; --disabled-text: #acb7c4;
  --shadow-sm: none; --shadow-md: 0 8px 28px rgb(0 0 0 / 18%);
  --shadow-dialog: 0 24px 72px rgb(0 0 0 / 45%);
}
@media (max-width: 760px) {
  :root { --page-gutter: 16px; --header-height: 64px; --text-md: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration-normal: 0ms; }
}
