/* ═══════════════════════════════════════════════════════════════
   CREATE UI — DESIGN SYSTEM
   3 capas: primitivas → tokens semánticos → utilidades
   Dark mode: clase .dark en <html>
   Responsive: 2 media queries en TODO el sistema (max-width 1279 / 767)
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. RESET ────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--font-body);background:var(--bg-weakest);color:var(--text-body);
     -webkit-font-smoothing:antialiased;transition:background-color .18s,color .18s}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
svg{display:block}
ul{list-style:none}
a{color:inherit;text-decoration:none}

/* ── 2. TOKENS: FUENTES ──────────────────────────────────────── */
:root{
  --font-display:'Geist',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-body:'Geist',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-numeric:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* ── 3. TOKENS: COLOR (88) — light por defecto ───────────────── */
:root{
  /* static */
  --static:#FFFFFF;              --static-white:#FFFFFF;        --static-black:#000000;
  --static-white-alpha-0:#FFFFFF00;   --static-white-alpha-8:#FFFFFF14;   --static-white-alpha-16:#FFFFFF29;
  --static-white-alpha-24:#FFFFFF3D;  --static-white-alpha-32:#FFFFFF52;  --static-white-alpha-48:#FFFFFF7A;
  --static-white-alpha-64:#FFFFFFA3;  --static-white-alpha-80:#FFFFFFCC;
  --static-black-alpha-0:#00000000;   --static-black-alpha-8:#00000014;   --static-black-alpha-16:#00000029;
  --static-black-alpha-24:#0000003D;  --static-black-alpha-32:#00000052;  --static-black-alpha-48:#0000007A;
  --static-black-alpha-64:#000000A3;  --static-black-alpha-80:#000000CC;

  /* background — ramp zinc */
  --bg-weakest:#FAFAFA; --bg-weak:#F4F4F5; --bg-light:#E4E4E7; --bg-medium:#D4D4D8;
  --bg-heavy:#3F3F46;   --bg-strong:#27272A; --bg-strongest:#09090B;

  /* text */
  --text-strongest:#09090B; --text-body:#52525C; --text-placeholder:#9F9FA9; --text-disabled:#D4D4D8;

  /* primary (indigo) */
  --primary-weakest:#EEF2FF; --primary-weak:#E0E7FF; --primary-base:#4F39F6;
  --primary-strong:#432DD7;  --primary-strongest:#312C85;
  /* error */
  --error-weakest:#FEF2F2; --error-weak:#FFE2E2; --error-base:#E7000B;
  --error-strong:#C10007;  --error-strongest:#82181A;
  /* success */
  --success-weakest:#F0FDF4; --success-weak:#DCFCE7; --success-base:#00A63E;
  --success-strong:#008236;  --success-strongest:#0D542B;
  /* warning */
  --warning-weakest:#FFF7ED; --warning-weak:#FFEDD4; --warning-base:#F54900;
  --warning-strong:#CA3500;  --warning-strongest:#7E2A0C;
  /* info */
  --info-weakest:#EFF6FF; --info-weak:#DBEAFE; --info-base:#155DFC;
  --info-strong:#1447E6;  --info-strongest:#1C398E;
  /* verified */
  --verified-weakest:#F0F9FF; --verified-weak:#DFF2FE; --verified-base:#0084D1;
  --verified-strong:#0069A8;  --verified-strongest:#024A70;
  /* feature */
  --feature-weakest:#EEF2FF; --feature-weak:#E0E7FF; --feature-base:#4F39F6;
  --feature-strong:#432DD7;  --feature-strongest:#312C85;
  /* highlighted */
  --highlighted-weakest:#FDF4FF; --highlighted-weak:#FAE8FF; --highlighted-base:#C800DE;
  --highlighted-strong:#A800B7;  --highlighted-strongest:#721378;
  /* away */
  --away-weakest:#FEFCE8; --away-weak:#FEF9C2; --away-base:#D08700;
  --away-strong:#A65F00;  --away-strongest:#733E0A;
  /* stable */
  --stable-weakest:#FAFAFA; --stable-weak:#F4F4F5; --stable-base:#52525C;
  --stable-strong:#3F3F46;  --stable-strongest:#18181B;

  /* overlay */
  --scrim:#0000007A; --scrim-strong:#000000A3;
  --hover:#00000014; --active:#00000029;
  --hover-inverted:#FFFFFF14; --active-inverted:#FFFFFF29;

  /* shadow tint */
  --shadow-tint:#00000014; --shadow-tint-deep:#0000003D;
}

/* ── 3b. COLOR: dark ─────────────────────────────────────────── */
.dark{
  --static:#000000; --static-white:#000000; --static-black:#FFFFFF;
  --static-white-alpha-0:#00000000;  --static-white-alpha-8:#00000014;  --static-white-alpha-16:#00000029;
  --static-white-alpha-24:#0000003D; --static-white-alpha-32:#00000052; --static-white-alpha-48:#0000007A;
  --static-white-alpha-64:#000000A3; --static-white-alpha-80:#000000CC;
  --static-black-alpha-0:#FFFFFF00;  --static-black-alpha-8:#FFFFFF14;  --static-black-alpha-16:#FFFFFF29;
  --static-black-alpha-24:#FFFFFF3D; --static-black-alpha-32:#FFFFFF52; --static-black-alpha-48:#FFFFFF7A;
  --static-black-alpha-64:#FFFFFFA3; --static-black-alpha-80:#FFFFFFCC;

  --bg-weakest:#18181B; --bg-weak:#27272A; --bg-light:#3F3F46; --bg-medium:#71717B;
  --bg-heavy:#D4D4D8;   --bg-strong:#E4E4E7; --bg-strongest:#FAFAFA;

  --text-strongest:#FAFAFA; --text-body:#D4D4D8; --text-placeholder:#71717B; --text-disabled:#52525C;

  --primary-weakest:#615FFF29; --primary-weak:#615FFF3D; --primary-base:#615FFF;
  --primary-strong:#7C86FF;    --primary-strongest:#C6D2FF;
  --error-weakest:#FB2C3629; --error-weak:#FB2C363D; --error-base:#FB2C36;
  --error-strong:#FF6467;    --error-strongest:#FFC9C9;
  --success-weakest:#00C95029; --success-weak:#00C9503D; --success-base:#00C950;
  --success-strong:#05DF72;    --success-strongest:#B9F8CF;
  --warning-weakest:#FF690029; --warning-weak:#FF69003D; --warning-base:#FF6900;
  --warning-strong:#FF8904;    --warning-strongest:#FFD6A7;
  --info-weakest:#2B7FFF29; --info-weak:#2B7FFF3D; --info-base:#2B7FFF;
  --info-strong:#51A2FF;    --info-strongest:#BEDBFF;
  --verified-weakest:#00A6F429; --verified-weak:#00A6F43D; --verified-base:#00A6F4;
  --verified-strong:#00BCFF;    --verified-strongest:#B8E6FE;
  --feature-weakest:#615FFF29; --feature-weak:#615FFF3D; --feature-base:#615FFF;
  --feature-strong:#7C86FF;    --feature-strongest:#C6D2FF;
  --highlighted-weakest:#E12AFB29; --highlighted-weak:#E12AFB3D; --highlighted-base:#E12AFB;
  --highlighted-strong:#ED6AFF;    --highlighted-strongest:#F6CFFF;
  --away-weakest:#F0B10029; --away-weak:#F0B1003D; --away-base:#F0B100;
  --away-strong:#FDC700;    --away-strongest:#FFF085;
  --stable-weakest:#71717B29; --stable-weak:#71717B3D; --stable-base:#71717B;
  --stable-strong:#9F9FA9;    --stable-strongest:#E4E4E7;

  --scrim:#000000A3; --scrim-strong:#000000CC;
  --hover:#FFFFFF14; --active:#FFFFFF29;
  --hover-inverted:#00000014; --active-inverted:#00000029;

  --shadow-tint:#27272A; --shadow-tint-deep:#27272A;
}

/* ── 4. TOKENS: SHADOWS (32) — fijos en todo breakpoint ──────── */
:root{
  --shadow-neutral-2xs:0 1px 0 0 var(--shadow-tint);
  --shadow-neutral-xs :0 1px 2px 0 var(--shadow-tint);
  --shadow-neutral-sm :0 1px 3px 0 var(--shadow-tint), 0 1px 2px -1px var(--shadow-tint);
  --shadow-neutral-md :0 4px 6px -1px var(--shadow-tint), 0 2px 4px -2px var(--shadow-tint);
  --shadow-neutral-lg :0 10px 15px -3px var(--shadow-tint), 0 4px 6px -4px var(--shadow-tint);
  --shadow-neutral-xl :0 20px 25px -5px var(--shadow-tint), 0 8px 10px -6px var(--shadow-tint);
  --shadow-neutral-2xl:0 25px 50px -12px var(--shadow-tint-deep);
  --shadow-neutral-3xl:0 35px 35px 0 var(--shadow-tint-deep);

  --text-shadow-2xs:0 1px 0 rgba(0,0,0,.15);
  --text-shadow-xs :0 1px 1px rgba(0,0,0,.20);
  --text-shadow-sm :0 1px 0 rgba(0,0,0,.075), 0 1px 1px rgba(0,0,0,.075), 0 2px 2px rgba(0,0,0,.075);
  --text-shadow-md :0 1px 1px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.10);
  --text-shadow-lg :0 1px 2px rgba(0,0,0,.10), 0 3px 2px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.10);
}

