/* Design tokens — dirección: señalética de transporte + editorial impreso. */

:root {
  color-scheme: light;

  /* Superficies: papel cálido, no blanco de pantalla. */
  --paper:        oklch(97.6% 0.008 85);
  --paper-deep:   oklch(94.2% 0.013 85);
  --paper-edge:   oklch(89% 0.016 85);
  --card:         oklch(99.5% 0.004 85);

  /* Tinta */
  --ink:          oklch(18% 0.022 265);
  --ink-soft:     oklch(46% 0.018 265);
  --ink-faint:    oklch(64% 0.014 265);

  /* Noche: el hero y el servicio Lechucero */
  --night:        oklch(21% 0.045 262);
  --night-deep:   oklch(15% 0.04 262);
  --night-ink:    oklch(94% 0.01 85);

  /* Semánticos */
  --azul:         oklch(49% 0.155 252);
  --azul-soft:    oklch(93% 0.03 252);
  --ambar:        oklch(74% 0.16 66);
  --ambar-deep:   oklch(56% 0.14 62);
  --ambar-soft:   oklch(95% 0.045 78);
  --verde:        oklch(58% 0.14 152);
  --verde-soft:   oklch(94% 0.04 152);
  --alerta:       oklch(56% 0.19 27);

  /* Tipografía */
  --font-display: 'Archivo', 'Helvetica Neue', system-ui, sans-serif;
  --font-text:    'Newsreader', Georgia, 'Times New Roman', serif;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: clamp(1rem, 0.95rem + 0.22vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1.03rem + 0.45vw, 1.375rem);
  --text-xl:   clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.4rem + 2.6vw, 3.75rem);
  --text-hero: clamp(2.75rem, 1.1rem + 7.2vw, 8rem);

  --tracking-tight: -0.025em;
  --tracking-wide:  0.08em;
  --tracking-caps:  0.14em;

  /* Ritmo: deliberadamente irregular, no un múltiplo uniforme. */
  --space-2:  0.375rem;
  --space-3:  0.625rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2.25rem;
  --space-7:  3.5rem;
  --space-section: clamp(3.5rem, 2rem + 6vw, 8rem);

  --radius-sm: 3px;
  --radius:    8px;
  --radius-lg: 18px;

  --line: 1px solid var(--paper-edge);
  --shadow-lift: 0 1px 2px oklch(20% 0.03 265 / 0.05),
                 0 8px 24px -12px oklch(20% 0.03 265 / 0.22);
  --shadow-pop:  0 2px 4px oklch(20% 0.03 265 / 0.07),
                 0 18px 44px -20px oklch(20% 0.03 265 / 0.35);

  --duration-fast:   140ms;
  --duration-normal: 320ms;
  --duration-slow:   720ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Grosor de la línea del corredor, reutilizado en SVG y mapa. */
  --corridor-width: 10px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 1ms;
    --duration-normal: 1ms;
    --duration-slow: 1ms;
  }
}
