/* ═══════════════════════════════════════════════════════════════════
   tokens.css — Naowee Design System tokens (CANÓNICO)
   Portado 1:1 desde naowee-test-sidebar-shell/shared/tokens.css
   + extensiones IVC-específicas (tipologías, z-index extra)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand ───────────────────────────────────────── */
  --naranja: #FF7500;
  --azul: #002B5B;
  --accent: #d74009;

  /* ── Text ────────────────────────────────────────── */
  --text-primary: #282834;
  --text-secondary: #646587;
  --text-muted: #9ca0b8;
  --text-inverse: #ffffff;

  /* ── Surfaces ────────────────────────────────────── */
  --surface: #ffffff;
  --surface-alt: #fafbff;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --bg-elevated: #ffffff;

  /* ── Borders ─────────────────────────────────────── */
  --border: #e7e9f3;
  --border-dark: #d0d4e6;
  --border-strong: #b4b9d4;

  /* ── Accent backgrounds (estados activos) ────────── */
  --accent-bg: #fff3e6;
  --accent-bg-warm: #ffe4cf;

  /* ── Section label ───────────────────────────────── */
  --section-label-color: #9ca0b8;

  /* ── Semantic state colors ───────────────────────── */
  --green: #1f8923;
  --green-bg: #e6f4e7;
  --green-border: #b7dfb9;

  --blue-info: #1f78d1;
  --blue-bg: #eef5ff;
  --blue-border: #b8d4f2;

  --orange-bg: #fff3e6;
  --orange-border: #ffbf75;

  --red: #d92d20;
  --red-bg: #fff0ee;
  --red-border: #ffc4bb;

  --purple: #7c3aed;
  --purple-bg: #f3edff;

  --team-bg: #ffedc7;
  --team-border: #ffbf75;

  /* ── Tipología IVC (3 colores semánticos) ────────── */
  --tipo-tramite: #1f78d1;
  --tipo-tramite-bg: #eef5ff;
  --tipo-tramite-border: #b8d4f2;

  --tipo-actuacion: #1f8923;
  --tipo-actuacion-bg: #e6f4e7;
  --tipo-actuacion-border: #b7dfb9;

  --tipo-procedimiento: #d74009;
  --tipo-procedimiento-bg: #fff3e6;
  --tipo-procedimiento-border: #ffbf75;

  /* ── Sidebar / Layout dimensions ─────────────────── */
  --sidebar-w: 274px;
  --sidebar-w-collapsed: 72px;
  --header-h: 88px;

  /* ── Radii ───────────────────────────────────────── */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ── Shadows ─────────────────────────────────────── */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 0 2px rgba(145, 158, 171, .2), 0 12px 24px -4px rgba(145, 158, 171, .12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .25);
  --shadow-tooltip: 0 24px 48px -12px rgba(15, 17, 35, .35);

  /* ── Easing — Apple-style smooth-out ─────────────── */
  --easing-smoothout: cubic-bezier(0.32, 0.72, 0, 1);
  --easing-bounce-soft: cubic-bezier(0.16, 1, 0.3, 1);
  /* Compat alias usados por components.css y pages */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  /* ── Durations ───────────────────────────────────── */
  --duration-fast: 140ms;
  --duration-normal: 200ms;
  --duration-slow: 360ms;

  /* ── Typography ──────────────────────────────────── */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;

  /* ── Spacing scale ───────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ── Z-index ─────────────────────────────────────── */
  --z-sidebar: 100;
  --z-header: 200;
  --z-modal: 1000;
  --z-demo-switcher: 1200;
  /* v1.5.3 (25/05/2026): snackbar subido de 900 → 1300 para aparecer
     POR ENCIMA del demo-switcher (1200). Antes quedaba detrás del pill. */
  --z-snackbar: 1300;
  --z-tour: 1500;
}

/* ── Base reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }
