/* ============================================================
   MINERIA DS · typography (a11y revision · grotesca recta)
   Tipografía optimizada para alto contraste y legibilidad
   en pantalla.

   1. TODA LA INTERFAZ EN INTER (grotesca neutra y recta)
      · Inter es la sans-serif más usada para UI digital.
        Linear, Mozilla, GitHub Primer, Vercel.
      · Formas geométricas firmes, sin redondeces orgánicas.
      · Diferenciación clara entre caracteres similares:
        mayúscula I ≠ minúscula l ≠ número 1; o ≠ 0.
      · Pesos completos del 100 al 900.
      · El token --ff-serif se mantiene como alias por
        compatibilidad con HTMLs existentes.

   2. MONO: IBM Plex Mono
      · Solo para datos técnicos: RFC, IDs, códigos.

   3. ESCALA TIPOGRÁFICA
      · Base sube de 15px a 17px.
      · Nada por debajo de 14px en toda la app.

   4. PESOS
      · Body sube de 400 a 500.
      · Labels y metadatos suben a 600.
      · Headlines en 700 (bold).

   5. LETTER-SPACING
      · Headlines en 0 (neutro).

   6. LINE-HEIGHT
      · Body sube de 1.55 a 1.65.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap");

:root {
  /* ─── Familias tipográficas ────────────────────────────── */
  --ff-sans:  "Inter", "Helvetica Neue", "Arial", system-ui, -apple-system, sans-serif;
  --ff-serif: var(--ff-sans);
  /* Se unifica todo a la fuente general (sin monoespaciada) en toda la app. */
  --ff-mono:  var(--ff-sans);

  /* ─── Escala tipográfica ─────────────────────────────── */
  --fs-base:   17px;
  --fs-sm:     15px;
  --fs-xs:     14px;
  --fs-lead:   20px;
  --fs-h4:     22px;
  --fs-h3:     26px;
  --fs-h2:     34px;
  --fs-h1:     48px;
  --fs-display:64px;

  --lh-body:   1.65;
  --lh-tight:  1.2;
  --lh-heading:1.15;
}

/* ============================================================
   BASELINE
   ============================================================ */
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
}

/* ============================================================
   DISPLAY & HEADINGS (sans, peso bold)
   ============================================================ */
.t-display {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: var(--lh-heading);
  letter-spacing: 0;
  color: var(--ink);
}
.t-h1 {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}
.t-h2 {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}
.t-h3 {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}
.t-h4 {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.t-quote {
  font-family: var(--ff-sans);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-soft);
  border-left: 4px solid var(--color-primary);
  padding-left: var(--s-4);
}

/* ============================================================
   BODY TEXT
   ============================================================ */
.t-body  {
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--ink);
}
.t-small {
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}
.t-lead  {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============================================================
   CAPTION / EYEBROW (mono)
   ============================================================ */
.t-eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.t-eyebrow-accent {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.t-caption {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ============================================================
   INLINE ORNAMENTS
   ============================================================ */
.t-italic-accent {
  font-style: italic;
  color: var(--color-primary);
  font-weight: 600;
}
.t-link {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.t-link:hover {
  color: var(--color-primary);
  text-decoration-thickness: 3px;
}
.t-link:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  :root {
    --fs-display: 44px;
    --fs-h1:      36px;
    --fs-h2:      28px;
  }
}

/* ============================================================
   RESPETO A PREFERENCIAS DEL USUARIO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
