/* ════════════════════════════════════════════════════════════════════════════
   XO VIAJES — design system and chapters

   One system for the whole film: a single type scale, one spacing rhythm,
   one motion vocabulary. Chapters differ in palette and composition, never
   in the underlying rules.

   Resting state is the finished page. Everything that scroll drives is only
   switched on under html.is-cinematic, which js/scenes.js adds after GSAP has
   loaded and only when motion is allowed. Without it the page reads top to
   bottom as plain, complete content.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --navy: #0d1f3c;
  --navy-2: #17283c;
  --ink: #070f1d;
  --night: #04070d;
  --ivory: #f6f3ec;
  --paper: #efe9dd;
  --gold: #e8c97a;
  --gold-ink: #8a6a28;          /* gold for text on ivory — 4.8:1 */
  --slate: #52616d;
  --rose: #ecc3bb;              /* Viajes de XV only */
  --plum: #1a1324;
  --line-light: rgba(246, 243, 236, .18);
  --line-dark: rgba(13, 31, 60, .16);

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale — display sizes lead; body text stays calm. */
  --t-display: clamp(3.3rem, 8.2vw, 9.6rem);
  --t-h1: clamp(2.9rem, 6.4vw, 7.4rem);
  --t-h2: clamp(2.3rem, 4.6vw, 5rem);
  --t-h3: clamp(1.7rem, 2.6vw, 2.7rem);
  --t-lead: clamp(1.02rem, 1.2vw, 1.2rem);
  --t-body: .95rem;
  --t-small: .8rem;
  --t-label: .68rem;

  /* Rhythm */
  --gutter: clamp(20px, 5.5vw, 96px);
  --section: clamp(104px, 14vw, 210px);
  --measure: 34rem;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-film: cubic-bezier(.65, 0, .35, 1);
  --d1: .35s;
  --d2: .7s;
  --d3: 1.2s;

  --nav-h: 76px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--navy); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.courses :focus-visible, .services :focus-visible, .faq :focus-visible,
.modal-box :focus-visible, .trip-form :focus-visible { outline-color: var(--navy); }

.sr-only {
  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-link {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 12px 18px;
  font-size: var(--t-small); font-weight: 500;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* ── Type primitives ───────────────────────────────────────────────────── */
.eyebrow, .label, .chapter-mark {
  font-family: var(--sans);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 16px; color: var(--gold); }
.eyebrow::before { content: ''; width: 44px; height: 1px; background: currentColor; }
.label { color: var(--gold-ink); }
.label--gold { color: var(--gold); }

.chapter-mark { display: inline-flex; align-items: baseline; gap: 14px; color: var(--gold); }
.chapter-mark span {
  font-family: var(--serif); font-size: 1.15rem; font-style: italic;
  letter-spacing: .05em; text-transform: none; font-weight: 400;
}
.chapter-mark--ink { color: var(--gold-ink); }

.section-title {
  font-family: var(--serif);
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.012em;
}
.section-title em { color: var(--gold-ink); }
.section-lead { font-size: var(--t-lead); max-width: var(--measure); color: var(--slate); }

/* ── Buttons and links ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  border-radius: 2px;
  transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease),
              transform var(--d1) var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--gold, .btn--wa { background: var(--gold); color: var(--navy); }
.btn--gold:hover, .btn--wa:hover { background: var(--ivory); }
.btn--navy { background: var(--navy); color: var(--ivory); }
.btn--navy:hover { background: var(--ink); }
.btn--rose { background: var(--rose); color: var(--plum); }
.btn--rose:hover { background: var(--ivory); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivory);
}
.link-arrow::after {
  content: ''; width: 34px; height: 1px; background: currentColor;
  transition: width var(--d2) var(--ease-out);
}
.link-arrow:hover::after { width: 56px; }
.link-arrow--ink { color: var(--navy); }

/* ════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--ivory);
  transition: color var(--d2) var(--ease), opacity var(--d2) var(--ease);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav[data-tone="dark"] { color: var(--navy); }
/* The mark: navy + gold artwork over the ivory chapters, the same artwork
   with an ivory X and wordmark over film and night. Both are stacked and
   cross-fade with the bar's tone. */
.nav__brand { position: relative; display: block; height: 52px; aspect-ratio: 386 / 300; }
.nav__logo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity var(--d2) var(--ease);
}
/* A soft halo, never a box, keeps the gold O off bright skies and sunsets. */
.nav__logo--light { filter: drop-shadow(0 1px 6px rgba(4, 7, 13, .55)) drop-shadow(0 0 14px rgba(4, 7, 13, .3)); }
.nav__logo--ink { opacity: 0; }
.nav[data-tone="dark"] .nav__logo--ink { opacity: 1; }
.nav[data-tone="dark"] .nav__logo--light { opacity: 0; }
.menu-open .nav .nav__logo--light { opacity: 1; }
.menu-open .nav .nav__logo--ink { opacity: 0; }
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__wa {
  font-size: .68rem; font-weight: 400; letter-spacing: .22em; opacity: .78;
  transition: opacity var(--d1) var(--ease);
}
.nav__wa:hover { opacity: 1; }
.nav__burger {
  position: relative; width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-content: center; gap: 6px;
}
.nav__burger span {
  display: block; width: 26px; height: 1px; background: currentColor;
  transition: transform var(--d2) var(--ease-out), opacity var(--d1) var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-open .nav { color: var(--ivory); }

/* Hidden during the opening shot so the first frame is wordmark + burger only. */
.nav.is-quiet .nav__wa { opacity: 0; pointer-events: none; }

.menu { position: fixed; inset: 0; z-index: 55; visibility: hidden; }
.menu.is-open { visibility: visible; }
.menu__veil {
  position: absolute; inset: 0; background: rgba(4, 7, 13, .55);
  opacity: 0; transition: opacity var(--d2) var(--ease);
}
.menu.is-open .menu__veil { opacity: 1; }
.menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 40px 56px;
  background: linear-gradient(180deg, rgba(7, 15, 29, .97), rgba(13, 31, 60, .97));
  border-left: 1px solid var(--line-light);
  transform: translateX(24px); opacity: 0;
  transition: transform var(--d2) var(--ease-out), opacity var(--d2) var(--ease);
}
.menu.is-open .menu__panel { transform: none; opacity: 1; }
.menu__list { display: grid; gap: 6px; }
.menu__list a {
  display: flex; align-items: baseline; gap: 22px;
  padding: 8px 0;
  font-family: var(--serif); font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-weight: 300; line-height: 1.15;
  color: rgba(246, 243, 236, .86);
  transition: color var(--d1) var(--ease), transform var(--d2) var(--ease-out);
}
.menu__list a span { width: 26px; font-size: .95rem; font-style: italic; color: var(--gold); }
.menu__list a:hover { color: var(--ivory); transform: translateX(6px); }
.menu__foot { display: grid; gap: 6px; font-size: var(--t-small); color: rgba(246, 243, 236, .6); }
.menu__wa { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); margin-bottom: 10px; font-weight: 400; letter-spacing: .06em; }
.menu__wa svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .menu__panel { padding-left: var(--gutter); border-left: 0; }
}

