/* Reset y estilos base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: 900px; padding-bottom: 56px; }
.wrap.mid { max-width: 1000px; padding-bottom: 56px; }

.eyebrow { font: 600 12px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-i] { display: inline-flex; }

.section { padding-block: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; margin-top: 10px; }
.page-head { padding-block: 40px 24px; }
.page-head h1 { font-size: 34px; margin-top: 10px; }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }

.demo-flag { font: 600 11px var(--f-mono); letter-spacing: .08em; color: var(--warn); background: var(--warn-soft); padding: 3px 8px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Utilidades (reemplazan estilos en línea, que la CSP bloquea) */
.mt { margin-top: 12px; }
.mt-lg { margin-top: 36px; }
.mb { margin-bottom: 12px; }
.mb-lg { margin-bottom: 24px; }
.center { display: flex; justify-content: center; margin-top: 20px; }
.self-start { align-self: flex-start; }
.nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
.no-scroll { overflow: hidden; }
#app:focus { outline: none; }

/* Enlace para saltar al contenido (accesibilidad con teclado) */
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-fg); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Campo trampa para bots: invisible para personas */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
