/* Inti Trails — demo de oddfox.app
   Paleta: negro andino, piedra, terracota, verde de altura y blanco. */
/* Tipografías servidas desde el propio sitio (licencia SIL Open Font License) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("/fonts/cormorant.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/inter-tight.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0E0F0C;
  --stone: #D9D2C3;
  --terra: #C2683C;
  --moss: #5C7A52;
  --bone: #F6F3EC;

  /* Derivados para contraste AA */
  --terra-ink: #9A4A24;      /* texto terracota sobre fondos claros (5.2:1) */
  --terra-glow: #EAAE88;     /* texto terracota sobre vidrio oscuro (5:1+) */
  --moss-ink: #3F5A37;       /* texto verde sobre fondos claros */
  --stone-dim: #CDC6B7;
  --glass: rgba(14, 15, 12, 0.76);
  --glass-line: rgba(246, 243, 236, 0.12);

  --paper-bg: var(--bone);
  --paper-fg: var(--ink);
  --paper-soft: #4A4A42;
  --paper-band: var(--stone);
  --paper-line: rgba(14, 15, 12, 0.14);
  --paper-icon: var(--moss);
  --paper-accent: var(--terra-ink);

  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-text: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
  color-scheme: dark light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper-bg: #15160F;
    --paper-fg: var(--bone);
    --paper-soft: #C9C2B3;
    --paper-band: #1E1F17;
    --paper-line: rgba(246, 243, 236, 0.14);
    --paper-icon: #9DB592;
    --paper-accent: var(--terra-glow);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terra-glow); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: calc(12px + var(--safe-top)); z-index: 100;
  padding: 10px 16px; background: var(--bone); color: var(--ink); border-radius: 999px;
  text-decoration: none; font-weight: 600; transform: translateY(-160%);
  transition: transform .2s;
}
.skip:focus { transform: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + var(--safe-top)) var(--gutter) 14px;
  transition: background-color .4s, backdrop-filter .4s;
}
.topbar.is-solid { background: rgba(14, 15, 12, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); }
.brand__mark { width: 26px; height: 26px; color: var(--terra-glow); }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; letter-spacing: .01em; line-height: 1; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(14, 15, 12, 0.55); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lang__btn {
  min-width: 40px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--stone); font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: background-color .25s, color .25s;
}
.lang__btn[aria-pressed="true"] { background: var(--bone); color: var(--ink); }

/* ---------- Botón principal (única acción: reservar por WhatsApp) ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--terra); color: var(--ink);
  font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: .005em;
  transition: background-color .25s, transform .25s var(--ease-out);
}
.cta:hover { background: #D27B4F; }
.cta:active { transform: scale(.98); }
.cta__icon { width: 20px; height: 20px; flex: none; }
.cta--small { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.cta--small .cta__icon { width: 18px; height: 18px; }
.cta--large { min-height: 58px; padding: 16px 30px; font-size: 1.08rem; }

/* ---------- Viaje (mapa fijo + capítulos) ---------- */
.journey { position: relative; height: calc(var(--journey-units, 12) * 100svh); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ink); }
/* Más específico que .maplibregl-map (position: relative), que se carga después */
.stage > .stage__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__map canvas { outline: none; }

.stage__hero { position: absolute; inset: 0; z-index: 2; pointer-events: none; will-change: opacity, transform; }
.stage__hero picture, .stage__hero img { width: 100%; height: 100%; }
.stage__hero img { object-fit: cover; object-position: 68% 40%; }
.stage__hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 15, 12, 0.62) 0%, rgba(14, 15, 12, 0.18) 48%, rgba(14, 15, 12, 0) 70%),
    linear-gradient(0deg, rgba(14, 15, 12, 0.45) 0%, rgba(14, 15, 12, 0) 30%);
}

.static-map { display: none; }

