/* tokens.css -- visachileno.cl v2 Design Tokens */

:root {
  color-scheme: light dark;

  /* Primary: institutional blue */
  --color-primary: #1a5276;
  --color-primary-light: #eaf2f8;
  --color-primary-dark: #0e3453;

  /* Accent: teal */
  --color-accent: #148f77;
  --color-accent-light: #e8f6f3;

  /* Warm: terracota (affiliate visual distinction) */
  --color-warm: #d4854e;
  --color-warm-light: #fdf2eb;
  --color-warm-dark: #b86a3a;

  /* Status */
  --color-success: #1e8449;
  --color-success-light: #d5f5e3;
  --color-warning: #d4ac0d;
  --color-warning-light: #fef9e7;
  --color-danger: #c0392b;
  --color-danger-light: #fdedec;

  /* Neutrals */
  --color-bg: #ffffff;
  --color-surface: #f4f6f7;
  --color-surface-alt: #ebedef;
  --color-border: #d5d8dc;
  --color-text: #1c2833;
  --color-text-secondary: #566573;
  --color-text-tertiary: #85929e;

  /* Typography -- system-ui only, zero downloads */
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 2rem;       /* 32px */
  --leading-tight: 1.2;
  --leading-normal: 1.6;

  /* Spacing (4px base, generous upper end for spacious density) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 44rem;
  --max-width-wide: 60rem;
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1d23;
    --color-surface: #22262d;
    --color-surface-alt: #2a2e36;
    --color-border: #3d4250;
    --color-text: #e0e3e8;
    --color-text-secondary: #9ca3af;
    --color-text-tertiary: #6b7280;
    --color-primary: #5dade2;
    --color-primary-light: #1a2a3a;
    --color-primary-dark: #85c1e9;
    --color-accent: #45b39d;
    --color-accent-light: #1a2f2a;
    --color-warm: #e8a06c;
    --color-warm-light: #2a2018;
    --color-warm-dark: #d4854e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
  }
}
