/* JAR Express — sitio con scroll animado (estilo Apple) */
:root {
  --ink: #050508;
  --navy: #0b1f4b;
  --paper: #f5f5f7;
  --snow: #ffffff;
  --mist: #86868b;
  --gold: #f5b301;
  --gold-dark: #d99f00;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--snow);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.wrap--narrow { max-width: 920px; }

/* ───── tipografía ───── */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.h2 {
  font-size: clamp(38px, 6.4vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h2--dark { color: var(--ink); }
.lede {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  color: rgba(255, 255, 255, .82);
  max-width: 34ch;
  text-wrap: pretty;
}

/* ───── botones ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn--small { padding: 9px 20px; font-size: 15px; }
.btn--big { padding: 22px 46px; font-size: 21px; }

/* ───── navegación ───── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.is-solid {
  background: rgba(5, 5, 8, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
.nav__brand img { width: 108px; height: auto; }
.nav__links { display: flex; gap: 34px; margin-left: auto; margin-right: 8px; }
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, .78);
  transition: color .2s;
}
.nav__links a:hover { color: #fff; }

/* ───── escenas con video que avanza con el scroll ───── */
.scene { position: relative; background: var(--ink); }
.scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.scene--hero { height: 420vh; }
.scene--incluye { height: 360vh; }
.scene--dest { height: 230vh; }

.scrub {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
}
.scrim { position: absolute; inset: 0; pointer-events: none; }
.scrim--bottom {
  background:
    linear-gradient(90deg, rgba(5,5,8,.62) 0%, rgba(5,5,8,.28) 42%, rgba(5,5,8,0) 72%),
    linear-gradient(180deg, rgba(5,5,8,.5) 0%, rgba(5,5,8,0) 26%, rgba(5,5,8,0) 40%, rgba(5,5,8,.86) 100%);
}
.scrim--full { background: radial-gradient(120% 90% at 50% 50%, rgba(5,5,8,.35) 0%, rgba(5,5,8,.78) 100%); }

.scene__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(64px, 11vh, 120px);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
}
.scene__copy--center { justify-content: center; align-items: center; text-align: center; padding-bottom: 0; }
.scene__copy--left { align-items: flex-start; }
.scene__copy .eyebrow { text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }

.steps { position: relative; display: grid; }
.steps > * { grid-area: 1 / 1; align-self: end; }
.steps--center > * { align-self: center; justify-self: center; }
.step--big {
  font-size: clamp(46px, 9vw, 128px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.steps .step--last .lede { margin-top: 22px; }
.steps .step--last .btn { margin-top: 30px; }
.steps--center .lede { margin-inline: auto; }
.scene--hero .step--big { max-width: 11ch; }
.scene--dest .step--big { font-size: clamp(40px, 7vw, 104px); max-width: 14ch; }

.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.scroll-cue span { width: 1px; height: 44px; background: linear-gradient(#fff, rgba(255,255,255,0)); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ───── unidades ───── */
.units { background: var(--ink); padding: clamp(96px, 16vh, 200px) 0; }
.units .h2 { max-width: 16ch; margin-bottom: clamp(48px, 8vh, 96px); }
.unit-list { border-top: 1px solid rgba(255, 255, 255, .14); }
.unit {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 80px);
  padding: clamp(28px, 6vh, 64px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.unit__num {
  font-size: clamp(120px, 24vw, 340px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.07em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .55);
  transition: color .6s var(--ease), -webkit-text-stroke-color .6s var(--ease);
}
.unit.is-in .unit__num { color: var(--snow); -webkit-text-stroke-color: var(--snow); }
.unit__body h3 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; }
.unit__body p { margin-top: 10px; color: rgba(255, 255, 255, .72); max-width: 30ch; }
.seats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; max-width: 320px; }
.seats i { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); display: block; }

/* ───── pasos ───── */
.how { background: var(--paper); color: var(--ink); padding: clamp(96px, 16vh, 200px) 0; }
.how .eyebrow { color: var(--navy); }
.how .h2 { margin-bottom: clamp(48px, 8vh, 96px); }
.how__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.how__item { border-top: 2px solid var(--ink); padding-top: 24px; }
.how__n { display: block; font-size: 64px; font-weight: 800; letter-spacing: -.05em; color: var(--navy); line-height: 1; margin-bottom: 18px; }
.how__item h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.how__item p { margin-top: 10px; color: #424245; }

/* ───── destinos ───── */
.dest-head { background: var(--ink); padding: clamp(96px, 16vh, 200px) 0 clamp(40px, 6vh, 72px); }
.dest-head .h2 { max-width: 14ch; }

/* ───── para quién ───── */
.who { background: var(--ink); padding: clamp(96px, 16vh, 200px) 0; }
.who .h2 { margin-bottom: clamp(48px, 8vh, 88px); max-width: 16ch; }
.who__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.who__grid li { padding: 32px 28px 8px 0; border-right: 1px solid rgba(255, 255, 255, .14); margin-right: 28px; }
.who__grid li:last-child { border-right: 0; margin-right: 0; }
.who__grid h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.03em; }
.who__grid p { margin-top: 10px; color: rgba(255, 255, 255, .68); font-size: 17px; }

/* ───── preguntas ───── */
.faq { background: var(--paper); color: var(--ink); padding: clamp(96px, 16vh, 200px) 0; }
.faq .eyebrow { color: var(--navy); }
.faq .h2 { margin-bottom: clamp(36px, 6vh, 64px); }
.faq details { border-top: 1px solid #d2d2d7; }
.faq details:last-child { border-bottom: 1px solid #d2d2d7; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  color: var(--navy);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: #424245; max-width: 60ch; }

/* ───── cierre ───── */
.cta { background: var(--navy); padding: clamp(110px, 20vh, 240px) 0; text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta .h2 { max-width: 12ch; }
.cta .lede { margin-bottom: 14px; }
.cta__tel { font-size: 20px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .8); }

/* ───── pie ───── */
.footer { background: var(--ink); padding: 56px var(--pad) 40px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__row { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto 1fr 1fr; gap: 40px; align-items: center; }
.footer__row p { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .7); }
.footer__row a { text-decoration: none; }
.footer__row a:hover { color: #fff; text-decoration: underline; }
.footer__legal { max-width: var(--max); margin: 36px auto 0; font-size: 13px; color: var(--mist); }

/* ───── revelado al hacer scroll (sólo con JS) ───── */
.js .reveal { opacity: 0; transform: translateY(36px); }

/* ───── sin movimiento: todo visible, sin escenas altas ───── */
.reduce .scene { height: auto; }
.reduce .scene__sticky { position: relative; height: 100svh; min-height: 620px; }
.reduce .steps { display: flex; flex-direction: column; gap: 28px; }
.reduce .steps > * { opacity: 1 !important; visibility: visible !important; transform: none !important; }
.reduce .reveal { opacity: 1 !important; transform: none !important; }
.reduce .scroll-cue { display: none; }
.reduce .unit__num { color: var(--snow); -webkit-text-stroke-color: var(--snow); }

/* ───── tablet / celular ───── */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav__links { display: none; }
  .nav { gap: 12px; }
  .nav .btn--small { margin-left: auto; }
  .nav__brand img { width: 92px; }
  .unit { grid-template-columns: 1fr; gap: 10px; }
  .unit__num { font-size: clamp(120px, 38vw, 220px); }
  .how__list { grid-template-columns: 1fr; gap: 36px; }
  .who__grid { grid-template-columns: 1fr 1fr; }
  .who__grid li { border-right: 0; margin-right: 0; padding: 28px 12px 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .footer__row { grid-template-columns: 1fr; gap: 22px; }
  .scene--hero { height: 360vh; }
  .scene--incluye { height: 320vh; }
  .scene--dest { height: 200vh; }
  .scene__copy { padding-bottom: clamp(88px, 14vh, 130px); }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .unit__num { transition: none; }
  .scroll-cue span { animation: none; }
}