.stage__loader {
  position: absolute; left: 50%; bottom: calc(132px + var(--safe-bottom)); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: translateX(-50%); color: var(--stone); font-size: .84rem;
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.is-loading-map .stage__loader { opacity: 1; }
.loader__line { position: relative; width: 140px; height: 2px; background: rgba(217, 210, 195, 0.25); overflow: hidden; border-radius: 2px; }
.loader__fill { position: absolute; inset: 0; background: var(--terra); transform-origin: left; transform: scaleX(var(--load, .08)); transition: transform .6s var(--ease-out); }

.chapters { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.chapter {
  position: absolute; left: var(--gutter); top: calc(50% - 44px);
  width: min(420px, 38vw);
  background: var(--glass); color: var(--bone);
  border: 1px solid var(--glass-line); border-radius: 18px; overflow: hidden;
  backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate3d(0, calc(-50% + 28px), 0);
  transition: opacity .55s ease, transform .9s var(--ease-out), visibility 0s linear .9s;
}
.chapter.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate3d(0, -50%, 0);
  transition: opacity .7s ease .08s, transform 1s var(--ease-out) .08s, visibility 0s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chapter { background: rgba(14, 15, 12, 0.92); }
}
.chapter__photo { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #222318; }
.chapter__photo img { width: 100%; height: 100%; object-fit: cover; }
.chapter__body { padding: 22px 26px 26px; }
.chapter__day {
  margin: 0 0 2px; font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: 1.3rem; line-height: 1.2; color: var(--terra-glow);
}
.chapter__title {
  margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(2.1rem, 3.2vw, 2.9rem); line-height: 1;
}
.chapter__alt {
  display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0;
  font-size: .84rem; color: var(--stone); font-variant-numeric: tabular-nums;
}
.chapter__alt svg { width: 16px; height: 16px; color: var(--terra-glow); }
.chapter__text { margin: 12px 0 0; color: var(--bone); max-width: 38ch; }
.chapter__lead { margin: 14px 0 0; font-size: 1.12rem; color: var(--bone); }
.chapter__includes {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 0; padding: 16px 0 0;
  list-style: none; border-top: 1px solid var(--glass-line); font-size: .84rem; color: var(--stone);
}
.chapter__includes li { display: inline-flex; align-items: center; gap: 7px; }
.chapter__includes svg { width: 18px; height: 18px; color: #A9C29E; flex: none; }
.chapter .cta { margin-top: 20px; width: 100%; }

.chapter--intro { width: min(560px, 46vw); background: rgba(14, 15, 12, 0.64); }
.chapter--intro .chapter__body { padding: 30px 32px 30px; }
.chapter--intro .chapter__title { font-size: clamp(2.8rem, 5.2vw, 4.8rem); line-height: .96; letter-spacing: -.015em; }
.chapter__hint { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; font-size: .82rem; color: var(--stone); }
.chapter__hint-line { position: relative; width: 44px; height: 1px; background: rgba(217, 210, 195, 0.35); overflow: hidden; }
.chapter__hint-line::after { content: ""; position: absolute; inset: 0; background: var(--terra-glow); transform: translateX(-100%); animation: hint 2.4s var(--ease-out) infinite; }
@keyframes hint { 60%, 100% { transform: translateX(100%); } }

.stage__explore {
  position: absolute; right: var(--gutter); bottom: calc(132px + var(--safe-bottom)); z-index: 4;
  max-width: 300px; margin: 0; padding: 12px 16px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--bone); font-size: .84rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease-out); pointer-events: none;
}
.is-exploring .stage__explore { opacity: 1; transform: none; }

/* Marcadores del mapa */
/* MapLibre controla la opacidad del contenedor (relieve que tapa); la nuestra va en los hijos */
.marker { display: flex; align-items: center; gap: 10px; pointer-events: none; }
.marker > * { opacity: 0; transition: opacity .6s ease; }
.marker.is-on > * { opacity: 1; }
.marker__dot { position: relative; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 2px var(--bone); }
.marker__dot::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid var(--bone);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(3.2); opacity: 0; } }
.marker__label {
  display: flex; flex-direction: column; padding: 6px 11px 7px; border-radius: 9px;
  background: rgba(14, 15, 12, 0.8); border: 1px solid var(--glass-line); white-space: nowrap;
}
.marker__name { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; line-height: 1.1; color: var(--bone); }
.marker__alt { font-size: .72rem; color: var(--stone); font-variant-numeric: tabular-nums; }

.maplibregl-ctrl-top-right { top: calc(70px + var(--safe-top)) !important; right: calc(var(--gutter) - 10px) !important; }
.maplibregl-ctrl-attrib { font-family: var(--f-text); }
.maplibregl-ctrl-group { background: var(--bone); }

