/* NEXORA SALES — Design tokens
   Lenguaje visual: superficies blancas sobre fondo lavanda, índigo marino para lo activo,
   radios amplios y sombras suaves. Tema oscuro con [data-theme="dark"] en <html>. */
:root {
  color-scheme: light;
  /* Marca (índigo / lavanda) */
  --primary: #5257C9;
  --primary-600: #3D41A8;
  --navy: #3B4074;
  --navy-900: #2E3262;
  --lavender-50: #EEEFFC;
  --lavender-100: #E0E2FA;
  --lavender-300: #A9ACEE;
  --lavender-500: #7B7FE0;
  --primary-50: var(--lavender-50);
  --primary-100: var(--lavender-100);
  --violet: #7C3AED;
  --violet-50: #F1EEFD;
  --brand-gradient: linear-gradient(135deg, #4B4FC4 0%, #2E3266 100%);

  /* Superficies */
  --bg: #F4F5FB;
  --surface: #FFFFFF;
  --surface-2: #F7F7FC;
  --surface-3: #EEEFF7;
  --overlay: rgba(30, 33, 72, .42);

  /* Texto */
  --text: #1C1E3A;
  --text-2: #4A4E6E;
  --text-3: #8A8DA8;
  --text-inverse: #FFFFFF;

  /* Bordes */
  --border: #ECEDF5;
  --border-strong: #D9DBEA;

  /* Estado */
  --success: #22A06B;
  --success-ink: #1B8A5A;
  --success-50: #E8F7EF;
  --warning: #F59E0B;
  --warning-ink: #B45309;
  --warning-50: #FEF5E4;
  --danger: #E5484D;
  --danger-ink: #C93A3F;
  --danger-50: #FDECEC;
  --info-ink: #4B4FC4;
  --info-50: #EEEFFC;
  --neutral-50: #F1F2F8;
  --neutral-ink: #5D6080;
  --violet-ink: #6D3FD0;

  /* Series de gráficos: slot 1 índigo de marca; resto categórico de orden fijo */
  --s1: #5458D6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #9B8AF0; --s8: #e34948;
  /* Rampa monocromática índigo (donas y barras de una serie) */
  --ind-1: #2E3266; --ind-2: #4B4FC4; --ind-3: #7B7FE0; --ind-4: #A9ACEE; --ind-5: #D3D5F7;
  --grid: #EEEFF6;

  /* Sidebar (claro) */
  --sb-bg: #FFFFFF;
  --sb-text: #4A4E6E;
  --sb-text-dim: #9A9DB7;
  --sb-hover: #F4F5FB;
  --sb-active-bg: #3B4074;
  --sb-active-text: #FFFFFF;
  --sb-border: #ECEDF5;

  /* Tipografía */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 11.5px; --fs-sm: 12.5px; --fs-md: 13.5px; --fs-lg: 15px; --fs-xl: 18px; --fs-2xl: 22px; --fs-3xl: 28px;

  /* Geometría */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px;
  --sh-1: 0 1px 2px rgba(30, 35, 90, .04);
  --sh-2: 0 1px 2px rgba(30, 35, 90, .04), 0 8px 24px rgba(30, 35, 90, .06);
  --sh-3: 0 18px 50px rgba(30, 35, 90, .16);
  --focus: 0 0 0 3px rgba(75, 79, 196, .28);

  --sidebar-w: 236px;
  --sidebar-w-collapsed: 72px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #8C90F0;
  --primary-600: #A3A6F4;
  --navy: #6C70E0;
  --lavender-50: rgba(140, 144, 240, .12);
  --lavender-100: rgba(140, 144, 240, .22);
  --lavender-300: #6E72C9;
  --lavender-500: #8C90F0;
  --violet-50: rgba(124, 58, 237, .16);

  --bg: #1B1E36;
  --surface: #242849;
  --surface-2: #2B3055;
  --surface-3: #343a63;
  --overlay: rgba(4, 5, 16, .66);

  --text: #E8E9F7;
  --text-2: #B3B6D6;
  --text-3: #9A9DC0;

  --border: #343963;
  --border-strong: #454B7C;

  --success-ink: #4ADE9B; --success-50: rgba(34, 160, 107, .16);
  --warning-ink: #FBBF24; --warning-50: rgba(245, 158, 11, .14);
  --danger-ink: #FF8A8E;  --danger-50: rgba(229, 72, 77, .16);
  --info-ink: #A9ACF6;    --info-50: rgba(140, 144, 240, .14);
  --neutral-50: rgba(160, 165, 210, .12); --neutral-ink: #B3B6D6;
  --violet-ink: #C1A9FB;

  --s1: #8C90F0; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #2f9e2f; --s7: #B4A6F6; --s8: #e66767;
  --ind-1: #C9CBFA; --ind-2: #8C90F0; --ind-3: #6468D2; --ind-4: #474BA6; --ind-5: #30347A;
  --grid: #31365E;

  --sb-bg: #202443;
  --sb-text: #B3B6D6;
  --sb-text-dim: #6F7399;
  --sb-hover: #2B3055;
  --sb-active-bg: #6C70E0;
  --sb-border: #30355C;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  --sh-3: 0 18px 50px rgba(0, 0, 0, .55);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
