/* Estilos generales: tipografía, enlaces y contenedores. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); }
img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; }
h3 { font-size: 21px; font-weight: 800; }
p { margin: 0 0 16px; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .86em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  word-break: break-all;
}

/* Enlace para saltar al contenido con el teclado */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--accent); color: var(--on-accent); padding: 10px 18px; border-radius: 999px; font-weight: 800; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.alt { background: var(--bg-alt); }

.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 12px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Fila de botones al final de una sección */
.section-cta { margin-top: 32px; }
