/* Invitación web — Bautizo de Sofía Anahí. Mobile-first (360–430 px), luego escritorio.
   Solo se animan transform y opacity. Sin dependencias externas: todo es local. */

@font-face {
  font-family: 'Great Vibes';
  src: url('assets/fuentes/GreatVibes.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fuentes/Cormorant.woff') format('woff');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fuentes/Cormorant-Italica.woff') format('woff');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('assets/fuentes/Cinzel.woff') format('woff');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --oro: #c9a24b;
  --oro-claro: #e9cf8a;
  --oro-oscuro: #8c6a24;
  --oro-texto: #7d5e1e; /* dorado oscuro para texto chico: contraste 5.1:1 sobre marfil */
  --marfil: #fbf4e6;
  --crema: #f1e3c6;
  --rosa: #e8c4c0;
  --vino: #7a1f2b;
  --tinta: #4a3326;
  --verde: #6e7f5a;
  --f-script: 'Great Vibes', 'Brush Script MT', cursive;
  --f-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-caps: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-suave: cubic-bezier(0.45, 0.05, 0.25, 1);
  --dur: 1s;
  --ancho: min(100% - 32px, 560px);
  --seg-izq: env(safe-area-inset-left, 0px);
  --seg-der: env(safe-area-inset-right, 0px);
  --seg-abajo: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--marfil);
  color: var(--tinta);
  font-family: var(--f-serif);
  font-size: 1.1875rem; /* 19 px: Cormorant tiene ojo pequeño */
  font-weight: 500;
  line-height: 1.55;
  overflow-x: clip;
  padding-left: var(--seg-izq);
  padding-right: var(--seg-der);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--vino);
  outline-offset: 3px;
  border-radius: 6px;
}

.salta {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  background: var(--vino);
  color: var(--marfil);
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
}
.salta:focus {
  top: 12px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Tipografía ---------- */
.script {
  font-family: var(--f-script);
  font-weight: 400;
  line-height: 1.15;
}

.oro {
  background: linear-gradient(170deg, var(--oro-claro) 0%, var(--oro) 42%, var(--oro-oscuro) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 250, 235, 0.7)) drop-shadow(0 2px 6px rgba(120, 85, 20, 0.18));
}

.etiqueta {
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro-texto);
  margin: 0;
}

h2.titulo {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  line-height: 1.1;
  margin: 0.15em 0 0.2em;
  text-align: center;
}

.cuerpo {
  font-size: 1.25rem;
  line-height: 1.6;
}

/* ---------- Secciones ---------- */
main {
  position: relative;
}

.seccion {
  position: relative;
  padding: clamp(56px, 12vw, 110px) 0;
  overflow: hidden;
}

.contenedor {
  width: var(--ancho);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.centro {
  text-align: center;
}

/* Fondo de bosque pintado (capturado del video) con parallax por transform. */
.bosque {
  position: absolute;
  inset: -12% 0 -12% 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.bosque img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bosque::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 244, 230, 0) 55%, var(--marfil) 100%);
}

.velo-claro {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 40%, rgba(251, 244, 230, 0.78), rgba(251, 244, 230, 0.25) 70%);
  pointer-events: none;
}

/* Pergamino */
.pergamino {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.65), transparent 60%),
    linear-gradient(180deg, #fdf8ee, #f6ead2);
  border-radius: 6px;
  padding: 44px 26px 40px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -18px rgba(90, 60, 20, 0.35), 0 2px 6px rgba(90, 60, 20, 0.12);
}
.pergamino .marco {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  pointer-events: none;
  overflow: visible;
}
.marco rect,
.marco path,
.marco circle {
  fill: none;
  stroke: url(#oro-trazo);
  vector-effect: non-scaling-stroke;
}

/* Trazos que se dibujan al aparecer (stroke-dashoffset) */
.dibuja {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-suave);
}
.visible .dibuja {
  stroke-dashoffset: 0;
}

/* Revelado al bajar: entra con un desplazamiento leve; las frases, escalonadas. */
.revela {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 140ms + var(--base, 0ms));
}
.visible .revela,
.revela.visible {
  opacity: 1;
  transform: none;
}

.revela-escala {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--base, 0ms);
}
.visible .revela-escala {
  opacity: 1;
  transform: none;
}