/* ---------- Perfil de altitud ---------- */
.altitude {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(16px + var(--safe-bottom)); z-index: 30;
  display: grid; grid-template-columns: 1fr minmax(180px, 260px); align-items: center; gap: 28px;
  padding: 14px 22px 12px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .5s, transform .6s var(--ease-out), visibility 0s linear .6s;
}
.altitude.is-visible:not(.is-hidden-end) { opacity: 1; visibility: visible; transform: none; transition: opacity .5s, transform .6s var(--ease-out), visibility 0s; }
.altitude__toggle { display: none; }
.altitude__panel { position: relative; padding-bottom: 30px; }
.altitude__chart { width: 100%; height: 52px; overflow: visible; }
.altitude__ghost { fill: none; stroke: rgba(217, 210, 195, 0.28); stroke-width: 1.25; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.altitude__line { fill: none; stroke: var(--terra-glow); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.altitude__dot {
  position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--bone); box-shadow: 0 0 0 4px rgba(194, 104, 60, 0.45);
  transform: translate3d(var(--dx, 0px), var(--dy, 46px), 0);
}
.altitude__stops { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; margin: 0; padding: 0; list-style: none; font-size: .72rem; color: var(--stone-dim); }
.altitude__stops li { position: absolute; top: 0; display: flex; gap: 5px; white-space: nowrap; transform: translateX(-50%); transition: color .3s; }
.altitude__stops li:first-child { transform: none; }
.altitude__stops li:last-child { transform: translateX(-100%); }
.altitude__stops li.is-here { color: var(--bone); }
.altitude__stops b { font-weight: 600; font-variant-numeric: tabular-nums; }
.altitude__tip { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 1.12rem; line-height: 1.3; color: var(--bone); }

/* ---------- Secciones de papel ---------- */
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.paper {
  position: relative; background: var(--paper-bg); color: var(--paper-fg);
  padding: clamp(80px, 12vw, 150px) 0;
}
.includes, .faq, .price { overflow: hidden; }
/* Curvas de nivel: se dibujan con el scroll (ver main.js) */
.contours {
  position: absolute; right: -120px; top: -60px; width: 760px; height: auto; pointer-events: none;
  fill: none; stroke: #8A8270; stroke-opacity: .2; stroke-width: 1;
}
.section-title {
  margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1;
}
.section-sub { margin: 18px 0 0; max-width: 34ch; font-size: 1.08rem; color: var(--paper-soft); }

.includes__grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 32px; }
.includes .section-head { grid-column: 1 / span 5; }
.inc-list {
  grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px;
  margin: 0; padding: 0; list-style: none;
}
.inc-list li {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 0;
  border-top: 1px solid var(--paper-line); font-size: 1.04rem;
}
.inc-list svg { width: 24px; height: 24px; flex: none; color: var(--paper-icon); margin-top: 1px; }
.exc { grid-column: 6 / -1; }
.exc__title { margin: 0 0 6px; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.5rem; color: var(--paper-accent); }
.exc-list { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding: 0; list-style: none; color: var(--paper-soft); }
.exc-list li { display: inline-flex; align-items: center; gap: 8px; }
.exc-list svg { width: 18px; height: 18px; }

