/* Base: reinicio, tipografía, utilidades de maquetación (.wrap, .eyebrow, .lead) y aparición al hacer scroll (.rv). */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* la página nunca es más ancha que la ventana: sin scroll horizontal y sin margen para alejar la vista en pantallas táctiles */
  overflow-x: hidden;
  /* el navegador del teléfono no agranda el texto por su cuenta al girar la pantalla */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  color: var(--txt);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  font-size: clamp(38px, 5.2vw, 64px);
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--txt-2);
  max-width: 680px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--acero);
  outline-offset: 3px;
}
.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js .rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* la vista móvil no lleva animaciones de aparición */
@media (max-width: 820px) {
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