/* ── WhatsApp float ────────────────────────────────────────────────────── */
.wa-float {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  transition: transform var(--d1) var(--ease);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.06); }

/* ════════════════════════════════════════════════════════════════════════
   PROLOGUE — hero, flight, title card
   ════════════════════════════════════════════════════════════════════════ */
.prologue { position: relative; background: var(--night); }
.prologue__stage { position: relative; }

.hero-media, .hero-shade { position: absolute; inset: 0 0 auto 0; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-media picture, .hero-media img, .hero-media__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media__video { opacity: 0; transition: opacity 1s linear; }
.hero-media__video.is-on { opacity: 1; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 15, 29, .82) 0%, rgba(7, 15, 29, .5) 38%, rgba(7, 15, 29, 0) 70%),
    linear-gradient(0deg, rgba(4, 7, 13, .7) 0%, rgba(4, 7, 13, 0) 34%),
    linear-gradient(180deg, rgba(4, 7, 13, .45) 0%, rgba(4, 7, 13, 0) 22%);
}

.hero-copy {
  position: relative; z-index: 3;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 160px;
  max-width: 1100px;
}
.hero-copy__title {
  font-family: var(--serif); font-size: var(--t-display); font-weight: 300;
  line-height: .94; letter-spacing: -.02em;
}
.hero-copy__title em { color: var(--gold); font-weight: 300; }
.hero-copy__lead { max-width: 30rem; font-size: var(--t-lead); color: rgba(246, 243, 236, .78); }
.hero-copy__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-top: 6px; }

.hero-foot {
  position: absolute; z-index: 3; left: 0; right: 0;
  top: calc(max(100svh, 560px) - 92px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter) calc(var(--gutter) + 72px);
  font-size: .64rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(246, 243, 236, .66);
}
.hero-foot__cue { display: inline-flex; align-items: center; gap: 14px; }
.hero-foot__cue span { position: relative; width: 1px; height: 38px; background: rgba(246, 243, 236, .3); overflow: hidden; }
.hero-foot__cue span::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold);
  animation: cue 2.4s var(--ease-film) infinite;
}
@keyframes cue { to { top: 100%; } }

.flight { display: none; }

.title-card {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 26px;
  padding: var(--section) var(--gutter);
  background: var(--night);
}
.title-card__title {
  font-family: var(--serif); font-size: var(--t-h1); font-weight: 300; line-height: .98; letter-spacing: -.015em;
}
.title-card__title em { color: var(--gold); }
.title-card__lead { max-width: 30rem; color: rgba(246, 243, 236, .66); font-size: var(--t-lead); }

/* Cinematic prologue: one tall section, one sticky stage. */
.is-cinematic .prologue { height: 380vh; }
.is-cinematic .prologue__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
}
.is-cinematic .hero-media, .is-cinematic .hero-shade { height: 100%; }
.is-cinematic .hero-copy { min-height: 100%; }
.is-cinematic .hero-foot { top: auto; bottom: 34px; }
.is-cinematic .flight {
  display: block; position: absolute; inset: 0; z-index: 2; opacity: 0; background: #000;
}
.flight__poster, .flight__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flight__black { position: absolute; inset: 0; background: #000; opacity: 0; }
.is-cinematic .title-card {
  position: absolute; inset: 0; background: transparent; opacity: 0; visibility: hidden;
}
@media (max-width: 767px) {
  .is-cinematic .prologue { height: 300vh; }
}

/* ════════════════════════════════════════════════════════════════════════
   CHAPTER I — PAQUETES (the cinema)
   ════════════════════════════════════════════════════════════════════════ */
.packages { position: relative; background: #000; }

/* Resting layout: every package as its own full-bleed frame. */
.pkg { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.pkg__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pkg::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(4, 7, 13, .86) 0%, rgba(4, 7, 13, .42) 38%, rgba(4, 7, 13, 0) 64%),
              linear-gradient(90deg, rgba(4, 7, 13, .5) 0%, rgba(4, 7, 13, 0) 55%);
}
.pkg__body {
  position: relative; z-index: 3;
  width: min(760px, 100%);
  padding: 0 var(--gutter) clamp(56px, 11vh, 120px);
}
.pkg__kicker {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  font-size: var(--t-label); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.pkg__num { font-family: var(--serif); font-size: 1.15rem; font-style: italic; letter-spacing: 0; text-transform: none; font-weight: 400; }
.pkg__code { color: rgba(246, 243, 236, .55); letter-spacing: .2em; }
.pkg__title {
  margin-top: 18px;
  font-family: var(--serif); font-size: var(--t-h1); font-weight: 300; line-height: .95; letter-spacing: -.018em;
  text-wrap: balance;
}
.pkg__route {
  margin-top: 22px; max-width: 40rem;
  font-size: .7rem; font-weight: 400; line-height: 1.9; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(246, 243, 236, .7);
}
.pkg__facts {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 0;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-light);
  font-size: var(--t-small); color: rgba(246, 243, 236, .82);
}
.pkg__facts li { padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line-light); }
.pkg__facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.pkg__price strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; color: var(--gold); letter-spacing: .01em; margin-inline: 4px; }
.pkg__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: 30px; }

