/* ==========================================================================
   base.css — Reset, tipografía, botones, utilidades y animación de entrada
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-loading { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
/* Aro de foco: azul oscuro sobre fondos claros (el celeste daba ~2:1) y celeste sobre las zonas oscuras.
   (La tarjeta blanca del formulario vuelve al azul en css/waitlist.css, aunque esté dentro de una sección oscura.) */
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .nav :focus-visible, .footer :focus-visible, .section--dark :focus-visible { outline-color: var(--ice); }
::selection { background: var(--blue); color: var(--white); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section--dark { background: var(--navy); color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografía */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--ice); }
.h2 {
  font-size: clamp(32px, 4.6vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: var(--navy); margin-top: 20px; text-wrap: balance;
}
.section--dark .h2 { color: var(--white); }
.h2 em { font-style: normal; color: var(--blue); }
.section--dark .h2 em { color: var(--ice); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--slate); max-width: 560px; margin-top: 24px; }
.section--dark .lead { color: var(--on-dark); }

/* Botones */
.btn {
  --pad: 16px 26px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border: 0; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease), color .25s;
  will-change: transform;
}
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 30px -10px rgba(50, 113, 234, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover { background: var(--blue-hover); box-shadow: 0 16px 40px -10px rgba(50, 113, 234, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--lg { --pad: 20px 32px; font-size: 17px; }

/* Entrada al hacer scroll (solo si JS está activo) */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-d="1"] { --d: 1; }
[data-d="2"] { --d: 2; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Fuera de pantalla las animaciones se pausan (js/pause-offscreen.js marca estas zonas con .is-offscreen) */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
