/* InvestorIQ — design tokens (light default, dark via system or [data-theme]). */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef0f3;
  --border: #e2e5ea;
  --border-strong: #cdd2d9;
  --text: #11151b;
  --text-2: #4e5866;
  --text-3: #808a98;
  --accent: #2550c8;
  --accent-soft: #e8eefc;
  --accent-text: #ffffff;
  --focus: #2550c8;

  --pos: #0b7a50;
  --pos-soft: #e3f4ec;
  --neg: #c2352b;
  --neg-soft: #fbe9e7;
  --warn: #9a6512;
  --warn-soft: #fbf1de;
  --strong: #075e3c;
  --strong-soft: #cdeedd;
  --muted-soft: #eef0f3;
  --fund: #5a48c9;
  --fund-soft: #efedfc;
  /* Series de gráficos (orden fijo, validado para daltonismo) */
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-other: #a3abb6;

  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 8px 28px rgba(16, 24, 40, 0.14);
  --radius: 8px;
  --radius-sm: 5px;
  --header-h: 56px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d12;
    --surface: #11151c;
    --surface-2: #151a22;
    --surface-3: #1b212b;
    --border: #232a35;
    --border-strong: #323b48;
    --text: #e7eaef;
    --text-2: #a3adbb;
    --text-3: #6f7a8a;
    --accent: #6d95ff;
    --accent-soft: #1a2542;
    --accent-text: #0a0d12;
    --focus: #6d95ff;
    --pos: #3cc48d;
    --pos-soft: #10291f;
    --neg: #ff7267;
    --neg-soft: #2f1614;
    --warn: #e0a84a;
    --warn-soft: #2c2213;
    --strong: #62dba7;
    --strong-soft: #0f3324;
    --muted-soft: #1b212b;
    --fund: #9085e9;
    --fund-soft: #221e3d;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #0ca30c; --series-7: #9085e9; --series-other: #5d6676;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 10px 32px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0d12;
  --surface: #11151c;
  --surface-2: #151a22;
  --surface-3: #1b212b;
  --border: #232a35;
  --border-strong: #323b48;
  --text: #e7eaef;
  --text-2: #a3adbb;
  --text-3: #6f7a8a;
  --accent: #6d95ff;
  --accent-soft: #1a2542;
  --accent-text: #0a0d12;
  --focus: #6d95ff;
  --pos: #3cc48d;
  --pos-soft: #10291f;
  --neg: #ff7267;
  --neg-soft: #2f1614;
  --warn: #e0a84a;
  --warn-soft: #2c2213;
  --strong: #62dba7;
  --strong-soft: #0f3324;
  --muted-soft: #1b212b;
  --fund: #9085e9;
  --fund-soft: #221e3d;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --series-5: #d55181; --series-6: #0ca30c; --series-7: #9085e9; --series-other: #5d6676;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 10px 32px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