.cinema__media, .cinema__shade, .cinema__place, .cinema__controls, .cinema__index { display: none; }

/* Live cinema: one screen, one package at a time. */
.cinema.is-live {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: #000;
}
.cinema.is-live .cinema__reel { position: absolute; inset: 0; }
.cinema.is-live .pkg { position: absolute; inset: 0; min-height: 0; visibility: hidden; }
.cinema.is-live .pkg::after { content: none; }
.cinema.is-live .pkg.is-active { visibility: visible; }
.cinema.is-live .cinema__media { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cinema__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.cinema__video.is-on { opacity: 1; }
.cinema__video.is-cut { transition: none; }
.cinema__dip { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .55s var(--ease-film); }
.cinema.is-dipping .cinema__dip { opacity: 1; }
.cinema.is-live .cinema__shade {
  display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(4, 7, 13, .84) 0%, rgba(4, 7, 13, .38) 36%, rgba(4, 7, 13, 0) 60%),
    linear-gradient(90deg, rgba(4, 7, 13, .55) 0%, rgba(4, 7, 13, 0) 52%),
    linear-gradient(180deg, rgba(4, 7, 13, .5) 0%, rgba(4, 7, 13, 0) 20%);
}
.cinema.is-live .pkg__body { z-index: 3; }

/* Body choreography: lines rise in a short stagger on every change. */
.cinema.is-live .pkg__body > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
}
.cinema.is-live .pkg.is-shown .pkg__body > * { opacity: 1; transform: none; }
.cinema.is-live .pkg.is-shown .pkg__body > :nth-child(2) { transition-delay: .08s; }
.cinema.is-live .pkg.is-shown .pkg__body > :nth-child(3) { transition-delay: .18s; }
.cinema.is-live .pkg.is-shown .pkg__body > :nth-child(4) { transition-delay: .28s; }
.cinema.is-live .pkg.is-shown .pkg__body > :nth-child(5) { transition-delay: .38s; }

.cinema.is-live .cinema__place {
  display: block; position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--nav-h) + 26px);
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: rgba(246, 243, 236, .86);
  pointer-events: none;
}
.cinema__place span { display: inline-block; transition: opacity .8s var(--ease), transform 1s var(--ease-out); }
.cinema__place span.is-swapping { opacity: 0; transform: translateY(6px); }
.cinema__place span::before { content: ''; display: inline-block; width: 30px; height: 1px; margin: 0 14px .32em 0; background: var(--gold); vertical-align: middle; }
.cinema__place span:empty::before { display: none; }

.cinema.is-live .cinema__controls {
  display: flex; align-items: center; gap: 6px;
  position: absolute; z-index: 4; right: var(--gutter); bottom: clamp(56px, 11vh, 120px);
}
.cinema__counter { margin-right: 18px; font-family: var(--serif); font-size: 1.5rem; color: var(--ivory); }
.cinema__of { margin-left: 8px; font-size: 1rem; color: rgba(246, 243, 236, .5); }
.cinema__arrow {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--line-light); border-radius: 50%;
  font-size: 1.05rem; color: var(--ivory);
  transition: border-color var(--d1) var(--ease), background-color var(--d1) var(--ease);
}
.cinema__arrow:hover { border-color: var(--gold); background: rgba(232, 201, 122, .1); }

.cinema.is-live .cinema__index {
  display: grid; gap: 2px;
  position: absolute; z-index: 4; right: var(--gutter); bottom: calc(clamp(56px, 11vh, 120px) + 86px);
  text-align: right;
}
.cinema__index button {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 3px 0; min-height: 26px;
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 243, 236, .5);
  transition: color var(--d1) var(--ease);
}
.cinema__index button:hover { color: rgba(246, 243, 236, .9); }
.cinema__index .idx-n { font-family: var(--serif); font-style: italic; font-size: .9rem; letter-spacing: 0; text-transform: none; }
.cinema__index .idx-bar { position: relative; width: 22px; height: 1px; background: rgba(246, 243, 236, .25); overflow: hidden; transition: width .6s var(--ease-out); }
.cinema__index .idx-bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.cinema__index button[aria-current="true"] { color: var(--ivory); }
.cinema__index button[aria-current="true"] .idx-bar { width: 52px; }

/* Arrival: the first package rises out of the flight's black. The chrome
   (index, arrows, place) waits for the title so the shot opens clean. */
.cinema.is-arriving .pkg.is-active .pkg__poster { opacity: 0; }
.cinema.is-live .cinema__controls, .cinema.is-live .cinema__index, .cinema.is-live .cinema__place {
  transition: opacity 1.2s var(--ease) .5s;
}
.cinema.is-arriving .cinema__controls, .cinema.is-arriving .cinema__index, .cinema.is-arriving .cinema__place { opacity: 0; }
.pkg__poster { transition: opacity 1.6s var(--ease); }

.price-notice {
  padding: 26px var(--gutter) 34px;
  font-size: .72rem; color: rgba(246, 243, 236, .45); background: #000; max-width: none;
}