/* ── 5. TOKENS: RADIUS (10) — desktop en :root ───────────────── */
:root{
  --radius-component-none:0px;  --radius-component-sm:4px;  --radius-component-md:6px;
  --radius-component-lg:8px;    --radius-component-xl:12px; --radius-component-2xl:16px;
  --radius-component-3xl:24px;  --radius-component-4xl:32px;--radius-component-5xl:48px;
  --radius-component-full:9999px;
}

/* ── 6. TOKENS: SPACING (18) — desktop en :root ──────────────── */
:root{
  --spacing-layout-none:0px;  --spacing-layout-xs:32px; --spacing-layout-sm:48px;
  --spacing-layout-md:64px;   --spacing-layout-lg:96px; --spacing-layout-xl:128px;
  --spacing-section-none:0px; --spacing-section-xs:12px;--spacing-section-sm:16px;
  --spacing-section-md:24px;  --spacing-section-lg:32px;--spacing-section-xl:48px;
  --spacing-component-none:0px; --spacing-component-xs:4px; --spacing-component-sm:8px;
  --spacing-component-md:12px;  --spacing-component-lg:16px;--spacing-component-xl:24px;
}

/* ── 7. TOKENS: TYPOGRAPHY (37) — desktop en :root ───────────── */
:root{
  --text-display-xl:96px;      --text-display-xl--lh:120%;  --text-display-xl--ls:-2px;
  --text-display-lg:72px;      --text-display-lg--lh:120%;  --text-display-lg--ls:-1.8px;
  --text-heading-h1:56px;      --text-heading-h1--lh:120%;  --text-heading-h1--ls:-1.8px;
  --text-heading-h2:48px;      --text-heading-h2--lh:130%;  --text-heading-h2--ls:-1.6px;
  --text-heading-h3:36px;      --text-heading-h3--lh:130%;  --text-heading-h3--ls:-1.4px;
  --text-heading-h4:32px;      --text-heading-h4--lh:140%;  --text-heading-h4--ls:-1.2px;
  --text-heading-h5:24px;      --text-heading-h5--lh:140%;  --text-heading-h5--ls:-0.8px;
  --text-heading-h6:20px;      --text-heading-h6--lh:150%;  --text-heading-h6--ls:-0.6px;
  --text-body-xl:20px;         --text-body-xl--lh:28px;     --text-body-xl--ls:-0.5px;
  --text-body-lg:18px;         --text-body-lg--lh:26px;     --text-body-lg--ls:0px;
  --text-body-md:16px;         --text-body-md--lh:24px;     --text-body-md--ls:0px;
  --text-body-sm:14px;         --text-body-sm--lh:20px;     --text-body-sm--ls:0px;
  --text-body-xs:12px;         --text-body-xs--lh:18px;     --text-body-xs--ls:0px;
  --text-paragraph-xl:24px;    --text-paragraph-xl--lh:34px;--text-paragraph-xl--ls:-0.6px;
  --text-paragraph-lg:20px;    --text-paragraph-lg--lh:30px;--text-paragraph-lg--ls:-0.2px;
  --text-paragraph-md:18px;    --text-paragraph-md--lh:28px;--text-paragraph-md--ls:0px;
  --text-paragraph-sm:16px;    --text-paragraph-sm--lh:26px;--text-paragraph-sm--ls:0px;
  --text-paragraph-xs:14px;    --text-paragraph-xs--lh:22px;--text-paragraph-xs--ls:0px;
  --text-ui-control-xl:18px;   --text-ui-control-xl--lh:24px; --text-ui-control-xl--ls:-0.5px;
  --text-ui-control-lg:16px;   --text-ui-control-lg--lh:22px; --text-ui-control-lg--ls:-0.5px;
  --text-ui-control-md:14px;   --text-ui-control-md--lh:20px; --text-ui-control-md--ls:-0.3px;
  --text-ui-control-sm:12px;   --text-ui-control-sm--lh:16px; --text-ui-control-sm--ls:-0.2px;
  --text-ui-control-xs:11px;   --text-ui-control-xs--lh:12px; --text-ui-control-xs--ls:-0.1px;
  --text-ui-overline-md:14px;  --text-ui-overline-md--lh:20px;--text-ui-overline-md--ls:1px;
  --text-ui-overline-sm:12px;  --text-ui-overline-sm--lh:18px;--text-ui-overline-sm--ls:1px;
  --text-ui-overline-xs:11px;  --text-ui-overline-xs--lh:16px;--text-ui-overline-xs--ls:1px;
  --text-ui-caption-md:14px;   --text-ui-caption-md--lh:20px; --text-ui-caption-md--ls:0px;
  --text-ui-caption-xs:11px;   --text-ui-caption-xs--lh:16px; --text-ui-caption-xs--ls:0px;
  --text-numeric-xl:32px;      --text-numeric-xl--lh:36px;  --text-numeric-xl--ls:-1px;
  --text-numeric-lg:24px;      --text-numeric-lg--lh:28px;  --text-numeric-lg--ls:0px;
  --text-numeric-md:18px;      --text-numeric-md--lh:22px;  --text-numeric-md--ls:1px;
  --text-numeric-sm:14px;      --text-numeric-sm--lh:18px;  --text-numeric-sm--ls:1px;
  --text-numeric-xs:12px;      --text-numeric-xs--lh:16px;  --text-numeric-xs--ls:1px;
  --text-code-lg:24px;         --text-code-lg--lh:150%;     --text-code-lg--ls:0px;
  --text-code-md:18px;         --text-code-md--lh:150%;     --text-code-md--ls:0px;
  --text-code-sm:14px;         --text-code-sm--lh:150%;     --text-code-sm--ls:0px;
  --text-code-xs:12px;         --text-code-xs--lh:150%;     --text-code-xs--ls:0px;
}

