/* Typography overrides · Stack 1 Legal · 2026-05-09
 * Aplica Source Serif 4 a títulos · JetBrains Mono a códigos · letter-spacing tight.
 * Carga DESPUÉS de style.css para sobreescribir defaults.
 */

/* All h1/h2 in main content → serif (legal authority) */
h1, h2, .h1, .h2,
.hero h1, .hero h2,
.section h1, .section h2,
main h1, main h2,
.content h1, .content h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
}

/* Subtle: h3 also serif but lighter weight */
h3, .h3 {
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* RIT codes, document IDs, fechas técnicas → mono */
.rit, .rit-chip, .rit-codigo, .documento-id, .fallo-rit,
code, pre, kbd, samp,
[class*="rit-"], [class*="-rit"],
[class*="codigo-"], [class*="-codigo"] {
  font-family: var(--font-mono);
  font-feature-settings: "liga" 0;
}

/* Buttons more refined letter-spacing */
.btn, button.primary, .cta, .nv-soft-banner-suscribir {
  letter-spacing: 0.005em;
}

/* Body uses Inter optical features for legibility */
body {
  font-feature-settings: "ss01", "cv05", "cv11";
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero/landing h1: bigger, more dramatic */
#hero h1, .hero-titulo, .hero-headline,
header.landing h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

/* Section titles inside the buscador */
.panel-content h1, .panel-content h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Numbers in fechas, montos → tabular */
.fecha, .monto, .dinero, time, [datetime] {
  font-variant-numeric: tabular-nums;
}
