/* Reset + base tipográfica */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 var(--sp-3); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-3); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
[hidden] { display: none !important; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Kicker al estilo de la landing: línea dorada + mayúsculas espaciadas */
.kicker {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-500);
}
.kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.kicker--blue { color: var(--blue-500); }
.kicker--blue::before { display: none; }

.stack > * + * { margin-top: var(--sp-4); }
.row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.grid-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (max-width: 560px) { .grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-stats .stat { padding: var(--sp-4); } .grid-stats .stat__value { font-size: var(--fs-2xl); } }

/* Contenedor de cada vista (se recrea al navegar) */
.view { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
.app .view { gap: var(--sp-4); }
.cap { display: inline-block; }
.cap::first-letter { text-transform: uppercase; }