.price { background: var(--paper-band); padding: clamp(70px, 10vw, 120px) 0; }
.price__inner { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: clamp(16px, 3vw, 40px); }
.price__from { grid-column: 1; grid-row: 1; margin: 0 0 .6em; font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.price__amount {
  grid-column: 1 / -1; grid-row: 2; margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(5.2rem, 17vw, 13rem); line-height: .82; letter-spacing: -.03em; font-variant-numeric: lining-nums;
}
.price__cur { font-size: .32em; letter-spacing: 0; margin-right: .18em; vertical-align: .9em; font-weight: 500; }
.price__per { grid-column: 1 / -1; grid-row: 3; margin: 18px 0 0; font-size: 1.12rem; }
.price__note { grid-column: 1 / -1; grid-row: 4; margin: 6px 0 0; font-size: .9rem; color: var(--paper-soft); }

.faq__grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.faq .section-title { grid-column: 1 / span 4; }
.faq__list { grid-column: 5 / -1; border-bottom: 1px solid var(--paper-line); }
.faq__item { border-top: 1px solid var(--paper-line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 24px; height: 24px; flex: none; color: var(--paper-accent); transition: transform .35s var(--ease-out); }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__item p { margin: -6px 0 26px; max-width: 62ch; color: var(--paper-soft); font-size: 1.02rem; line-height: 1.65; }

/* ---------- Reserva final ---------- */
.book { position: relative; min-height: 88svh; display: grid; align-items: end; overflow: hidden; background: var(--ink); }
.book__bg, .book__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.book__bg img { object-fit: cover; object-position: 50% 45%; }
.book::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14, 15, 12, 0.92) 0%, rgba(14, 15, 12, 0.55) 45%, rgba(14, 15, 12, 0.15) 100%);
}
.book__inner { position: relative; z-index: 1; padding: 0 0 clamp(64px, 10vw, 120px); }
.book__title { margin: 0; max-width: 14ch; font-family: var(--f-display); font-weight: 600; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; letter-spacing: -.02em; }
.book__text { margin: 22px 0 30px; max-width: 42ch; font-size: 1.1rem; color: var(--stone); }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--stone); padding: 56px 0 calc(40px + var(--safe-bottom)); font-size: .9rem; border-top: 1px solid var(--glass-line); }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 32px; }
.footer p { margin: 0 0 10px; }
.footer a { color: var(--bone); text-underline-offset: 3px; }
.footer__brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; color: var(--bone); }
.footer__brand svg { width: 22px; height: 22px; color: var(--terra-glow); }
.footer__legal { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Cinta de lugares (se desliza con el scroll) ---------- */
.ribbon {
  position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0; background: var(--ink);
  font-family: var(--f-display); font-weight: 600; line-height: 1; letter-spacing: -.01em;
}
.ribbon__row { display: flex; align-items: center; gap: .32em; width: max-content; white-space: nowrap; will-change: transform; }
.ribbon__row--names { font-size: clamp(3.4rem, 9vw, 8.5rem); color: var(--bone); }
.ribbon__row--alts {
  margin-top: .12em; font-size: clamp(2.6rem, 6.6vw, 6.2rem); font-style: italic; font-weight: 500;
  color: transparent; -webkit-text-stroke: 1px rgba(234, 174, 136, 0.75); font-variant-numeric: lining-nums;
}
.ribbon__sun { width: .42em; height: .42em; flex: none; color: var(--terra); }
.ribbon__row--alts .ribbon__sun { color: var(--moss); }
.motion .ribbon__row--names { transform: translate3d(calc(var(--sp, 0) * -32%), 0, 0); }
.motion .ribbon__row--alts { transform: translate3d(calc((var(--sp, 0) - 1) * 22%), 0, 0); }

/* ---------- Activar / reducir animaciones ---------- */
.motion-offer { display: none; }
.can-motion.is-static .motion-offer { display: block; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--glass-line); }
.motion-offer__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px 10px 14px;
  border: 1px solid rgba(246, 243, 236, 0.5); border-radius: 999px; background: rgba(14, 15, 12, 0.4);
  color: var(--bone); font-weight: 600; font-size: .95rem; cursor: pointer; transition: background-color .25s, border-color .25s;
}
.motion-offer__btn:hover { background: rgba(246, 243, 236, 0.12); border-color: var(--bone); }
.motion-offer__btn svg { width: 18px; height: 18px; color: var(--terra-glow); }
.motion-offer__note { margin: 10px 0 0; font-size: .82rem; color: var(--stone); max-width: 44ch; }
.footer__motion {
  align-self: flex-start; padding: 0; border: 0; background: none; color: var(--bone); font-size: .9rem;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- Animaciones (solo con html.motion; main.js decide) ---------- */
/* Títulos: cada palabra sube desde una máscara */
.motion .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .02em .1em; margin: -.12em -.02em -.1em; }
.motion .w > span {
  display: inline-block; transform: translate3d(0, 108%, 0);
  transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--w, 0) * 55ms);
}
.motion .split.is-in .w > span,
.motion .chapter.is-active .w > span { transform: none; }
.motion .chapter .split { --d: .16s; }
/* Arranque: la portada se pinta desde el primer cuadro (opacidad casi nula, no 0) y luego entra */
.motion .is-booting .chapter.is-active .w > span { transform: translate3d(0, 108%, 0); }
.motion .is-booting .chapter--intro .w { overflow: visible; }
.motion .is-booting .chapter--intro .w > span { opacity: .01; }
.motion .chapter--intro .w > span { transition: transform 1.05s var(--ease-out), opacity .7s ease; transition-delay: calc(var(--d, 0s) + var(--w, 0) * 55ms); }

