/* ==========================================================================
   Tokens — panel de instrumentos analógico
   Cara de dial en hueso, grabado como tinta, rojo solo pasado el cero.
   ========================================================================== */

@font-face {
  font-family: 'TASA Explorer';
  src: url('../fonts/TASAExplorer.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* Barlow autoalojado (nada de fonts.gstatic.com: el sitio declara RGPD). */
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/barlow-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/barlow-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/barlow-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/barlow-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* --- Superficies --------------------------------------------------- */
  --face:          #F3F2ED;  /* cara de dial */
  --face-2:        #E9E8E1;  /* cara rebajada */
  --face-3:        #DEDCD3;  /* cara hundida */
  --chassis:       #1B1C22;  /* chasis */
  --chassis-2:     #26272E;  /* superficie sobre chasis */

  /* --- Tinta ---------------------------------------------------------- */
  --ink:           #1B1C22;
  --ink-muted:     #5A5C64;  /* 4.9:1 sobre --face */
  --ink-faint:     #83858C;  /* solo texto grande */
  --ink-on-dark:   #F3F2ED;
  --ink-on-dark-muted: #A8AAB2; /* 6.4:1 sobre --chassis */

  /* --- Grabado -------------------------------------------------------- */
  --rule:          #C9C7BE;
  --rule-strong:   #8C8A81;
  --rule-dark:     #3A3C45;

  /* --- Umbral --------------------------------------------------------- */
  --red:           #E0271B;  /* rellenos y acción */
  --red-ink:       #B31C12;  /* rojo sobre claro en texto, 5.4:1 */
  --red-deep:      #8E150E;
  --red-wash:      #FBE8E6;

  /* --- Tipografía ------------------------------------------------------ */
  --font-panel: 'TASA Explorer', 'Barlow', system-ui, -apple-system, sans-serif;
  --font-read:  'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step-display: clamp(2.6rem, 5.6vw, 5rem);
  --step-h2:      clamp(1.7rem, 3vw, 2.6rem);
  --step-h3:      clamp(1.25rem, 1.6vw, 1.5rem);
  --step-h4:      1.0625rem;
  --step-body:    1.0625rem;
  --step-lead:    clamp(1.0625rem, 1.4vw, 1.1875rem);
  --step-small:   0.9375rem;
  --step-label:   0.75rem;

  /* --- Ritmo ----------------------------------------------------------- */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.5rem;
  --s6:  2rem;
  --s7:  3rem;
  --s8:  4rem;
  --s9:  6rem;
  --s10: 8rem;

  --section-y: clamp(3rem, 5.5vw, 5.25rem);

  /* --- Estructura ------------------------------------------------------- */
  --wrap:    1240px;
  --wrap-narrow: 760px;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --measure: 66ch;

  /* --- Movimiento -------------------------------------------------------- */
  --ease-needle: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:  420ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 1ms; }
}