/* ---------- 1. Portada: libro que se abre al bajar ---------- */
.portada {
  position: relative;
  height: 210svh;
}
.portada-fija {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.portada .bosque {
  inset: -6% 0 -6% 0;
}
.portada .bosque::after {
  background: linear-gradient(180deg, rgba(251, 244, 230, 0) 70%, rgba(251, 244, 230, 0.6) 100%);
}
.rayos {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 236, 190, 0.35) 38%, transparent 46%),
    linear-gradient(105deg, transparent 48%, rgba(255, 236, 190, 0.28) 55%, transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.libro {
  --p: 0; /* progreso de apertura (0 cerrado … 1 abierto), lo pone app.js */
  position: relative;
  z-index: 3;
  width: min(76vw, 340px, 44svh);
  aspect-ratio: 3 / 4;
  perspective: 1400px;
  transform: translate3d(calc(var(--p) * 0px), 0, 0);
}
.libro-pagina {
  position: absolute;
  inset: 0;
  border-radius: 4px 10px 10px 4px;
  background: linear-gradient(90deg, #efe1c4, #fdf8ee 12%, #fbf4e6);
  box-shadow: 0 30px 60px -25px rgba(70, 40, 10, 0.55), inset 0 0 0 1px rgba(140, 106, 36, 0.25);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10% 8%;
}
.libro-pagina .pagina-contenido {
  opacity: calc((var(--p) - 0.45) * 2.2);
  transform: translate3d(0, calc((1 - var(--p)) * 16px), 0);
}
.libro-tapa {
  position: absolute;
  inset: 0;
  transform-origin: 0% 50%;
  transform: rotateY(calc(var(--p) * -168deg));
  transform-style: preserve-3d;
  border-radius: 4px 10px 10px 4px;
  will-change: transform;
}
.tapa-frente,
.tapa-dorso {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tapa-frente {
  background:
    radial-gradient(ellipse at 40% 30%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(150deg, #8a2a34 0%, #6c1a25 55%, #4e1219 100%);
  box-shadow: inset 0 0 0 1px rgba(233, 207, 138, 0.35), inset 10px 0 18px -10px rgba(0, 0, 0, 0.5), 0 30px 60px -25px rgba(70, 40, 10, 0.6);
  display: grid;
  place-items: center;
}
.tapa-frente svg {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
}
.tapa-titulo {
  position: relative;
  font-size: clamp(2.1rem, 10vw, 2.9rem);
  margin-top: 18%;
}
.tapa-dorso {
  transform: rotateY(180deg);
  background: linear-gradient(90deg, #fbf4e6, #f1e3c6);
}
.erase {
  position: absolute;
  z-index: 4;
  top: calc(env(safe-area-inset-top, 0px) + 7svh);
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(2.6rem, 12vw, 4rem);
  margin: 0;
  opacity: calc(1 - var(--p, 0) * 1.6);
}
.indicador {
  position: absolute;
  z-index: 4;
  bottom: calc(var(--seg-abajo) + 22px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  font-family: var(--f-caps);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--oro-texto);
  opacity: calc(1 - var(--p, 0) * 3);
}
.indicador span {
  width: 2px;
  height: 34px;
  background: linear-gradient(var(--oro), transparent);
  animation: gota 2.2s var(--ease-suave) infinite;
}
@keyframes gota {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.nombre {
  font-size: clamp(2.6rem, 13vw, 3.6rem);
  margin: 0.15em 0 0.05em;
}
.liston {
  display: inline-block;
  font-family: var(--f-caps);
  font-weight: 600;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
  color: var(--marfil);
  background: linear-gradient(180deg, #8f2b37, var(--vino));
  padding: 8px 18px 7px 21px;
  border-radius: 2px;
  box-shadow: 0 6px 14px -8px rgba(80, 10, 20, 0.6);
}

/* ---------- Foto con marco dorado ---------- */
.foto-marco {
  position: relative;
  width: min(78vw, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.foto-marco img {
  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px -12px rgba(70, 40, 10, 0.5);
}
.foto-marco svg.aro {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.foto-marco.chica {
  width: min(56vw, 250px);
}
.arco {
  position: relative;
  width: min(80vw, 380px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
}
.arco img {
  position: absolute;
  inset: 4.5%;
  width: 91%;
  height: 91%;
  object-fit: cover;
  border-radius: 999px 999px 14px 14px / 46% 46% 14px 14px;
}
.arco svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.portada-foto {
  margin-top: 26px;
}

/* ---------- Texto emotivo ---------- */
.paloma {
  width: 74px;
  margin: 0 auto 10px;
}
.emotivo p {
  margin: 0;
}
.emotivo .linea {
  display: block;
}
.dos-fotos {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}
.dos-fotos .foto-marco {
  width: min(42vw, 210px);
}
.dos-fotos .foto-marco:nth-child(2) {
  margin-top: 34px;
}

/* ---------- Familia ---------- */
.familia h3 {
  margin: 0;
}
.nombres {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.35;
}
.nombres li + li {
  margin-top: 6px;
}
.separador {
  width: 210px;
  height: 26px;
  margin: 22px auto;
}

/* ---------- Fecha y cuenta regresiva ---------- */
.medallon {
  position: relative;
  width: min(74vw, 320px);
  aspect-ratio: 1;
  margin: 18px auto 10px;
  display: grid;
  place-items: center;
}
.medallon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.dia {
  font-size: clamp(6.5rem, 34vw, 9.5rem);
  line-height: 1;
  margin-top: -4%;
}
.mes {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0;
}
.anio {
  font-family: var(--f-caps);
  font-size: 1.35rem;
  letter-spacing: 0.3em;
  font-weight: 600;
  margin: 2px 0 0;
}
.cuenta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 26px auto 0;
  max-width: 420px;
}
.cuenta div {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: 12px;
  padding: 10px 2px 8px;
  text-align: center;
}
.cuenta b {
  display: block;
  font-family: var(--f-caps);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--vino);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.cuenta span {
  font-size: 0.95rem;
  color: var(--tinta);
}

/* ---------- Lugares ---------- */
.lugar .icono {
  width: 96px;
  height: 96px;
  margin: 0 auto 6px;
}
.lugar h3 {
  font-family: var(--f-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 8px 0 4px;
}
.hora {
  font-family: var(--f-caps);
  font-size: 1.9rem;
  font-weight: 600;
  margin: 2px 0;
}
.ciudad {
  font-style: italic;
  font-size: 1.25rem;
  margin: 0 0 18px;
}

/* ---------- Botones (≥ 48 px, separados, sin depender del hover) ---------- */
.botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  min-width: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--oro);
  background: linear-gradient(180deg, #fffaf0, #f6e9cd);
  color: var(--vino);
  font-family: var(--f-caps);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 6px 16px -10px rgba(90, 60, 20, 0.6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.2s var(--ease);
}
.boton:active {
  transform: scale(0.97);
}
.boton.principal {
  background: linear-gradient(180deg, #8f2b37, var(--vino));
  border-color: #5e1520;
  color: var(--marfil);
}
.boton svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Video ---------- */
.video-caja {
  position: relative;
  width: min(100%, 340px);
  margin: 18px auto 0;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(70, 40, 10, 0.65), 0 0 0 1px rgba(201, 162, 75, 0.5);
  background: #2a1d14;
}
.video-caja video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reproducir {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(30, 18, 10, 0.18);
  cursor: pointer;
  color: var(--marfil);
}
.reproducir span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(122, 31, 43, 0.9);
  box-shadow: 0 0 0 3px rgba(233, 207, 138, 0.9), 0 12px 30px rgba(0, 0, 0, 0.35);
}
.reproducir svg {
  width: 34px;
  height: 34px;
  margin-left: 5px;
}
.reproducir[hidden] {
  display: none;
}
.nota {
  font-size: 1.05rem;
  font-style: italic;
  margin-top: 12px;
}

/* ---------- Galería repartida (momentos) ---------- */
.momentos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: var(--ancho);
  margin: 0 auto;
}
.momentos.uno {
  grid-template-columns: 1fr;
  width: min(100% - 64px, 360px);
}
.polaroid {
  position: relative;
  margin: 0;
  background: #fffdf8;
  padding: 8px 8px 30px;
  border-radius: 4px;
  box-shadow: 0 14px 28px -16px rgba(70, 40, 10, 0.55), 0 1px 3px rgba(70, 40, 10, 0.15);
  transform: rotate(var(--giro, -2deg));
}
.polaroid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.polaroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font-family: var(--f-script);
  font-size: 1.3rem;
  color: var(--oro-texto);
}
.momentos .polaroid:nth-child(2) {
  --giro: 2.5deg;
  margin-top: 26px;
}

dialog.visor {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100dvh;
  width: 100vw;
  height: 100dvh;
}
dialog.visor::backdrop {
  background: rgba(30, 18, 10, 0.88);
}
.visor-caja {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 64px) 12px calc(var(--seg-abajo) + 84px);
}
.visor-caja img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.visor-cerrar,
.visor-ant,
.visor-sig {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--oro-claro);
  background: rgba(30, 18, 10, 0.55);
  color: var(--marfil);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.visor-cerrar {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  right: 12px;
}
.visor-ant,
.visor-sig {
  bottom: calc(var(--seg-abajo) + 16px);
}
.visor-ant {
  left: calc(50% - 68px);
}
.visor-sig {
  left: calc(50% + 16px);
}

/* ---------- Cierre ---------- */
.te-esperamos {
  font-size: clamp(3.4rem, 16vw, 5rem);
  margin: 18px 0 0;
}
.cierre-texto {
  font-size: 1.3rem;
  font-style: italic;
  margin: 6px 0 0;
}

footer {
  text-align: center;
  padding: 26px 16px calc(var(--seg-abajo) + 30px);
  font-size: 1rem;
  color: var(--oro-texto);
}

/* ---------- Animales y princesita (sprites 3D animados) ---------- */
.escenario {
  position: relative;
  height: 0;
}
.animal {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
  animation-play-state: paused;
}
.visible .animal,
.animal.activo {
  animation-play-state: running;
}
.animal img {
  width: 100%;
  height: auto;
}
.animal .paso {
  will-change: transform;
  animation: inherit;
  animation-play-state: inherit;
}

@keyframes cruza-der {
  from { transform: translate3d(-40vw, 0, 0); }
  to { transform: translate3d(130vw, 0, 0); }
}
@keyframes cruza-izq {
  from { transform: translate3d(130vw, 0, 0); }
  to { transform: translate3d(-40vw, 0, 0); }
}
@keyframes vuela-mariposa {
  0% { transform: translate3d(-12vw, 30px, 0) rotate(60deg); }
  25% { transform: translate3d(25vw, -40px, 0) rotate(80deg); }
  50% { transform: translate3d(55vw, 10px, 0) rotate(100deg); }
  75% { transform: translate3d(80vw, -60px, 0) rotate(70deg); }
  100% { transform: translate3d(112vw, -20px, 0) rotate(90deg); }
}
@keyframes vuela-ave {
  0% { transform: translate3d(-30vw, 20px, 0); }
  50% { transform: translate3d(40vw, -30px, 0); }
  100% { transform: translate3d(130vw, 10px, 0); }
}
@keyframes vuela-ave-izq {
  0% { transform: translate3d(130vw, 10px, 0); }
  50% { transform: translate3d(40vw, -24px, 0); }
  100% { transform: translate3d(-30vw, 20px, 0); }
}
@keyframes flota {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

/* ---------- Escritorio ---------- */
@media (min-width: 760px) {
  :root {
    --ancho: min(100% - 80px, 680px);
  }
  body {
    font-size: 1.3rem;
  }
  .pergamino {
    padding: 64px 70px 58px;
  }
  .portada {
    height: 220vh;
  }
  .libro {
    width: min(34vw, 380px, 52svh);
  }
  .momentos {
    grid-template-columns: repeat(3, 1fr);
    width: min(100% - 80px, 880px);
  }
  .momentos.dos {
    grid-template-columns: repeat(2, 1fr);
    width: min(100% - 80px, 600px);
  }
  .momentos .polaroid:nth-child(3) {
    --giro: -1.5deg;
    margin-top: 12px;
  }
  .dos-fotos .foto-marco {
    width: 240px;
  }
}

/* Horizontal en celular: la portada no se corta. */
@media (orientation: landscape) and (max-height: 520px) {
  .portada {
    height: 190vh;
  }
  .portada-fija {
    min-height: 0;
  }
  .libro {
    width: min(30vw, 56svh * 0.75);
  }
  .erase {
    top: 4svh;
    font-size: 2.2rem;
  }
}

/* Sin animaciones si la persona lo pide. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .revela,
  .revela-escala {
    opacity: 1;
    transform: none;
  }
  .dibuja {
    stroke-dashoffset: 0;
  }
  .portada {
    height: auto;
  }
  .portada-fija {
    position: relative;
  }
  .libro {
    --p: 1 !important;
  }
  .animal.en-movimiento {
    display: none;
  }
}
