/* Sistema tipografico unico del sitio publico. */
:root {
  --f-titulo: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-texto: Figtree, "Segoe UI", system-ui, sans-serif;

  --t-2xs: .75rem;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5rem;
  --t-2xl: 1.875rem;
  --t-3xl: 2.25rem;
  --t-4xl: 2.75rem;

  --t-intro: clamp(1.0625rem, 1.6vw, 1.25rem);
  --h-sub: clamp(1.5rem, 3vw, 2.25rem);
  --h-seccion: clamp(1.875rem, 4vw, 2.75rem);
  --h-pagina: clamp(2.25rem, 5vw, 3.5rem);
  --h-hero: clamp(2.5rem, 5.6vw, 4.25rem);
  --h-hero-movil: clamp(1.9rem, 8vw, 2.75rem);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-texto);
  font-size: var(--t-base);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--f-titulo);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 em, h2 em, h3 em, h4 em { font-style: normal; }

/* Elementos que usan la fuente de titulos sin ser encabezados. */
[style*="--f-titulo"], .nav-brand, .hero-stat-num {
  font-weight: 700;
  letter-spacing: -.015em;
}

p, li { text-wrap: pretty; }

.hero-sub { max-width: 60ch; }

.hero-stat-num { font-variant-numeric: tabular-nums; }

input, select, textarea, button { font-family: inherit; }

/* Lectura comoda en contenido largo. */
.prosa { min-width: 0; }
.prosa p, .prosa ul, .prosa ol { max-width: 72ch; }

/* Contraste del texto sobre las fotos del slider. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 38, 63, .74) 0%, rgba(6, 38, 63, .42) 42%, rgba(6, 38, 63, 0) 72%);
}
.hero-h1, .hero-sub { text-shadow: 0 2px 18px rgba(6, 38, 63, .55); }

@media (max-width: 899px) {
  /* La marca cede espacio para que el menu siempre quepa. */
  .site-head nav > a:first-child { flex: 0 1 auto !important; min-width: 0; }
  .site-head nav > a:first-child img { width: 52px !important; height: 52px !important; }
  .site-head nav > a:first-child span span:first-child { font-size: var(--t-base) !important; }
  .nav-burger { flex: 0 0 auto; }
}

@media (max-width: 700px) {
  .prosa table { display: block; overflow-x: auto; }
  .hero-bg::after { background: rgba(6, 38, 63, .28); }
}
