/* ============================================================================
   GLS ERP · Design system · tokens.css
   Custom properties derivadas del logo (docs/design_system.md).
   Azul GLS #184878 (marca, navegación, primario) · Rojo GLS #a82424 (peligro)
   Naranja GLS #cc543c (acento, con moderación) · neutros del gris del logo.
   ============================================================================ */
:root {
  color-scheme: light;

  /* Marca ------------------------------------------------------------- */
  --blue-950: #0d2a47; --blue-900: #133a60; --blue-800: #184878; --blue-700: #1f5a93;
  --blue-600: #2a6fb0; --blue-500: #3a86c9; --blue-100: #dbe8f5; --blue-50: #eef4fa;
  --red-700: #8f1e1e; --red-600: #a82424; --red-100: #f6dcdc; --red-50: #fbefef;
  --orange-600: #cc543c; --orange-100: #f9e3dc; --orange-50: #fdf3ef;

  --brand: var(--blue-800);
  --brand-hover: var(--blue-700);
  --brand-active: var(--blue-900);
  --accent: var(--orange-600);
  --accent-soft: var(--orange-100);

  /* Neutros ----------------------------------------------------------- */
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef0f3;
  --border: #e2e5ea;
  --border-strong: #cfd4db;
  --text: #1b2430;
  --text-2: #5b6673;
  --text-3: #8b96a3;
  --text-inverse: #ffffff;

  /* Semánticos -------------------------------------------------------- */
  --success: #1f8a5b; --success-bg: #e3f4ec; --success-border: #bfe3d1;
  --warning: #b7791f; --warning-bg: #fbf1dc; --warning-border: #f0dcae;
  --danger: #a82424;  --danger-bg: #fbefef;  --danger-border: #f0c9c9;
  --info: #2a6fb0;    --info-bg: #eef4fa;    --info-border: #cfdff0;
  --neutral: #5b6673; --neutral-bg: #eef0f3; --neutral-border: #dde1e7;

  /* Sidebar oscura ---------------------------------------------------- */
  --sidebar-bg: linear-gradient(180deg, #0f2b47 0%, #184878 100%);
  --sidebar-bg-solid: #0f2b47;
  --sidebar-text: #dbe4ee;
  --sidebar-text-2: #9fb3c8;
  --sidebar-hover: rgba(255, 255, 255, .08);
  --sidebar-active: rgba(255, 255, 255, .14);
  --sidebar-border: rgba(255, 255, 255, .12);
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 56px;

  /* Tipografía -------------------------------------------------------- */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px;
  --fs-22: 22px; --fs-28: 28px; --fs-34: 34px;
  --lh-tight: 1.2; --lh-base: 1.5;

  /* Forma ------------------------------------------------------------- */
  --radius-sm: 6px; --radius: 10px; --radius-lg: 14px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, .08);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-xl: 0 16px 48px rgba(16, 24, 40, .16);
  --focus-ring: 0 0 0 3px rgba(42, 111, 176, .35);
  --focus-ring-color: var(--blue-600);

  /* Espaciado (escala de 4) ------------------------------------------- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

  /* Controles --------------------------------------------------------- */
  --control-h: 40px; --control-h-sm: 32px; --control-h-lg: 48px;
  --touch: 44px;
  --content-max: 1440px;

  /* Transiciones ------------------------------------------------------ */
  --t-fast: 120ms ease; --t-base: 180ms ease;

  /* Compatibilidad con los nombres que usaban los CSS anteriores ------ */
  --ink: var(--text); --muted: var(--text-2); --line: var(--border); --canvas: var(--bg);
  --navy: var(--blue-900); --navy-2: var(--blue-950); --blue: var(--blue-700); --blue-dark: var(--blue-800);
  --focus: var(--blue-600);
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-base: 0ms; }
}
