/* TRUE X — tokens del Brand & Design System (Claude Design). No editar a mano:
   copiar de nuevo desde el manual cuando cambie. */
:root {
  /* ══ COLOR · RAW ═══════════════════════════════════════════ */
  --tx-ink-950: #0A0A0A;
  --tx-ink-900: #141414;
  --tx-ink-800: #242424;
  --tx-ink-700: #3A3A3A;
  --tx-ink-600: #5C5C5C;
  --tx-ink-400: #9A9A9A;
  --tx-ink-200: #C9C9C9;
  --tx-ink-050: #EDEDED;
  --tx-lime:  #D4FF3D;
  --tx-mid:   #9FF24C;
  --tx-green: #3DE87A;
  --tx-red:   #FF4D4D;
  --tx-amber: #FFB020;

  /* ══ COLOR · FONDOS Y SUPERFICIES ══════════════════════════ */
  --tx-canvas: #0A0A0A;
  --tx-surface: #141414;
  --tx-surface-raised: #242424;
  --tx-surface-state: #242424;
  --tx-surface-glass: rgba(10, 10, 10, 0.85);
  --tx-surface-overlay: rgba(10, 10, 10, 0.6);
  --tx-surface-media: linear-gradient(160deg, #242424, #141414);

  /* ══ COLOR · TEXTO ═════════════════════════════════════════ */
  --tx-text-primary: #EDEDED;
  --tx-text-body: #C9C9C9;
  --tx-text-secondary: #9A9A9A;
  --tx-text-disabled: #9A9A9A;
  --tx-text-faint: #5C5C5C;
  --tx-text-on-accent: #0A0A0A;
  --tx-text-accent: #D4FF3D;

  /* ══ COLOR · BORDES ════════════════════════════════════════ */
  --tx-border: #3A3A3A;
  --tx-border-control: #5C5C5C;
  --tx-border-strong: #EDEDED;
  --tx-divider: #3A3A3A;
  --tx-divider-inner: #242424;

  /* ══ COLOR · ACENTO Y ESTADOS ══════════════════════════════ */
  --tx-accent: #D4FF3D;
  --tx-accent-hover-filter: brightness(1.08);
  --tx-accent-active-filter: brightness(0.9);
  --tx-hover-bg: #242424;
  --tx-hover-border: #EDEDED;
  --tx-active-bg: #D4FF3D;
  --tx-active-text: #0A0A0A;
  --tx-focus-ring: #D4FF3D;
  --tx-focus-outline: #EDEDED;
  --tx-focus-halo: 0 0 0 3px rgba(212, 255, 61, 0.25);
  --tx-success: #3DE87A;
  --tx-warning: #FFB020;
  --tx-danger: #FF4D4D;
  --tx-error: #FF4D4D;

  /* ══ COLOR · GRADIENTES ════════════════════════════════════ */
  --tx-gradient: linear-gradient(135deg, #D4FF3D 0%, #9FF24C 50%, #3DE87A 100%);
  --tx-gradient-media: linear-gradient(160deg, #242424, #141414);
  --tx-gradient-media-off: linear-gradient(160deg, #242424, #0A0A0A);

  /* ══ TIPOGRAFÍA · FAMILIAS Y PESOS ═════════════════════════ */
  --tx-font-display: "Horizon", "Saira", system-ui, sans-serif;
  --tx-font-ui: "Saira", system-ui, sans-serif;
  --tx-font-data: "Saira", system-ui, sans-serif;
  --tx-weight-regular: 400;
  --tx-weight-medium: 500;
  --tx-weight-bold: 700;
  --tx-weight-black: 900;
  --tx-data-numeric: tabular-nums;
  --tx-display-min-size: 22px;

  /* ══ TIPOGRAFÍA · ESCALA BASE ══════════════════════════════ */
  --tx-text-2xs: 0.75rem;   /* 12 */
  --tx-text-xs: 0.875rem;   /* 14 */
  --tx-text-sm: 1rem;       /* 16 */
  --tx-text-md: 1.125rem;   /* 18 */
  --tx-text-lg: 1.375rem;   /* 22 */
  --tx-text-xl: 1.75rem;    /* 28 */
  --tx-text-2xl: 2.25rem;   /* 36 */
  --tx-text-3xl: 2.875rem;  /* 46 */
  --tx-text-4xl: 3.75rem;   /* 60 */
  --tx-text-5xl: 4.75rem;   /* 76 */

  --tx-leading-tight: 0.95;
  --tx-leading-display-es: 1.2;
  --tx-leading-snug: 1.15;
  --tx-leading-normal: 1.45;
  --tx-leading-relaxed: 1.65;

  --tx-tracking-display: -0.01em;
  --tx-tracking-display-tight: -0.02em;
  --tx-tracking-normal: 0em;
  --tx-tracking-price: 0.04em;
  --tx-tracking-data: 0.1em;
  --tx-tracking-label: 0.12em;
  --tx-tracking-brand: 0.14em;
  --tx-tracking-eyebrow: 0.16em;

  /* ══ TIPOGRAFÍA · NIVELES (size / leading / tracking / weight) ══ */
  --tx-display-xl-size: clamp(44px, 7vw, 76px);
  --tx-display-xl-leading: 0.95;
  --tx-display-xl-tracking: -0.02em;
  --tx-display-xl-weight: 900;

  --tx-display-lg-size: 3.75rem;      /* 60 */
  --tx-display-lg-leading: 1.2;
  --tx-display-lg-tracking: -0.02em;
  --tx-display-lg-weight: 900;

  --tx-h1-size: 2.875rem;             /* 46 */
  --tx-h1-leading: 1.2;
  --tx-h1-tracking: -0.02em;
  --tx-h1-weight: 900;

  --tx-h2-size: 2.25rem;              /* 36 */
  --tx-h2-leading: 1.15;
  --tx-h2-tracking: -0.02em;
  --tx-h2-weight: 900;

  --tx-h3-size: 1.625rem;             /* 26 */
  --tx-h3-leading: 1.15;
  --tx-h3-tracking: -0.02em;
  --tx-h3-weight: 900;

  --tx-h4-size: 1.375rem;             /* 22 — mínimo Horizon */
  --tx-h4-leading: 1.05;
  --tx-h4-tracking: -0.01em;
  --tx-h4-weight: 900;

  --tx-body-lead-size: 1.125rem;      /* 18 */
  --tx-body-lead-leading: 1.65;
  --tx-body-lead-tracking: 0em;

  --tx-body-size: 1rem;               /* 16 */
  --tx-body-leading: 1.45;
  --tx-body-tracking: 0em;

  --tx-body-control-size: 0.9375rem;  /* 15 — botones e inputs */
  --tx-body-control-leading: 1.45;

  --tx-body-sm-size: 0.875rem;        /* 14 — notas, nav */
  --tx-body-sm-leading: 1.45;

  --tx-caption-size: 0.8125rem;       /* 13 — ayuda, errores */
  --tx-caption-leading: 1.45;

  --tx-eyebrow-size: 0.75rem;         /* 12 */
  --tx-eyebrow-tracking: 0.16em;
  --tx-eyebrow-weight: 500;

  --tx-label-size: 0.6875rem;         /* 11 — tags, marca en ficha */
  --tx-label-tracking: 0.12em;

  --tx-chip-size: 0.8125rem;          /* 13 */
  --tx-chip-tracking: 0.1em;

  --tx-data-size: 0.8125rem;          /* 13 — specs */
  --tx-data-tracking: 0.1em;

  --tx-price-size: 1.625rem;          /* 26 */
  --tx-price-tracking: 0.04em;
  --tx-price-unit-size: 0.8125rem;

  /* ══ ESPACIADO (base 4px) ══════════════════════════════════ */
  --tx-space-1: 4px;
  --tx-space-2: 8px;
  --tx-space-3: 12px;
  --tx-space-4: 16px;
  --tx-space-5: 20px;
  --tx-space-6: 24px;
  --tx-space-7: 28px;
  --tx-space-8: 32px;
  --tx-space-12: 48px;
  --tx-space-16: 64px;
  --tx-space-24: 96px;
  --tx-space-32: 128px;

  /* ══ GRILLA, ANCHOS Y BREAKPOINTS ══════════════════════════ */
  --tx-grid-columns: 12;
  --tx-gutter: 16px;
  --tx-gutter-lg: 32px;
  --tx-container: 1240px;
  --tx-measure: 66ch;
  --tx-measure-note: 70ch;
  --tx-card-min: 268px;
  --tx-field-min: 240px;
  --tx-tap-min: 44px;
  --tx-control-sm: 36px;
  --tx-control-md: 44px;
  --tx-control-lg: 52px;
  --tx-bp-sm: 480px;
  --tx-bp-md: 768px;
  --tx-bp-lg: 1024px;
  --tx-bp-xl: 1440px;

  /* ══ RADIOS ════════════════════════════════════════════════ */
  --tx-radius-xs: 4px;
  --tx-radius-sm: 8px;
  --tx-radius-md: 12px;
  --tx-radius-lg: 20px;
  --tx-radius-x: 22px;
  --tx-radius-pill: 999px;

  /* ══ BORDES ════════════════════════════════════════════════ */
  --tx-border-width: 1px;
  --tx-focus-width: 2px;
  --tx-focus-offset: 3px;

  /* ══ SOMBRAS / ELEVACIÓN ═══════════════════════════════════ */
  --tx-elev-0: none;
  --tx-elev-1: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
  --tx-elev-2: 0 8px 24px -8px rgba(0, 0, 0, 0.7);
  --tx-elev-3: 0 24px 60px -16px rgba(0, 0, 0, 0.85);
  --tx-glow-accent: 0 0 0 1px rgba(212, 255, 61, 0.35), 0 8px 32px -8px rgba(212, 255, 61, 0.25);
  --tx-blur-glass: 12px;

  /* ══ OPACIDADES ════════════════════════════════════════════ */
  --tx-opacity-unavailable: 0.55;
  --tx-opacity-overlay: 0.6;
  --tx-opacity-glass: 0.85;
  --tx-opacity-focus-halo: 0.25;
  --tx-opacity-spinner-track: 0.25;

  /* ══ ANIMACIÓN ═════════════════════════════════════════════ */
  --tx-dur-instant: 90ms;
  --tx-dur-fast: 160ms;
  --tx-dur-base: 260ms;
  --tx-dur-slow: 420ms;
  --tx-dur-reveal: 640ms;
  --tx-dur-spin: 700ms;
  --tx-ease-flow: cubic-bezier(0.22, 1, 0.36, 1);
  --tx-ease-enter: cubic-bezier(0.16, 1, 0.30, 1);
  --tx-ease-exit: cubic-bezier(0.40, 0.00, 1, 1);
  --tx-ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --tx-ease-linear: linear;
  --tx-shift: 12px;
  --tx-lift-sm: -2px;
  --tx-lift-md: -4px;
  --tx-hover-scale-max: 1.02;
  --tx-stagger: 60ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --tx-dur-instant: 1ms; --tx-dur-fast: 1ms; --tx-dur-base: 1ms;
    --tx-dur-slow: 1ms; --tx-dur-reveal: 1ms; --tx-shift: 0px;
    --tx-lift-sm: 0px; --tx-lift-md: 0px;
  }
}
