/* Reset mínimo moderno ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Tipografía base -------------------------------------------------------- */
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1 { font-size: var(--text-hero); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: var(--text-h2); line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.25; }

/* Foco visible universal -------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Botones ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: var(--radius-ui);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(47, 107, 255, .55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(47, 107, 255, .65);
}

.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
}

.btn--ghost:hover { transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0); }

/* Navegación sticky ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 3vw, 3rem);
  /* Opacidad subida de .72 a .90: sobre el hero oscuro (--ink) el fondo
     mezclado da contraste 5.02:1 para --text-dim (AA >=4.5 con margen).
     El blur se mantiene, sigue esmerilando lo que pasa detrás. */
  background: rgba(247, 247, 249, .90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(22, 21, 31, .06);
}

.nav__logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}

.nav__logo span { color: var(--accent); }

.nav nav {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  flex: 1;
  justify-content: center;
}

.nav nav a {
  font-size: .92rem;
  color: var(--text-dim);
  transition: color .2s var(--ease-out);
}

.nav nav a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav nav { display: none; }
}

/* Honeypot: fuera de la vista pero enfocable por bots -------------------------- */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Oculto visualmente pero legible por lectores de pantalla (patrón clip estándar) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Motion off + Lenis -------------------------------------------------------- */
/* Se gatea por html[data-motion="off"] (js/motion-pref.js), NO por el
   media-query @prefers-reduced-motion: el Windows de Diego tiene los
   "Efectos de animación" apagados y Chrome reportaría reduce=true, dejando
   la landing sin animar aunque la política de producto es animar siempre.
   Ver docs/motion.md. */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

html.lenis, html.lenis body { height: auto; }