@media (max-width: 1100px) {
  .cinema.is-live .cinema__index { display: none; }
}
@media (max-width: 767px) {
  .cinema.is-live { min-height: 600px; }
  .pkg__title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .pkg__route { font-size: .62rem; letter-spacing: .14em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .pkg__facts li { padding-right: 14px; margin-right: 14px; }
  .pkg__price strong { font-size: 1.4rem; }
  .cinema.is-live .pkg__body { padding-bottom: 104px; }
  .cinema.is-live .cinema__controls { left: var(--gutter); right: var(--gutter); bottom: 30px; justify-content: flex-end; }
  .cinema__counter { margin-right: auto; }
  .cinema__arrow { width: 46px; height: 46px; }
  .cinema.is-live .cinema__place { top: calc(var(--nav-h) + 4px); left: var(--gutter); right: auto; font-size: 1.1rem; }
}
@media (max-height: 760px) and (min-width: 768px) {
  .pkg__title { font-size: clamp(2.6rem, 5.4vw, 5.4rem); }
  .pkg__facts { margin-top: 18px; padding-top: 16px; }
  .pkg__actions { margin-top: 20px; }
  .pkg__route { margin-top: 14px; }
}

/* ════════════════════════════════════════════════════════════════════════
   CHAPTER II — VIAJES DE XV
   Its own world: night plum, blush rose, a lighter, younger rhythm.
   ════════════════════════════════════════════════════════════════════════ */
.xv { position: relative; background: var(--plum); color: var(--ivory); }
.xv .chapter-mark { color: var(--rose); }

.xv-open__stage { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.xv-open__poster, .xv-open__video, .xv-open__clouds {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.xv-open__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.xv-open__video.is-on { opacity: 1; }
.xv-open__clouds { display: none; }
.xv-open__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(26, 19, 36, .92) 0%, rgba(26, 19, 36, .35) 40%, rgba(26, 19, 36, 0) 66%),
    linear-gradient(90deg, rgba(26, 19, 36, .55) 0%, rgba(26, 19, 36, 0) 50%),
    linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 18%);
}
.xv-open__copy {
  position: relative; z-index: 2;
  display: grid; gap: 24px;
  padding: 0 var(--gutter) clamp(64px, 12vh, 130px);
  max-width: 1200px;
}
.xv-open__title {
  font-family: var(--serif); font-size: var(--t-display); font-weight: 300; line-height: .92; letter-spacing: -.02em;
}
.xv-open__title span { display: inline-block; }
.xv-open__title em { color: var(--rose); }
.xv-open__lead { max-width: 30rem; font-size: var(--t-lead); color: rgba(246, 243, 236, .78); }

.is-cinematic .xv-open { height: 640vh; }
.is-cinematic .xv-open__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; }
.is-cinematic .xv-open__clouds { display: block; z-index: 1; }
.is-cinematic .xv-open__shade { z-index: 1; }
.is-cinematic .xv-open__title span { display: block; }
@media (max-width: 767px) {
  .is-cinematic .xv-open { height: 480vh; }
}


/* The voyage: a cruise ship out of the Paris sunset, scrubbed frame by frame
   on the same sticky stage, ending in black. Hidden in the resting page. */
.voyage, .voyage__card { display: none; }
.is-cinematic .voyage {
  display: block; position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden;
  background: #000 url('../assets/scenes/cruise-01/poster.webp') center / cover no-repeat;
}
.voyage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.voyage__black { position: absolute; inset: 0; background: #000; opacity: 0; }
.is-cinematic .xv-open__copy { z-index: 3; }
.is-cinematic .voyage__card {
  display: flex; position: absolute; inset: 0; z-index: 4;
  flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center;
  padding: var(--gutter); opacity: 0; visibility: hidden; pointer-events: none;
}
.voyage__label {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: var(--t-h2); line-height: 1.02; color: var(--rose);
}
.voyage__count {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: var(--t-label); font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(246, 243, 236, .6);
}
.voyage__count::before, .voyage__count::after { content: ''; width: 40px; height: 1px; background: currentColor; }

/* ── The programmes: a second cinema, tinted for XV ─────────────────────── */
.xv-programs { position: relative; background: #000; }
.cinema--xv .pkg::after {
  background: linear-gradient(0deg, rgba(26, 19, 36, .9) 0%, rgba(26, 19, 36, .45) 38%, rgba(26, 19, 36, 0) 64%),
              linear-gradient(90deg, rgba(26, 19, 36, .5) 0%, rgba(26, 19, 36, 0) 55%);
}
.cinema--xv.is-live .cinema__shade {
  background:
    linear-gradient(0deg, rgba(20, 13, 28, .9) 0%, rgba(20, 13, 28, .5) 40%, rgba(20, 13, 28, 0) 66%),
    linear-gradient(90deg, rgba(20, 13, 28, .74) 0%, rgba(20, 13, 28, .4) 34%, rgba(20, 13, 28, 0) 60%),
    linear-gradient(270deg, rgba(20, 13, 28, .4) 0%, rgba(20, 13, 28, 0) 30%),
    linear-gradient(180deg, rgba(4, 7, 13, .5) 0%, rgba(4, 7, 13, 0) 20%);
}
/* Rising out of the voyage's black, the first programme's still is already
   there under the wash; its film crossfades over the identical frame. */
.cinema--xv.is-arriving .pkg.is-active .pkg__poster { opacity: 1; }
.cinema__rise { display: none; }
.is-cinematic .cinema--xv.is-live .cinema__rise {
  display: block; position: absolute; inset: 0 0 auto 0; height: 65%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, #000 0%, #000 12%, rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, 0) 100%);
}
.cinema--xv .pkg__kicker, .cinema--xv .pkg__num { color: var(--rose); }
.cinema--xv .pkg__title { font-size: clamp(2.8rem, 5.6vw, 6.4rem); }
.cinema--xv .pkg__price strong { color: var(--rose); }
.cinema--xv .cinema__place span::before, .cinema--xv .cinema__index .idx-bar i { background: var(--rose); }
.cinema--xv .cinema__arrow:hover { border-color: var(--rose); background: rgba(236, 195, 187, .1); }
.cinema.is-live .pkg.is-shown .pkg__body > :nth-child(6) { transition-delay: .48s; }

/* Phones: the film gets the screen. The full route stays one tap away in
   "Más información"; the cruise line, dates, facts and CTAs remain. */
@media (max-width: 767px) {
  .cinema--xv.is-live .pkg__route { display: none; }
  .cinema--xv .pkg__title { font-size: clamp(2.3rem, 10.5vw, 3.1rem); }
  .cinema--xv .pkg__facts { margin-top: 18px; padding-top: 16px; }
  .cinema--xv .pkg__actions { margin-top: 22px; }
  .cinema--xv .xvp__cruise { margin-top: 14px; font-size: .64rem; }
}

/* "Incluye crucero": only on the programmes that really sail. */
.xvp__cruise {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 20px;
  font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory);
}
.xvp__cruise span:last-child { font-weight: 400; letter-spacing: .16em; color: rgba(246, 243, 236, .62); }
.xvp__wave {
  width: 34px; height: 8px; background: var(--rose);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 8'%3E%3Cpath d='M0 4c2.8 0 2.8-3 5.7-3s2.8 3 5.6 3 2.8-3 5.7-3 2.8 3 5.7 3 2.8-3 5.6-3 2.9 3 5.7 3' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 8'%3E%3Cpath d='M0 4c2.8 0 2.8-3 5.7-3s2.8 3 5.6 3 2.8-3 5.7-3 2.8 3 5.7 3 2.8-3 5.6-3 2.9 3 5.7 3' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cinema--xv .xvp__cruise + .pkg__title { margin-top: 12px; }

/* What every programme includes: an editorial band, not a card. */
.xv-includes {
  display: grid; gap: 28px 64px;
  padding: clamp(64px, 9vw, 130px) var(--gutter);
  background: var(--plum);
  max-width: none;
}
.xv-includes h3 { font-family: var(--serif); font-size: var(--t-h3); font-weight: 300; line-height: 1.1; color: var(--rose); max-width: 14ch; }
.xv-includes ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 40px; border-top: 1px solid rgba(236, 195, 187, .3); }
.xv-includes li { position: relative; padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line-light); font-size: var(--t-small); color: rgba(246, 243, 236, .86); }
.xv-includes li::before { content: ''; position: absolute; left: 0; top: 1.55em; width: 10px; height: 1px; background: var(--rose); }
.xv-includes p { max-width: 44rem; font-size: .76rem; line-height: 1.7; color: rgba(246, 243, 236, .55); }
@media (min-width: 1024px) {
  .xv-includes { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); align-items: start; }
  .xv-includes p { grid-column: 2; }
}