/* ── 8. LAS ÚNICAS 2 MEDIA QUERIES DEL SISTEMA ───────────────── */
@media (max-width:1279px){   /* tablet: 768–1279 */
  :root{
    /* radius */
    --radius-component-sm:2px; --radius-component-md:4px; --radius-component-lg:6px;
    --radius-component-xl:8px; --radius-component-2xl:12px;--radius-component-3xl:16px;
    --radius-component-4xl:24px;--radius-component-5xl:32px;
    /* spacing */
    --spacing-layout-xs:16px; --spacing-layout-sm:24px; --spacing-layout-md:32px;
    --spacing-layout-lg:48px; --spacing-layout-xl:64px;
    --spacing-section-xs:12px;--spacing-section-sm:16px;--spacing-section-md:16px;
    --spacing-section-lg:20px;--spacing-section-xl:32px;
    --spacing-component-md:12px;--spacing-component-lg:16px;--spacing-component-xl:16px;
    /* type */
    --text-display-xl:80px;   --text-display-xl--ls:-1.8px;
    --text-display-lg:60px;   --text-display-lg--ls:-1.6px;
    --text-heading-h1:48px;   --text-heading-h1--ls:-1.6px;
    --text-heading-h2:36px;   --text-heading-h2--ls:-1.4px;
    --text-heading-h3:32px;   --text-heading-h3--ls:-1.2px;
    --text-heading-h4:24px;   --text-heading-h4--ls:-0.8px;
    --text-heading-h5:20px;   --text-heading-h5--ls:-0.6px;
    --text-heading-h6:18px;   --text-heading-h6--ls:-0.4px;
    --text-paragraph-xl--lh:36px; --text-paragraph-lg--lh:32px;
    --text-paragraph-md--lh:30px; --text-paragraph-sm--lh:28px;
    --text-paragraph-xs--lh:24px;
  }
}
@media (max-width:767px){    /* mobile: 320–767 */
  :root{
    --radius-component-3xl:12px;--radius-component-4xl:16px;--radius-component-5xl:24px;
    --spacing-layout-xs:8px;  --spacing-layout-sm:12px; --spacing-layout-md:16px;
    --spacing-layout-lg:32px; --spacing-layout-xl:48px;
    --spacing-section-xs:8px; --spacing-section-sm:12px;--spacing-section-md:12px;
    --spacing-section-lg:16px;--spacing-section-xl:20px;
    --spacing-component-md:8px;--spacing-component-lg:12px;--spacing-component-xl:12px;
    --text-display-xl:64px;   --text-display-xl--ls:-1.6px;
    --text-display-lg:52px;   --text-display-lg--ls:-1.4px;
    --text-heading-h1:36px;   --text-heading-h1--ls:-1.4px;
    --text-heading-h2:32px;   --text-heading-h2--ls:-1.2px;
    --text-heading-h3:24px;   --text-heading-h3--ls:-0.8px;
    --text-heading-h4:20px;   --text-heading-h4--ls:-0.6px;
    --text-heading-h5:18px;   --text-heading-h5--ls:-0.4px;
    --text-heading-h6:16px;   --text-heading-h6--ls:-0.2px;
    --text-body-xl--lh:30px; --text-body-lg--lh:28px; --text-body-md--lh:26px;
    --text-paragraph-xl--lh:38px; --text-paragraph-lg--lh:34px;
    --text-paragraph-md--lh:32px; --text-paragraph-sm--lh:28px;
  }
}

