/* ============ SolaTrip · estilos ============ */

@font-face { font-family: "Caveat"; font-weight: 400; font-display: swap; src: url("../fonts/caveat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("../fonts/caveat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }

:root {
  --crema: #FBF3E6;
  --arena: #F1E4CC;
  --papel: #FFFBF3;
  --noche: #264653;
  --noche-suave: #4D6670;
  --coral: #E0714E;
  --coral-oscuro: #C4583A;
  --turquesa: #2A9D8F;
  --sol: #E9B44C;

  --hand: "Caveat", "Segoe Print", cursive;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--noche);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--turquesa); text-underline-offset: .18em; }
a:hover { color: var(--noche); }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--noche); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: var(--section) 0; }

.h2 {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.02;
  color: var(--noche);
  margin-bottom: 28px;
  letter-spacing: .005em;
}
.h2--light { color: var(--crema); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
  box-shadow: 0 6px 18px -8px rgba(196, 88, 58, .7);
}
.btn:hover { background: var(--coral-oscuro); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--small { padding: 10px 20px; font-size: .9rem; box-shadow: none; }
.btn--sun { background: var(--sol); color: var(--noche); box-shadow: none; }
.btn--sun:hover { background: #f0c463; color: var(--noche); }
.btn--wide { width: 100%; padding: 18px; font-size: 1.05rem; }
.link-soft { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.link-soft:hover { color: var(--sol); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.nav__inner { max-width: 1240px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; }
.nav__logo { font-family: var(--hand); font-weight: 700; font-size: 2rem; line-height: 1; color: #fff; text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav__links a:hover { color: var(--sol); }
.nav__toggle { display: none; }
.nav__logo { transition: opacity .25s ease, visibility .25s ease; }
.nav:not(.is-solid):not(.is-open) .nav__logo { opacity: 0; visibility: hidden; }
.nav.is-solid { background: rgba(251, 243, 230, .96); box-shadow: 0 1px 0 rgba(38, 70, 83, .1); backdrop-filter: blur(6px); }
.nav.is-solid .nav__logo { color: var(--coral); }
.nav.is-solid .nav__links a { color: var(--noche); }
.nav.is-solid .nav__links a:hover { color: var(--coral); }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo { z-index: -2; }
.hero__photo img { object-fit: cover; object-position: 62% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 47, 58, .86) 0%, rgba(23, 47, 58, .72) 30%, rgba(23, 47, 58, .32) 52%, rgba(23, 47, 58, 0) 68%),
    linear-gradient(0deg, rgba(23, 47, 58, .55) 0%, rgba(23, 47, 58, 0) 45%),
    linear-gradient(180deg, rgba(23, 47, 58, .3) 0%, rgba(23, 47, 58, 0) 22%);
}
.hero__brand, .hero__body { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.hero__brand { padding-top: 120px; }
.hero__title {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(5.5rem, 15vw, 12.5rem);
  line-height: .82;
  letter-spacing: -.01em;
  color: var(--crema);
  text-shadow: 0 4px 30px rgba(23, 47, 58, .35);
  /* el único momento con movimiento: el nombre aparece como trazado a mano */
  animation: write 1.4s cubic-bezier(.6, .1, .2, 1) both;
}
.hero__slogan {
  font-family: var(--hand);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--sol);
  margin: 10px 0 0 .3em;
  animation: fade .8s .9s ease both;
  text-shadow: 0 2px 14px rgba(23, 47, 58, .55);
}
.hero__body { padding-top: 40px; padding-bottom: clamp(48px, 8vh, 88px); animation: fade .8s 1.1s ease both; }
.hero__lead { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.35; max-width: 30ch; }
.hero__text { margin-top: 14px; max-width: 46ch; font-weight: 400; color: #f5efe4; }
.hero__body { text-shadow: 0 1px 12px rgba(23, 47, 58, .45); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-size: .88rem; color: #f5efe4; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%232A9D8F'/%3E%3Cpath d='M4.6 8.3l2.2 2.1 4.6-4.7' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes write { from { clip-path: inset(-30% 100% -30% -10%); } to { clip-path: inset(-30% -10% -30% -10%); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Qué recibes ---------- */
.includes__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.includes__pages { position: relative; aspect-ratio: 4 / 4.4; }
.page-shot { position: absolute; width: 62%; }
.page-shot img { border-radius: 6px; box-shadow: 0 22px 40px -22px rgba(38, 70, 83, .55), 0 2px 6px rgba(38, 70, 83, .12); }
.page-shot--back { left: 0; top: 0; transform: rotate(-5deg); }
.page-shot--front { right: 2%; bottom: 0; transform: rotate(3deg); }
.hand-note { font-family: var(--hand); font-size: 1.55rem; color: var(--coral); line-height: 1.1; }
.hand-note--pages { position: absolute; left: -2%; bottom: -9%; max-width: 12em; transform: rotate(-4deg); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M3 12.5c2.2 1.6 4 3.5 5.6 5.7C11 12 14.6 7 19.5 3.5' fill='none' stroke='%23E0714E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Regalo ---------- */
.gift { background: var(--noche); color: #e9efef; position: relative; overflow: hidden; }
.gift__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.gift__text p { max-width: 44ch; margin-bottom: 32px; color: #dfe7e8; font-size: 1.1rem; }
.gift__cover { justify-self: center; width: min(360px, 80%); transform: rotate(3deg); }
.gift__cover img { border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); border: 8px solid var(--papel); border-bottom-width: 36px; }

/* ---------- Cómo funciona (ruta) ---------- */
.steps { background: var(--arena); }
.steps__intro { max-width: 56ch; margin: -6px auto 0; color: var(--noche-suave); }
.route { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: paso; }
.route::before {
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 11px;
  border-top: 3px dashed var(--turquesa);
}
.route__stop { position: relative; text-align: center; counter-increment: paso; }
.route__dot { display: block; width: 25px; height: 25px; margin: 0 auto 20px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 6px var(--arena); position: relative; }
.route__stop h3 { font-family: var(--hand); font-weight: 700; font-size: 1.9rem; line-height: 1.05; margin-bottom: 10px; }
.route__stop h3::before { content: counter(paso) ". "; color: var(--coral); }
.route__stop p { font-size: .98rem; color: var(--noche-suave); max-width: 24ch; margin: 0 auto; }

/* ---------- Precio (postal) ---------- */
.postcard {
  position: relative;
  max-width: 860px; margin: 44px auto 0;
  background: var(--papel);
  border-radius: 6px;
  padding: clamp(28px, 5vw, 52px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px);
  box-shadow: 0 24px 50px -30px rgba(38, 70, 83, .5);
  background-image: repeating-linear-gradient(135deg, var(--coral) 0 14px, transparent 14px 22px, var(--turquesa) 22px 36px, transparent 36px 44px);
  background-size: 100% 8px; background-repeat: no-repeat; background-position: top;
}
.postcard::after { /* línea divisoria de postal */
  content: ""; position: absolute; top: 18%; bottom: 14%; left: 50%; border-left: 1.5px solid var(--arena);
}
.postcard__stamp {
  position: absolute; top: -26px; right: clamp(16px, 4vw, 40px);
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--sol);
  display: grid; place-items: center;
  transform: rotate(12deg);
  box-shadow: 0 0 0 5px var(--papel), 0 0 0 7px var(--sol);
}
.postcard__stamp span { font-family: var(--hand); font-weight: 700; font-size: 1.45rem; color: var(--noche); }
.postcard__label { font-weight: 500; color: var(--noche-suave); }
.postcard__price { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 8px; }
.postcard__price del { font-size: 1.6rem; color: var(--noche-suave); text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.postcard__amount { font-family: var(--hand); font-weight: 700; font-size: clamp(5.5rem, 11vw, 8rem); line-height: .85; color: var(--coral); }
.postcard__cur { font-weight: 600; font-size: 1.1rem; margin-left: -6px; }
.postcard__detail { font-size: 1rem; }
.postcard__right { display: flex; flex-direction: column; justify-content: center; gap: 22px; align-items: flex-start; padding-top: 48px; }
.postcard__right p { font-size: .98rem; color: var(--noche-suave); }
.currencies { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.currencies li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--crema); border: 1.5px solid var(--arena); border-radius: 999px;
  padding: 6px 14px 6px 6px; font-weight: 600; font-size: .92rem; color: var(--noche);
}
.currencies__sym {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: 999px; background: var(--turquesa); color: #fff; font-size: .8rem; font-weight: 600;
}
.currencies__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sobre mí ---------- */
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__text p { margin-bottom: 18px; max-width: 58ch; }
.about { background: var(--noche); color: #e3eaea; }
.about .h2 { color: var(--crema); }
.about__ig { color: #c4d2d4; font-size: .98rem; }
.about__ig a { color: var(--sol); }
.about__ig a:hover { color: #fff; }
.about .polaroid { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.polaroid { margin: 0; justify-self: center; width: min(380px, 88%); background: #fff; padding: 14px 14px 0; border-radius: 3px; transform: rotate(2.5deg); box-shadow: 0 26px 46px -24px rgba(38, 70, 83, .55); }
.polaroid img { aspect-ratio: 3 / 3.6; object-fit: cover; object-position: 50% 30%; width: 100%; }
.polaroid figcaption { font-family: var(--hand); font-size: 1.6rem; text-align: center; padding: 10px 0 14px; color: var(--noche); }

/* ---------- Formulario ---------- */
.form-sec {
  position: relative; isolation: isolate; color: #fff;
  background: var(--noche) image-set(url("../img/formulario-atardecer-2000.webp") type("image/webp"), url("../img/formulario-atardecer-2000.jpg") type("image/jpeg")) center 38% / cover no-repeat;
}
.form-sec::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(23, 47, 58, .45) 0%, rgba(23, 47, 58, .25) 35%, rgba(23, 47, 58, .55) 100%);
}
.form-sec .h2 { color: var(--crema); text-shadow: 0 2px 18px rgba(23, 47, 58, .5); }
.form-sec__intro { text-shadow: 0 1px 10px rgba(23, 47, 58, .6); }
.form-sec .trip-form { color: var(--noche); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.form-sec__intro { max-width: 52ch; margin: -8px auto 40px; color: #f6efe3; }
.trip-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; background: var(--papel); padding: clamp(22px, 4vw, 40px); border-radius: 10px; box-shadow: 0 20px 40px -30px rgba(38, 70, 83, .45); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 500; }
.req { color: var(--coral); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--noche);
  background: #fff; border: 1.5px solid #e2d5bd; border-radius: 8px;
  padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; }
.field input::placeholder { color: #9aa9ae; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turquesa); box-shadow: 0 0 0 3px rgba(42, 157, 143, .2); }
.field.has-error select { border-color: var(--coral); }
.field__error { color: var(--coral-oscuro); font-size: .86rem; }
.form-actions { margin-top: 6px; text-align: center; gap: 10px; }
.form-note { font-size: .86rem; color: var(--noche-suave); }
.form-status { font-size: .92rem; color: var(--noche); background: var(--crema); border-radius: 8px; padding: 10px 14px; }

/* ---------- Preguntas ---------- */
.faq details { border-bottom: 1.5px dashed #e2d5bd; padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--coral); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--noche-suave); max-width: 62ch; }

/* ---------- Pie ---------- */
.footer { background: var(--noche); color: #cfdadb; padding: 56px 0 44px; font-size: .9rem; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px 56px; align-items: start; }
.footer__logo { font-family: var(--hand); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--crema); }
.footer__slogan { font-family: var(--hand); font-size: 1.3rem; color: var(--sol); }
.footer__disclaimer { max-width: 46ch; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: #fff; }
.footer a:hover { color: var(--sol); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav__inner { gap: 12px; }
  .nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px; flex: none;
    background: transparent; border: 0; border-radius: 10px; cursor: pointer; color: #fff; padding: 0;
  }
  .nav.is-solid .nav__toggle, .nav.is-open .nav__toggle { color: var(--noche); }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor;
    transition: transform .25s ease, background-color .25s ease;
  }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -7px; }
  .nav__bars::after { top: 7px; }
  .nav.is-open .nav__bars { background: transparent; }
  .nav.is-open .nav__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav.is-open { background: var(--crema); box-shadow: 0 10px 30px -18px rgba(38, 70, 83, .5); }
  .nav.is-open .nav__logo { color: var(--coral); }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 4px var(--gutter) 18px;
    background: var(--crema); box-shadow: 0 16px 30px -20px rgba(38, 70, 83, .5);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links li { border-bottom: 1.5px dashed #e2d5bd; }
  .nav__links li:last-child { border-bottom: 0; }
  .nav__links a, .nav.is-solid .nav__links a { display: block; padding: 14px 2px; color: var(--noche); font-size: 1.05rem; }
  .includes__grid, .gift__grid, .about__grid { grid-template-columns: 1fr; }
  .includes__pages { max-width: 460px; width: 100%; margin: 0 auto; }
  .gift__cover { order: -1; width: min(280px, 70%); }
  .route { grid-template-columns: 1fr; gap: 34px; max-width: 420px; margin-left: auto; margin-right: auto; }
  .route::before { left: 11px; right: auto; top: 12px; bottom: 12px; border-top: 0; border-left: 3px dashed var(--turquesa); }
  .route__stop { text-align: left; padding-left: 52px; }
  .route__dot { position: absolute; left: 0; top: 4px; margin: 0; }
  .route__stop p { margin: 0; max-width: none; }
  .postcard { grid-template-columns: 1fr; }
  .postcard::after { display: none; }
  .postcard__right { padding-top: 0; }
  .hand-note--pages { bottom: -4%; }
  .includes__pages { margin-bottom: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-sec { background-image: image-set(url("../img/formulario-atardecer-1200.webp") type("image/webp"), url("../img/formulario-atardecer-1200.jpg") type("image/jpeg")); background-position: 58% top; background-size: auto 760px; background-color: var(--noche); }
  .form-sec::before { background: linear-gradient(180deg, rgba(23, 47, 58, .4) 0px, rgba(23, 47, 58, .3) 300px, rgba(38, 70, 83, 1) 760px); }
  .btn--small { padding: 9px 16px; font-size: .85rem; }
  body { font-size: 1rem; }
  .nav__inner { padding-top: 10px; padding-bottom: 10px; }
  .nav__logo { font-size: 1.75rem; }
  .hero { min-height: 0; align-content: start; background: var(--noche); }
  .hero__photo { position: relative; inset: auto; height: 74svh; min-height: 460px; }
  .hero__photo img { position: absolute; object-position: 64% 50%; }
  .hero::before { bottom: auto; height: 74svh; min-height: 460px; background: linear-gradient(180deg, rgba(23, 47, 58, .72) 0%, rgba(23, 47, 58, .4) 30%, rgba(23, 47, 58, .05) 48%, rgba(23, 47, 58, 0) 70%, rgba(38, 70, 83, 1) 100%); }
  .hero__brand { position: absolute; top: 0; padding-top: 92px; }
  .hero__body { padding-top: 8px; padding-bottom: 48px; }
  .hero__facts { flex-direction: column; gap: 8px; }
  .trip-form { grid-template-columns: 1fr; }
  .postcard__stamp { width: 92px; height: 92px; top: -30px; }
  .postcard__label { padding-right: 84px; }
  .postcard__stamp span { font-size: 1.2rem; }
}
@media (max-width: 350px) {
  .nav .btn--small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Página legal ---------- */
.legal-page .nav { position: sticky; }
.legal { padding: 56px 0 96px; }
.legal .h2 { margin-bottom: 6px; }
.legal__date { color: var(--noche-suave); font-size: .92rem; margin-bottom: 28px; }
.legal h2 { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; margin: 36px 0 10px; }
.legal p { margin-bottom: 12px; max-width: 68ch; }
.legal ul { padding-left: 1.2em; margin: 0 0 12px; max-width: 68ch; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--coral); }
.legal__back { margin-top: 40px; }

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms),
    translate .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* las páginas del PDF caen como hojas y se acomodan */
.js .page-shot.reveal { translate: 0 40px; rotate: -6deg; transition-property: opacity, translate, rotate; transition-duration: 1s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
.js .page-shot--front.reveal { rotate: 7deg; }
.js .page-shot.reveal.is-in { rotate: 0deg; translate: 0 0; }

/* el sello se estampa */
.js .postcard__stamp.reveal {
  translate: 0 0; scale: 1.7; opacity: 0;
  transition: opacity .35s ease var(--d, 0ms), scale .55s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0ms);
}
.js .postcard__stamp.reveal.is-in { scale: 1; opacity: 1; }

/* la foto de portada se mueve más lento que la página */
.hero__photo img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; translate: none !important; rotate: none !important; scale: none !important; }
  .hero__photo img { transform: none !important; }
}