/* ════════════════════════════════════════════════════════════════════════
   CHAPTER III — CURSOS DE VERANO
   ════════════════════════════════════════════════════════════════════════ */
.courses { position: relative; background: var(--ivory); color: var(--navy); }
.courses__open {
  display: grid; gap: 36px; justify-items: start;
  padding: var(--section) var(--gutter) clamp(72px, 10vw, 140px);
  max-width: 1440px; margin-inline: auto;
}
.courses__statement {
  max-width: 17ch;
  font-family: var(--serif); font-size: var(--t-h1); font-weight: 300; line-height: 1; letter-spacing: -.018em;
}
.courses__statement em { color: var(--gold-ink); }

.courses__story { display: grid; grid-template-columns: 1fr; }
.courses__film { display: none; }
.courses__text { display: grid; gap: clamp(64px, 10vw, 120px); padding: 0 var(--gutter) var(--section); }

.course-step { display: grid; gap: 16px; max-width: 36rem; }
.course-step__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; }
.course-step__tag { font-size: var(--t-label); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); }
.course-step__title { font-family: var(--serif); font-size: var(--t-h2); font-weight: 300; line-height: 1.02; letter-spacing: -.01em; }
.course-step__lead { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--slate); }
.course-step p:not([class]) { font-size: 1rem; color: #33424e; max-width: 32rem; }
.course-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.course-list li { padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: .95rem; color: #2b3a47; }

.course-facts { max-width: 36rem; padding-top: 34px; border-top: 2px solid var(--navy); }
.course-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.course-facts dl > div { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.course-facts dt { font-size: var(--t-label); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--slate); }
.course-facts dd { margin-top: 4px; font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; }
.course-facts__price { grid-column: 1 / -1; }
.course-facts__price dd { font-size: clamp(2.6rem, 4vw, 3.6rem); color: var(--navy); }
.course-facts__note { margin-top: 14px; font-size: .74rem; color: var(--slate); }
.course-facts__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 30px; }

@media (min-width: 1024px) {
  .courses__story { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .courses__film {
    display: block; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper);
  }
  .courses__frame {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 1.1s var(--ease);
  }
  .courses__frame.is-on { opacity: 1; }
  .courses__frame img, .courses__frame video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.06); transition: transform 6s var(--ease-out);
  }
  .courses__frame.is-on img, .courses__frame.is-on video { transform: scale(1); }
  .courses__frame video { opacity: 0; transition: opacity 1s var(--ease), transform 6s var(--ease-out); }
  .courses__frame video.is-on { opacity: 1; }
  .courses__caption {
    position: absolute; left: 32px; bottom: 28px; z-index: 2;
    font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ivory);
    text-shadow: 0 1px 18px rgba(0, 0, 0, .45);
  }
  .courses__caption span { transition: opacity .6s var(--ease); }
  .courses__caption span.is-swapping { opacity: 0; }
  .courses__text { gap: 0; padding: 0 var(--gutter) var(--section) clamp(48px, 6vw, 110px); }
  .course-step { min-height: 92vh; align-content: center; }
  .course-step__img { display: none; }
  .course-facts { margin-block: 10vh 0; }
}

/* ════════════════════════════════════════════════════════════════════════
   SERVICIOS + DESTINOS
   ════════════════════════════════════════════════════════════════════════ */