/* ── 9. UTILIDADES DE TIPO (una clase = 4 métricas) ──────────── */
[class*="t-display"],[class*="t-heading"],[class*="t-body"],
[class*="t-paragraph"],[class*="t-ui"],[class*="t-numeric"],[class*="t-code"]{
  font-size:var(--_fs);line-height:var(--_lh);letter-spacing:var(--_ls);font-weight:var(--_fw,500)
}
.t-display-xl{--_fs:var(--text-display-xl);--_lh:var(--text-display-xl--lh);--_ls:var(--text-display-xl--ls);font-family:var(--font-display)}
.t-display-lg{--_fs:var(--text-display-lg);--_lh:var(--text-display-lg--lh);--_ls:var(--text-display-lg--ls);font-family:var(--font-display)}
.t-heading-h1{--_fs:var(--text-heading-h1);--_lh:var(--text-heading-h1--lh);--_ls:var(--text-heading-h1--ls)}
.t-heading-h2{--_fs:var(--text-heading-h2);--_lh:var(--text-heading-h2--lh);--_ls:var(--text-heading-h2--ls)}
.t-heading-h3{--_fs:var(--text-heading-h3);--_lh:var(--text-heading-h3--lh);--_ls:var(--text-heading-h3--ls)}
.t-heading-h4{--_fs:var(--text-heading-h4);--_lh:var(--text-heading-h4--lh);--_ls:var(--text-heading-h4--ls)}
.t-heading-h5{--_fs:var(--text-heading-h5);--_lh:var(--text-heading-h5--lh);--_ls:var(--text-heading-h5--ls)}
.t-heading-h6{--_fs:var(--text-heading-h6);--_lh:var(--text-heading-h6--lh);--_ls:var(--text-heading-h6--ls)}
.t-body-xl{--_fs:var(--text-body-xl);--_lh:var(--text-body-xl--lh);--_ls:var(--text-body-xl--ls)}
.t-body-lg{--_fs:var(--text-body-lg);--_lh:var(--text-body-lg--lh);--_ls:var(--text-body-lg--ls)}
.t-body-md{--_fs:var(--text-body-md);--_lh:var(--text-body-md--lh);--_ls:var(--text-body-md--ls)}
.t-body-sm{--_fs:var(--text-body-sm);--_lh:var(--text-body-sm--lh);--_ls:var(--text-body-sm--ls)}
.t-body-xs{--_fs:var(--text-body-xs);--_lh:var(--text-body-xs--lh);--_ls:var(--text-body-xs--ls)}
.t-paragraph-xl{--_fs:var(--text-paragraph-xl);--_lh:var(--text-paragraph-xl--lh);--_ls:var(--text-paragraph-xl--ls);--_fw:400}
.t-paragraph-lg{--_fs:var(--text-paragraph-lg);--_lh:var(--text-paragraph-lg--lh);--_ls:var(--text-paragraph-lg--ls);--_fw:400}
.t-paragraph-md{--_fs:var(--text-paragraph-md);--_lh:var(--text-paragraph-md--lh);--_ls:var(--text-paragraph-md--ls);--_fw:400}
.t-paragraph-sm{--_fs:var(--text-paragraph-sm);--_lh:var(--text-paragraph-sm--lh);--_ls:var(--text-paragraph-sm--ls);--_fw:400}
.t-paragraph-xs{--_fs:var(--text-paragraph-xs);--_lh:var(--text-paragraph-xs--lh);--_ls:var(--text-paragraph-xs--ls);--_fw:400}
.t-ui-control-xl{--_fs:var(--text-ui-control-xl);--_lh:var(--text-ui-control-xl--lh);--_ls:var(--text-ui-control-xl--ls)}
.t-ui-control-lg{--_fs:var(--text-ui-control-lg);--_lh:var(--text-ui-control-lg--lh);--_ls:var(--text-ui-control-lg--ls)}
.t-ui-control-md{--_fs:var(--text-ui-control-md);--_lh:var(--text-ui-control-md--lh);--_ls:var(--text-ui-control-md--ls)}
.t-ui-control-sm{--_fs:var(--text-ui-control-sm);--_lh:var(--text-ui-control-sm--lh);--_ls:var(--text-ui-control-sm--ls)}
.t-ui-control-xs{--_fs:var(--text-ui-control-xs);--_lh:var(--text-ui-control-xs--lh);--_ls:var(--text-ui-control-xs--ls)}
.t-ui-overline-md{--_fs:var(--text-ui-overline-md);--_lh:var(--text-ui-overline-md--lh);--_ls:var(--text-ui-overline-md--ls);text-transform:uppercase}
.t-ui-overline-sm{--_fs:var(--text-ui-overline-sm);--_lh:var(--text-ui-overline-sm--lh);--_ls:var(--text-ui-overline-sm--ls);text-transform:uppercase}
.t-ui-overline-xs{--_fs:var(--text-ui-overline-xs);--_lh:var(--text-ui-overline-xs--lh);--_ls:var(--text-ui-overline-xs--ls);text-transform:uppercase}
.t-ui-caption-md{--_fs:var(--text-ui-caption-md);--_lh:var(--text-ui-caption-md--lh);--_ls:var(--text-ui-caption-md--ls)}
.t-ui-caption-xs{--_fs:var(--text-ui-caption-xs);--_lh:var(--text-ui-caption-xs--lh);--_ls:var(--text-ui-caption-xs--ls)}
.t-numeric-xl{--_fs:var(--text-numeric-xl);--_lh:var(--text-numeric-xl--lh);--_ls:var(--text-numeric-xl--ls);font-family:var(--font-numeric)}
.t-numeric-lg{--_fs:var(--text-numeric-lg);--_lh:var(--text-numeric-lg--lh);--_ls:var(--text-numeric-lg--ls);font-family:var(--font-numeric)}
.t-numeric-md{--_fs:var(--text-numeric-md);--_lh:var(--text-numeric-md--lh);--_ls:var(--text-numeric-md--ls);font-family:var(--font-numeric)}
.t-numeric-sm{--_fs:var(--text-numeric-sm);--_lh:var(--text-numeric-sm--lh);--_ls:var(--text-numeric-sm--ls);font-family:var(--font-numeric)}
.t-numeric-xs{--_fs:var(--text-numeric-xs);--_lh:var(--text-numeric-xs--lh);--_ls:var(--text-numeric-xs--ls);font-family:var(--font-numeric)}
.t-code-lg{--_fs:var(--text-code-lg);--_lh:var(--text-code-lg--lh);--_ls:var(--text-code-lg--ls);font-family:var(--font-numeric)}
.t-code-md{--_fs:var(--text-code-md);--_lh:var(--text-code-md--lh);--_ls:var(--text-code-md--ls);font-family:var(--font-numeric)}
.t-code-sm{--_fs:var(--text-code-sm);--_lh:var(--text-code-sm--lh);--_ls:var(--text-code-sm--ls);font-family:var(--font-numeric)}
.t-code-xs{--_fs:var(--text-code-xs);--_lh:var(--text-code-xs--lh);--_ls:var(--text-code-xs--ls);font-family:var(--font-numeric)}