/* Tarjetas: la foto se abre como cortina y los textos entran en cascada */
.motion .chapter__photo { clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-out); }
.motion .chapter.is-active .chapter__photo { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out) .1s; }
.motion .chapter__photo img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
.motion .chapter.is-active .chapter__photo img { transform: none; }
.motion .chapter .st { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .35s ease, transform .5s var(--ease-out), background-color .25s; }
.motion .chapter.is-active .st {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .9s var(--ease-out), background-color .25s;
  transition-delay: calc(.24s + var(--i, 0) * 70ms), calc(.24s + var(--i, 0) * 70ms), 0s;
}
.motion .is-booting .chapter .st { opacity: .01; transform: translate3d(0, 14px, 0); }
.motion .is-booting .chapter--intro.is-active { opacity: .01; transform: translate3d(0, calc(-50% + 22px), 0); }

/* Entrada de la portada */
.motion .stage__hero img { animation: hero-in 2.6s var(--ease-out) both; }
@keyframes hero-in { from { transform: scale(1.12); } }
.motion .topbar { transition: background-color .4s, backdrop-filter .4s, opacity .8s ease .3s, transform 1s var(--ease-out) .3s; }
.motion .is-booting .topbar { opacity: 0; transform: translate3d(0, -14px, 0); }

/* Marcadores del mapa: el punto aparece con rebote y la etiqueta se desliza */
.motion .marker__dot { transform: scale(0); transition: opacity .4s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.motion .marker.is-on .marker__dot { transform: none; }
.motion .marker__label { transform: translate3d(-12px, 0, 0); transition: opacity .6s ease, transform .9s var(--ease-out); }
.motion .marker.is-on .marker__label { transform: none; transition-delay: .18s; }

/* Aparición al hacer scroll */
.motion .has-reveal .reveal {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .8s ease, transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms);
}
.motion .has-reveal .reveal.is-in { opacity: 1; transform: none; }
.motion .inc-list svg { transform: scale(.4) rotate(-25deg); opacity: 0; transition: transform .9s cubic-bezier(.34, 1.56, .64, 1), opacity .5s; transition-delay: calc(.25s + var(--i, 0) * 90ms); }
.motion .inc-list .is-in svg { transform: none; opacity: 1; }
.motion .inc-list li { background: linear-gradient(var(--paper-line), var(--paper-line)) top left / 0% 1px no-repeat; border-top-color: transparent; }
.motion .inc-list li.is-in { background-size: 100% 1px; transition: opacity .8s ease, transform 1.1s var(--ease-out), background-size 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }

/* Precio: el número se desliza mientras sube la cuenta */
.motion .price__amount { transform: translate3d(calc((1 - var(--sp, .5)) * 7vw - 3.5vw), 0, 0); }
.price__num { font-variant-numeric: tabular-nums; }

/* Reserva: la foto se acerca despacio con el scroll */
.motion .book__bg img { transform: scale(calc(1.22 - var(--sp, 0) * .22)) translate3d(0, calc((var(--sp, 0) - .5) * -4%), 0); will-change: transform; }