.services { background: var(--paper); color: var(--navy); padding-block: var(--section); }
.section-head { display: grid; gap: 24px; max-width: 46rem; }
.service-list { margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line-dark); }
.service {
  display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px 24px; align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line-dark);
}
.service__num { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-ink); }
.service__name { font-family: var(--serif); font-size: var(--t-h3); font-weight: 300; line-height: 1.1; }
.service__text { grid-column: 2; max-width: 34rem; color: #3b4955; }
.service .link-arrow { grid-column: 2; justify-self: start; }
@media (min-width: 1024px) {
  .service { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 40px; }
  .service__text, .service .link-arrow { grid-column: auto; }
}

.atlas { margin-top: var(--section); scroll-margin-top: 40px; }
.atlas__head { display: grid; gap: 22px; max-width: 46rem; }
.atlas__title { font-family: var(--serif); font-size: var(--t-h2); font-weight: 300; line-height: 1.02; }
.atlas__title em { color: var(--gold-ink); }
.atlas__lead { max-width: var(--measure); color: var(--slate); font-size: var(--t-lead); }
.atlas__regions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 48px clamp(28px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 88px);
}
.atlas__region-name {
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--navy);
  font-size: var(--t-label); font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
}
.atlas__region button {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%;
  padding: 10px 0; text-align: left;
  font-family: var(--serif); font-size: clamp(1.55rem, 2vw, 2rem); font-weight: 300; line-height: 1.2;
  border-bottom: 1px solid var(--line-dark);
  transition: color var(--d1) var(--ease), padding var(--d2) var(--ease-out);
}
.atlas__region button span { font-family: var(--sans); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); }
.atlas__region button:hover { color: var(--gold-ink); padding-left: 8px; }
.atlas__region button:hover span::after { content: ' · Cotizar ↗'; color: var(--gold-ink); }

/* ════════════════════════════════════════════════════════════════════════
   NOSOTROS
   ════════════════════════════════════════════════════════════════════════ */
.about { background: var(--navy); color: var(--ivory); padding-block: var(--section); }
.about__quote { margin-top: 30px; }
.about__quote p {
  max-width: 15ch;
  font-family: var(--serif); font-size: var(--t-h1); font-weight: 300; line-height: .98; letter-spacing: -.018em;
}
.about__quote em { color: var(--gold); }
.about__lead { margin-top: 34px; max-width: var(--measure); font-size: var(--t-lead); color: rgba(246, 243, 236, .72); }
.about__marks { display: flex; flex-wrap: wrap; gap: 20px 64px; margin-top: 56px; }
.about__marks p { display: grid; font-family: var(--serif); font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 400; line-height: 1.1; }
.about__marks span { font-family: var(--sans); font-size: var(--t-label); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.reasons {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 clamp(28px, 4vw, 64px);
  margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line-light);
}
.reasons li { display: grid; gap: 12px; align-content: start; padding: 34px 0; border-bottom: 1px solid var(--line-light); }
.reasons span { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.reasons h3 { font-family: var(--serif); font-size: 1.85rem; font-weight: 400; line-height: 1.1; }
.reasons p { font-size: .9rem; color: rgba(246, 243, 236, .68); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; margin-top: clamp(56px, 7vw, 96px); }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(2.8rem, 4.6vw, 4.4rem); font-weight: 300; line-height: 1; color: var(--ivory); }
.stats span { display: block; margin-top: 10px; font-size: var(--t-label); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: rgba(246, 243, 236, .55); }

/* ════════════════════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════════════════════ */
.faq { background: var(--ivory); color: var(--navy); padding-block: var(--section); }
.faq__layout { display: grid; gap: 56px; }
.faq__intro { display: grid; gap: 22px; align-content: start; }
.faq__list { border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.7rem); font-weight: 400; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); border-radius: 50%;
  font-family: var(--sans); font-size: 1rem; font-weight: 300; color: var(--gold-ink);
  transition: transform var(--d2) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 60px 28px 0; color: #3b4955; max-width: 44rem; }
@media (min-width: 1024px) {
  .faq__layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 96px; }
  .faq__intro { position: sticky; top: 120px; }
}

/* ════════════════════════════════════════════════════════════════════════
   CONTACTO
   ════════════════════════════════════════════════════════════════════════ */
.contact { background: var(--ink); color: var(--ivory); padding-block: var(--section); }
.contact__layout { display: grid; gap: 72px; align-items: start; }
.contact__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__badges p {
  padding: 9px 14px 8px; border: 1px solid rgba(232, 201, 122, .45);
  font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.contact__badges p + p { border-color: var(--line-light); color: rgba(246, 243, 236, .8); }
.contact__title { margin-top: 40px; font-family: var(--serif); font-size: var(--t-h1); font-weight: 300; line-height: .98; letter-spacing: -.018em; }
.contact__title em { color: var(--gold); }
.contact__lead { margin: 28px 0 38px; max-width: var(--measure); font-size: var(--t-lead); color: rgba(246, 243, 236, .72); }
.contact__info { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--line-light); max-width: 30rem; }
.contact__info > div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line-light); }
.contact__info dt { font-size: var(--t-label); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: rgba(246, 243, 236, .5); }
.contact__info dd { font-size: .9rem; text-align: right; }

