*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-sand);
}

/* Regla de lenis.css: lenis.stop() solo frena la rueda; en touch el scroll
   es nativo y hay que cortarlo en el html. La usan el popup y el pase de
   la puerta (js/pase-puerta.js fijarDurante). */
html.lenis-stopped { overflow: hidden; }

body {
  --intro-progress: 0;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-white-warm);
  color: var(--color-brown-dark);
  font-family: var(--font-display);
  font-size: var(--fs-p);
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

@media (max-width: 899px) {
  /* Lo que asoma entre secciones o al estirar el scroll es el body:
     en mobile, arena como el suelo del hero. */
  body { background: var(--color-sand); }
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  font-size: 16px;
}

button,
input,
select,
textarea {
  margin: 0;
}

button {
  cursor: pointer;
}

main {
  min-height: 100svh;
}

@media (min-width: 900px) {
  body {
    max-width: none;
  }
}

/* Sin variante de reduced motion: decisión de diseño, el recorrido se anima igual
   en todos los dispositivos. Ver también js/lenis.js (respectReducedMotion: false). */

/* Bloqueo de scroll de la intro: sin contenido debajo del hero, el scroll
   se detiene al final del riel. Lo levanta intro-scroll.js. */
body[data-intro-bloqueado="true"] main > section:not(.hero),
body[data-intro-bloqueado="true"] > footer {
  display: none;
}