/* Preguntas: el panel se abre deslizando (navegadores que lo soportan) */
@supports (interpolate-size: allow-keywords) {
  .motion { interpolate-size: allow-keywords; }
  .motion .faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
  .motion .faq__item[open]::details-content { block-size: auto; }
}

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .brand__name { font-size: 1.3rem; }
  .cta--small { width: 40px; padding: 0; }
  .cta--small .cta__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  .stage__hero img { object-position: 74% 30%; }
  .stage__hero::after {
    background: linear-gradient(0deg, rgba(14, 15, 12, 0.78) 0%, rgba(14, 15, 12, 0.25) 50%, rgba(14, 15, 12, 0.1) 100%);
  }
  .chapter, .chapter--intro {
    left: 12px; right: 12px; top: auto; bottom: calc(12px + var(--safe-bottom)); width: auto;
    border-radius: 16px; transform: translate3d(0, 24px, 0);
    max-height: calc(100svh - 150px - var(--safe-top)); overflow: auto;
  }
  .chapter.is-active { transform: none; }
  .chapter:not(.chapter--intro) { display: grid; grid-template-columns: 92px 1fr; }
  .chapter__photo { aspect-ratio: auto; height: 100%; min-height: 100%; grid-row: 1; }
  .chapter__body { padding: 16px 16px 18px; }
  .chapter__day { font-size: 1.1rem; }
  .chapter__title { font-size: 1.85rem; }
  .chapter__alt { margin-top: 8px; font-size: .8rem; }
  .chapter__text { margin-top: 8px; font-size: .94rem; line-height: 1.45; }
  .chapter__includes { margin-top: 12px; padding-top: 12px; gap: 6px 12px; font-size: .78rem; }
  .chapter__includes svg { width: 16px; height: 16px; }
  .chapter .cta { margin-top: 14px; min-height: 46px; }
  .chapter:not(.chapter--intro) .chapter__body { grid-column: 2; }
  .chapter:not(.chapter--intro) .cta { grid-column: 1 / -1; }
  .chapter--intro { background: rgba(14, 15, 12, 0.66); }
  .chapter--intro .chapter__body { padding: 22px 20px 22px; }
  .chapter--intro .chapter__title { font-size: clamp(2.4rem, 11vw, 3.1rem); }
  .is-booting .chapter--intro.is-active { transform: translate3d(0, 22px, 0); }

  .stage__loader { bottom: auto; top: 42%; }
  .stage__explore { left: 12px; right: 12px; top: calc(160px + var(--safe-top)); bottom: auto; max-width: none; }

  .altitude {
    left: 12px; right: auto; top: calc(68px + var(--safe-top)); bottom: auto;
    display: block; padding: 0; border-radius: 999px; max-width: calc(100vw - 24px);
  }
  .altitude__toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px;
    border: 0; background: transparent; color: var(--bone); font-size: .86rem; font-weight: 600;
    font-variant-numeric: tabular-nums; cursor: pointer;
  }
  .altitude__toggle svg { width: 16px; height: 16px; color: var(--terra-glow); }
  .altitude__panel, .altitude__tip { display: none; }
  .altitude.is-open { border-radius: 16px; width: calc(100vw - 24px); }
  .altitude.is-open .altitude__panel { display: block; margin: 0 16px; }
  .altitude.is-open .altitude__tip { display: block; padding: 4px 16px 14px; font-size: 1rem; }
  .altitude__stops { font-size: .62rem; }
  .altitude__stops li span { display: none; }
  .maplibregl-ctrl-top-right { top: calc(114px + var(--safe-top)) !important; right: 2px !important; }

  .includes__grid, .faq__grid { grid-template-columns: 1fr; gap: 28px; }
  .includes .section-head, .inc-list, .exc, .faq .section-title, .faq__list { grid-column: 1; }
  .inc-list { grid-template-columns: 1fr; }
  .contours { width: 520px; right: -200px; top: -40px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .altitude { grid-template-columns: 1fr; gap: 6px; padding: 12px 20px 10px; }
  .altitude__tip { font-size: 1rem; }
  .altitude__stops li span { display: none; }
  .chapter { width: min(400px, 46vw); top: calc(50% - 60px); }
  .chapter--intro { width: min(520px, 60vw); }
  .inc-list { grid-template-columns: 1fr; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .chapter__photo { aspect-ratio: 21 / 9; }
  .chapter { top: calc(50% - 50px); }
}

/* ---------- Modo estático (sin WebGL, sin clave o con movimiento reducido) ---------- */
.is-static .journey { height: auto; }
.is-static .stage { position: relative; height: auto; overflow: visible; }
.is-static .stage__map, .is-static .stage__loader, .is-static .stage__explore { display: none; }
.is-static .stage__hero { position: relative; height: 100svh; min-height: 560px; opacity: 1; transform: none; }
.is-static .chapters { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0 var(--gutter) 64px; max-width: 1200px; margin: 0 auto; pointer-events: auto; }
.is-static .chapter { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; max-height: none; overflow: hidden; opacity: 1; visibility: visible; transform: none; transition: none; pointer-events: auto; background: #1A1B14; backdrop-filter: none; -webkit-backdrop-filter: none; display: block; }
.is-static .chapter__photo { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
.is-static .chapter--intro { position: absolute; z-index: 3; left: var(--gutter); top: calc(50svh + 40px); transform: translateY(-50%); width: min(560px, calc(100% - 2 * var(--gutter))); background: rgba(14, 15, 12, 0.55); }
.is-static .chapter__hint { display: none; }
.is-static .static-map { display: block; margin: 0 auto; padding: 72px var(--gutter) 48px; max-width: 1200px; }
.static-map__frames { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 32px; align-items: center; }
.static-map svg { width: 100%; height: auto; }
.static-map figcaption { margin-top: 20px; max-width: 60ch; color: var(--stone); font-size: .95rem; }
.sm-land { fill: #1E2018; stroke: rgba(217, 210, 195, 0.45); stroke-width: 1.2; }
.sm-route { fill: none; stroke: var(--terra-glow); stroke-width: 2; stroke-dasharray: 5 5; }
.sm-zoom { fill: none; stroke: var(--bone); stroke-width: 1; }
.sm-inset-bg { fill: #1E2018; stroke: rgba(217, 210, 195, 0.3); }
.sm-road { fill: none; stroke: var(--stone); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.sm-rail { fill: none; stroke: var(--terra-glow); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.sm-dot { fill: var(--stone); }
.sm-dot--main { fill: var(--terra); stroke: var(--bone); stroke-width: 2; }
.sm-label { fill: var(--bone); font-family: var(--f-text); font-size: 13px; }
.is-static .altitude { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 0 auto 80px; width: min(1200px, 100% - 2 * var(--gutter)); max-width: none; opacity: 1; visibility: visible; transform: none; border-radius: 16px; display: grid; padding: 14px 22px 12px; }
.is-static .altitude__toggle, .is-static .altitude__dot { display: none; }
.is-static .altitude__panel, .is-static .altitude__tip { display: block; }
@media (max-width: 760px) {
  .is-static .chapters { grid-template-columns: 1fr; }
  .is-static .chapter--intro { left: 12px; right: 12px; top: calc(max(640px, 100svh) - 16px); bottom: auto; width: auto; transform: translateY(-100%); }
  .is-static .stage__hero { min-height: 640px; }
  .static-map__frames { grid-template-columns: 1fr; }
  .is-static .altitude { display: block; }
  .is-static .altitude__stops li span { display: inline; }
  .is-static .altitude__stops li:nth-child(2), .is-static .altitude__stops li:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Páginas legales y 404 ---------- */
.page-legal, .page-404 { background: var(--paper-bg); color: var(--paper-fg); }
.page-404 { background: var(--ink); color: var(--bone); }
.legal { padding: calc(120px + var(--safe-top)) 0 96px; max-width: 760px; }
.legal .section-title { font-size: clamp(2.4rem, 6vw, 4rem); }
.legal__meta { color: var(--paper-soft); font-size: .92rem; margin: 14px 0 40px; }
.legal section { margin: 0 0 30px; }
.legal h2 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; line-height: 1.2; }
.legal p, .legal li { color: var(--paper-soft); line-height: 1.7; }
.legal a { color: var(--paper-accent); text-underline-offset: 3px; }
.legal strong { color: var(--paper-fg); }
.legal ul { padding-left: 1.2em; }
.legal code { font-size: .9em; padding: 1px 5px; border-radius: 4px; background: var(--paper-line); }
.legal__en { margin-top: 56px !important; padding-top: 32px; border-top: 1px solid var(--paper-line); }
.notfound { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.notfound__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .45; }
.notfound::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 15, 12, .9), rgba(14, 15, 12, .3)); }
.notfound__inner { position: relative; z-index: 1; padding: 120px 0 80px; }
.notfound__code { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(6rem, 22vw, 15rem); line-height: .8; color: var(--terra-glow); }
.notfound__title { margin: 12px 0 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; }
.notfound__text { max-width: 46ch; margin: 16px 0 0; color: var(--stone); }
.notfound__home { margin-top: 32px; }
