/*
  Clariax CRM — Design tokens
  Paleta: base grafito/tinta para navegación + teal profundo como único acento
  de acción. Ámbar y rojo se reservan exclusivamente para estados (pendiente /
  perdido) para que el color siempre signifique algo, nunca decore.
*/

:root {
  /* ---- Color: superficies ---- */
  --ink-900: #12151f;      /* sidebar / topbar */
  --ink-800: #1b2030;      /* hover sobre ink-900 */
  --ink-700: #262d42;      /* bordes sutiles sobre ink-900 */
  --canvas: #f2f3f6;       /* fondo de la app */
  --surface: #ffffff;      /* tarjetas, paneles, modales */
  --surface-sunken: #f8f9fb; /* filas alternas, cabeceras de tabla */
  --border: #e2e4ea;
  --border-strong: #c9cdd8;

  /* ---- Color: texto ---- */
  --text: #171a24;
  --text-muted: #666c7d;
  --text-faint: #9195a3;
  --text-on-ink: #eef0f6;
  --text-on-ink-muted: #9aa1b8;

  /* ---- Color: acento y estados ---- */
  --accent: #146b5c;
  --accent-strong: #0e5347;
  --accent-soft: #e2f1ee;
  --accent-soft-text: #0e5347;

  --amber: #b8791e;
  --amber-soft: #faf0dd;
  --amber-soft-text: #8f5c14;

  --red: #c1403f;
  --red-soft: #fbe9e8;
  --red-soft-text: #96302f;

  --blue: #46577a;
  --blue-soft: #e9edf5;
  --blue-soft-text: #384869;

  --green: #2f8f5b;
  --green-soft: #e5f3ea;

  /* ---- Tipografía ---- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.75rem;    /* 12 */
  --text-sm: 0.8125rem;  /* 13 */
  --text-base: 0.875rem; /* 14 — tamaño base de la app, pensado para densidad de datos */
  --text-md: 1rem;       /* 16 */
  --text-lg: 1.25rem;    /* 20 */
  --text-xl: 1.5rem;     /* 24 */
  --text-2xl: 2rem;      /* 32 */

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

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

  /* ---- Radios y bordes ---- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* ---- Sombra: solo para elementos flotantes (modal, dropdown, toast) ---- */
  --shadow-float: 0 8px 24px rgba(18, 21, 31, 0.14), 0 2px 6px rgba(18, 21, 31, 0.08);

  /* ---- Layout ---- */
  --sidebar-width: 232px;
  --topbar-height: 60px;

  /* ---- Transición ---- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
}