.trip-form { background: var(--ivory); color: var(--navy); padding: clamp(28px, 4vw, 56px); }
.trip-form h3 { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 300; line-height: 1.05; }
.trip-form__lead { margin-top: 8px; color: var(--slate); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin: 34px 0 32px; }
.field { display: grid; gap: 8px; font-size: var(--t-label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); }
.field--wide { grid-column: 1 / -1; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 0;
  border: 0; border-bottom: 1px solid rgba(13, 31, 60, .3); border-radius: 0; background: transparent;
  font: 400 1rem var(--sans); color: var(--navy); letter-spacing: 0; text-transform: none;
  transition: border-color var(--d1) var(--ease);
}
.field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--navy); border-bottom-width: 2px; }
.field input::placeholder { color: rgba(82, 97, 109, .6); }
.field input[aria-invalid="true"] { border-bottom-color: #a33a2a; }
.trip-form .btn { width: 100%; }
.trip-form__note { margin-top: 16px; font-size: .74rem; color: var(--slate); }
.trip-form__fallback { display: inline-block; margin-top: 12px; font-size: .82rem; color: var(--gold-ink); text-decoration: underline; }
.form-copy { margin-top: 18px; display: grid; gap: 10px; font-size: .84rem; }
.form-copy textarea { width: 100%; min-height: 110px; padding: 12px; border: 1px solid var(--line-dark); font: 400 .9rem var(--sans); color: var(--navy); background: #fff; }
.form-copy__actions { display: flex; gap: 10px; }
.form-copy__btn { padding: 10px 16px; border: 1px solid var(--navy); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
@media (min-width: 1024px) {
  .contact__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 96px; }
}

/* ════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════ */
.footer { background: var(--night); color: rgba(246, 243, 236, .66); padding: clamp(72px, 9vw, 120px) 0 40px; font-size: .86rem; }
.footer__top { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer__brand { grid-column: 1 / -1; max-width: 30rem; }
.footer__logo img { width: auto; height: 92px; }
.footer__tag { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: rgba(246, 243, 236, .82); }
.footer__desc { margin-top: 16px; }
.footer__title { margin-bottom: 18px; font-size: var(--t-label); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { transition: color var(--d1) var(--ease); }
.footer__col a:hover { color: var(--ivory); }
.footer__col li span { display: block; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(246, 243, 236, .4); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; font-size: .74rem; color: rgba(246, 243, 236, .45); }
@media (min-width: 1024px) {
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}

/* ════════════════════════════════════════════════════════════════════════
   ITINERARY SHEET (modal)
   ════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 7, 13, .6);
  opacity: 0; visibility: hidden;
  transition: opacity var(--d2) var(--ease), visibility 0s linear var(--d2);
}
.modal-overlay.open { opacity: 1; visibility: visible; transition: opacity var(--d2) var(--ease), visibility 0s; }
.modal-box {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(680px, 100%);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--ivory); color: var(--navy);
  padding: clamp(28px, 4vw, 60px);
  transform: translateX(40px);
  transition: transform .9s var(--ease-out);
}
.modal-overlay.open .modal-box { transform: none; }
.modal-box:focus { outline: none; }
.modal-close {
  position: sticky; top: 0; float: right; z-index: 2;
  width: 48px; height: 48px; margin: -8px -8px 0 0;
  display: grid; place-items: center; border-radius: 50%; background: var(--ivory);
}
.modal-close span, .modal-close span::after {
  display: block; width: 22px; height: 1px; background: var(--navy); transform: rotate(45deg);
}
.modal-close span::after { content: ''; transform: rotate(90deg); }
.modal-header { padding-right: 56px; }
.modal-badge { font-size: var(--t-label); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); }
.modal-title { margin-top: 16px; font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 300; line-height: 1.02; }
.modal-code { margin-top: 12px; font-size: .78rem; color: var(--slate); }
.modal-body { margin-top: 30px; }
.modal-price-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--navy); }
.modal-price-item { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line-dark); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.modal-price-item strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--navy); line-height: 1.25; }
.modal-section { margin-top: 32px; }
.modal-section-title { margin-bottom: 12px; font-size: var(--t-label); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); }
.modal-section p { color: #33424e; }
.modal-list { display: grid; gap: 0; }
.modal-list li { position: relative; padding: 9px 0 9px 24px; border-bottom: 1px solid var(--line-dark); font-size: .9rem; color: #2b3a47; }
.modal-list li::before { content: ''; position: absolute; left: 0; top: 1.25em; width: 12px; height: 1px; background: var(--gold-ink); }
.modal-list.no-check li::before { background: var(--slate); width: 8px; }
.modal-note { margin-top: 26px; font-size: .8rem; color: var(--slate); font-style: italic; }
.modal-note:empty { display: none; }
.modal-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line-dark); }

/* XV itinerary sheet: the same sheet, in the chapter's night plum. */
.modal-box--xv { background: var(--plum); color: var(--ivory); }
.modal-box--xv :focus-visible { outline-color: var(--rose); }
.modal-box--xv .modal-close { background: var(--plum); }
.modal-box--xv .modal-close span, .modal-box--xv .modal-close span::after { background: var(--ivory); }
.modal-box--xv .modal-badge, .modal-box--xv .modal-section-title { color: var(--rose); }
.modal-box--xv .modal-code { color: rgba(246, 243, 236, .6); }
.modal-box--xv .modal-price-box { border-top-color: var(--rose); }
.modal-box--xv .modal-price-item { border-bottom-color: var(--line-light); color: rgba(246, 243, 236, .55); }
.modal-box--xv .modal-price-item strong { color: var(--ivory); }
.modal-box--xv .modal-section p { color: rgba(246, 243, 236, .78); }
.modal-box--xv .modal-list li { border-bottom-color: var(--line-light); color: rgba(246, 243, 236, .86); }
.modal-box--xv .modal-list li::before { background: var(--rose); }
.modal-box--xv .modal-note { color: rgba(246, 243, 236, .55); }
.modal-box--xv .modal-footer { border-top-color: var(--line-light); }
.modal-section--cruise { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--rose); }
.modal-section--cruise .modal-section-title {
  font-family: var(--serif); font-style: italic; font-size: 1.7rem; font-weight: 300;
  letter-spacing: 0; text-transform: none; line-height: 1.15;
}

/* ── Toast ─────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95;
  max-width: calc(100% - 32px);
  padding: 14px 22px; background: var(--ivory); color: var(--navy);
  font-size: .84rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease-out);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Scroll reveals (scenes.js) ─────────────────────────────────────────
   Only hidden once GSAP has confirmed it will reveal them. */
.is-cinematic [data-reveal] { opacity: 0; transform: translateY(26px); }

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important; animation-iteration-count: 1 !important;
    transition-duration: .001s !important; scroll-behavior: auto !important;
  }
  .hero-foot__cue span::after { display: none; }
}

/* ── Form states (validation from the carried-over form logic) ─────────── */
.field-error { display: flex; gap: 6px; font-size: .74rem; letter-spacing: 0; text-transform: none; color: #a33a2a; font-weight: 400; }
.field-error[hidden] { display: none !important; }
.form-status { min-height: 1.4em; margin-bottom: 14px; font-size: .84rem; color: #a33a2a; }
.form-status:empty { margin-bottom: 0; min-height: 0; }
.form-status.is-ok { color: var(--gold-ink); }

/* The clouds' first frame paints before any bitmap is decoded. */
.xv-open__clouds { background: #e9b77f url('../assets/scenes/clouds-01/frame-000.webp') center / cover no-repeat; }

/* ── Layout guards ─────────────────────────────────────────────────────── */
.contact__layout, .faq__layout, .courses__story, .courses__text { grid-template-columns: minmax(0, 1fr); }
.contact__intro, .contact__form { min-width: 0; }
@media (min-width: 1024px) {
  .contact__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .faq__layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); }
  .courses__story { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* Navigation backdrop: a soft wash that keeps the bar off the copy under it,
   never a solid bar. Dark wash over film and navy, ivory wash over paper. */
.nav::before {
  content: ''; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 7, 13, .5), rgba(4, 7, 13, 0));
  transition: opacity var(--d2) var(--ease);
}
.nav::after {
  content: ''; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 243, 236, .96) 45%, rgba(246, 243, 236, 0));
  opacity: 0; transition: opacity var(--d2) var(--ease);
}
.nav[data-tone="dark"]::before { opacity: 0; }
.nav[data-tone="dark"]::after { opacity: 1; }
.menu-open .nav::after { opacity: 0; }

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .nav__wa { display: none; }
  .nav__burger { margin-right: -8px; }
  .nav__brand { height: 44px; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(4, 7, 13, .86) 0%, rgba(4, 7, 13, .55) 45%, rgba(4, 7, 13, .2) 75%),
      linear-gradient(180deg, rgba(4, 7, 13, .5) 0%, rgba(4, 7, 13, 0) 22%);
  }
  .hero-copy { justify-content: flex-end; padding-bottom: 124px; gap: 22px; }
  .hero-foot { font-size: .58rem; letter-spacing: .2em; padding-right: calc(var(--gutter) + 64px); }
  .hero-foot__cue { font-size: 0; gap: 0; }
  .hero-foot__cue span { height: 30px; }
  .cinema.is-live .cinema__shade {
    background:
      linear-gradient(0deg, rgba(4, 7, 13, .92) 0%, rgba(4, 7, 13, .7) 42%, rgba(4, 7, 13, 0) 72%),
      linear-gradient(180deg, rgba(4, 7, 13, .45) 0%, rgba(4, 7, 13, 0) 18%);
  }
  .contact__info > div { flex-direction: column; gap: 2px; }
  .contact__info dd { text-align: left; }
  .wa-float { width: 52px; height: 52px; }
}