/* ═══════════════════════════════════════════════════════════════
   MOTION — la sexta familia de tokens
   Antes cada transición estaba a ojo: .14s aquí, .18s allá, siempre
   `ease`. Estas 4 curvas salen de resolver un oscilador armónico
   amortiguado y volcarlo a `linear()`: física real, sin JS.
       ζ = c / (2·√(k·m))     ω₀ = √(k/m)
   ═══════════════════════════════════════════════════════════════ */
:root{
  /* k=420 c=32 · ζ=0.78 — presión, cambios de estado */
  --spring-snap:linear(0.0000 0%, 0.0399 4%, 0.1356 8%, 0.2589 12%, 0.3901 15%, 0.5165 19%, 0.6307 23%, 0.7287 27%, 0.8096 31%, 0.8738 35%, 0.9229 38%, 0.9591 42%, 0.9845 46%, 1.0015 50%, 1.0118 54%, 1.0174 58%, 1.0196 62%, 1.0195 65%, 1.0180 69%, 1.0157 73%, 1.0131 77%, 1.0106 81%, 1.0082 85%, 1.0061 88%, 1.0044 92%, 1.0030 96%, 1.0019 100%);
  /* k=320 c=30 · ζ=0.84 — superficies, altura, layout */
  --spring-smooth:linear(0.0000 0%, 0.0346 4%, 0.1180 8%, 0.2263 12%, 0.3431 15%, 0.4577 19%, 0.5635 23%, 0.6571 27%, 0.7371 31%, 0.8036 35%, 0.8574 38%, 0.8999 42%, 0.9327 46%, 0.9574 50%, 0.9754 54%, 0.9881 58%, 0.9968 62%, 1.0024 65%, 1.0057 69%, 1.0074 73%, 1.0079 77%, 1.0078 81%, 1.0072 85%, 1.0064 88%, 1.0054 92%, 1.0045 96%, 1.0037 100%);
  /* k=320 c=24 · ζ=0.67 — indicadores que viajan, pills */
  --spring-bounce:linear(0.0000 0%, 0.0539 4%, 0.1818 8%, 0.3428 12%, 0.5083 15%, 0.6600 19%, 0.7880 23%, 0.8885 27%, 0.9620 31%, 1.0113 35%, 1.0408 38%, 1.0550 42%, 1.0583 46%, 1.0545 50%, 1.0467 54%, 1.0372 58%, 1.0276 62%, 1.0189 65%, 1.0116 69%, 1.0060 73%, 1.0018 77%, 0.9991 81%, 0.9975 85%, 0.9967 88%, 0.9966 92%, 0.9969 96%, 0.9973 100%);
  /* k=260 c=17 · ζ=0.53 — entrada de elementos nuevos, celebración */
  --spring-elastic:linear(0.0000 0%, 0.0868 4%, 0.2873 8%, 0.5261 12%, 0.7503 15%, 0.9294 19%, 1.0518 23%, 1.1194 27%, 1.1421 31%, 1.1333 35%, 1.1065 38%, 1.0727 42%, 1.0401 46%, 1.0135 50%, 0.9948 54%, 0.9840 58%, 0.9799 62%, 0.9806 65%, 0.9841 69%, 0.9889 73%, 0.9936 77%, 0.9976 81%, 1.0004 85%, 1.0021 88%, 1.0028 92%, 1.0028 96%, 1.0024 100%);

  --duration-instant:120ms;  /* feedback de presión */
  --duration-quick:200ms;    /* color, opacidad */
  --duration-snap:388ms;     /* acompaña a --spring-snap */
  --duration-smooth:414ms;
  --duration-bounce:518ms;
  --duration-elastic:731ms;

  /* habilita animar height:auto en ::details-content (Chromium) */
  interpolate-size:allow-keywords;
}

/* No es opcional: si el sistema pide menos movimiento, se apaga todo */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important; scroll-behavior:auto !important}
}
