/* Reset + tipografía + utilidades de layout */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); }
strong { font-weight: 700; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

/* Foco visible en todo */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  padding: .7rem 1rem; border: var(--bw) solid var(--line); border-radius: var(--r-s); box-shadow: var(--sh);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Iconos (sprite SVG en index.html) */
.ico { width: 1.5em; height: 1.5em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Layout */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--sec-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--sky { background: var(--sky); --line: #0E0E10; --shadow-c: #0E0E10; --text: #0E0E10; --muted: #0E2A45; --link: #101E70; --focus: #101E70; color: #0E0E10; }
.section--navy { background: var(--navy); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; font-size: var(--fs-lead); color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-small); font-weight: 700;
  padding: .35rem .85rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--c-yellow);
  color: var(--on-pastel); margin-bottom: 1.1rem;
}

/* Botones: bordes gruesos, sombra dura, se "hunden" al presionar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem; font-weight: 800; font-size: 1rem; text-decoration: none; line-height: 1.2;
  background: var(--accent); color: var(--accent-ink);
  border: var(--bw) solid var(--line); border-radius: 999px; box-shadow: var(--sh);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-c); }
.btn:active { transform: translate(3px, 3px); box-shadow: var(--sh-press); }
.btn .ico { width: 1.15em; height: 1.15em; stroke-width: 2.5; }
.btn--ghost { background: var(--surface); color: var(--text); }
.btn--yellow { background: var(--c-yellow); color: var(--on-pastel); }
.btn--lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .9375rem; }

/* Flecha de cierre de sección: empuja hacia la siguiente */
.next-link {
  display: grid; place-items: center; width: 52px; height: 52px; margin: clamp(2rem, 4vw, 3.5rem) auto 0;
  border: var(--bw) solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--sh);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.next-link:hover { transform: translateY(3px); box-shadow: 2px 2px 0 var(--shadow-c); }
.next-link .ico { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* Revelado al hacer scroll (solo si hay JS; ≤ 600 ms) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Movimiento reducido: sin animaciones ni transiciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