[hidden] { display: none !important; }

/* Tablet and small laptop: the index gives way, the arrows move under the
   text so they never sit on the actions row. */
@media (max-width: 1100px) {
  .cinema.is-live .pkg__body { padding-bottom: 116px; }
  .cinema.is-live .cinema__controls { left: var(--gutter); right: auto; bottom: 34px; }
  .cinema__counter { margin-right: 14px; }
}


/* Package index — film-credit quiet: numbers only, the playing title spelled
   out. Every title stays in the accessible name of its button. */
.cinema__index .idx-t {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width .8s var(--ease-out), opacity .5s var(--ease);
}
.cinema__index button[aria-current="true"] .idx-t,
.cinema__index button:hover .idx-t,
.cinema__index button:focus-visible .idx-t { max-width: 22rem; opacity: 1; }
.cinema__index button { gap: 10px; }
.cinema.is-live .cinema__shade {
  background:
    linear-gradient(0deg, rgba(4, 7, 13, .84) 0%, rgba(4, 7, 13, .38) 36%, rgba(4, 7, 13, 0) 60%),
    linear-gradient(90deg, rgba(4, 7, 13, .55) 0%, rgba(4, 7, 13, 0) 52%),
    linear-gradient(270deg, rgba(4, 7, 13, .42) 0%, rgba(4, 7, 13, 0) 30%),
    linear-gradient(180deg, rgba(4, 7, 13, .5) 0%, rgba(4, 7, 13, 0) 20%);
}
.menu__panel { width: min(520px, 100%); }
@media (max-width: 767px) {
  .cinema.is-live .cinema__shade {
    background:
      linear-gradient(0deg, rgba(4, 7, 13, .92) 0%, rgba(4, 7, 13, .7) 42%, rgba(4, 7, 13, 0) 72%),
      linear-gradient(180deg, rgba(4, 7, 13, .45) 0%, rgba(4, 7, 13, 0) 18%);
  }
}


@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .hero-media picture img { animation: drift 22s var(--ease) infinite alternate; transform-origin: 60% 60%; }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.09) translate3d(-1.5%, -1%, 0); } }
}

@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(4, 7, 13, .86) 0%, rgba(4, 7, 13, .5) 45%, rgba(4, 7, 13, .15) 75%),
      linear-gradient(180deg, rgba(4, 7, 13, .45) 0%, rgba(4, 7, 13, 0) 20%);
  }
  .hero-copy { justify-content: flex-end; padding-bottom: 150px; }
}

/* XV on phones: the copy column is taller (cruise line, dates), so the shade
   reaches a little higher than the packages'. */
@media (max-width: 767px) {
  .cinema--xv.is-live .cinema__shade {
    background:
      linear-gradient(0deg, rgba(20, 13, 28, .94) 0%, rgba(20, 13, 28, .78) 44%, rgba(20, 13, 28, .4) 66%, rgba(20, 13, 28, 0) 84%),
      linear-gradient(180deg, rgba(4, 7, 13, .5) 0%, rgba(4, 7, 13, 0) 18%);
  }
}
