/* Jetson · Te llega volando
   Marca: azul #304FFE, navy #000D57, lavanda #E0E5FF, verde #76C626, naranja #F17D28 (de orderjetson.com)
   Sistema: cuartos de color + stickers (Refero · Eddie) y mundo que cambia de color (GetLayers · Soda) */

:root {
  --blue: #304FFE;
  --navy: #000D57;
  --lav: #E0E5FF;
  --ice: #ECEFF9;
  --green: #76C626;
  --orange: #F17D28;
  --lime: #D6F45B;
  --sky: #9FD8FF;
  --coral: #FF8A6B;
  --white: #fff;
  --world: var(--green); /* color del pasillo activo */
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --r-card: 40px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--body); color: var(--navy); background: var(--blue); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }

.display { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7.4vw, 112px); line-height: .9; letter-spacing: -.005em; text-transform: uppercase; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; opacity: .8; }
.eyebrow--light { color: var(--lav); }

/* Stickers: borde blanco grueso + sombra, como en la marca */
.sticker {
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(0 12px 18px rgba(0, 13, 87, .28));
}

/* El corazón de I ♥ PR late de vez en cuando: dos golpes y una pausa larga */
.beat { transform-box: fill-box; transform-origin: center; animation: beat 4s ease-in-out infinite; }
@keyframes beat {
  0%, 18%, 100% { transform: scale(1); }
  5% { transform: scale(1.22); }
  9% { transform: scale(.96); }
  13% { transform: scale(1.15); }
}

/* Botones píldora */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .25s var(--ease), background .25s; white-space: nowrap; }
.pill:hover { transform: translateY(-3px) rotate(-1.5deg); }
.pill--dark { background: var(--navy); color: #fff; height: 46px; }
.pill--white { background: #fff; color: var(--navy); }
.pill--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }

/* Botones de tienda: la app está en iPhone y en Android, siempre van los dos */
.store { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 18px; border-radius: 18px; text-decoration: none; transition: transform .25s var(--ease); }
.store:hover { transform: translateY(-3px) rotate(-1.5deg); }
.store:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.store--white { background: #fff; color: var(--navy); }
.store span { display: flex; flex-direction: column; font-weight: 800; font-size: 17px; line-height: 1.05; text-align: left; }
.store small { font-weight: 600; font-size: 11px; opacity: .7; }
.store__ico { width: 24px; height: 26px; flex: none; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.store__ico--apple { -webkit-mask-image: url(assets/appstore.svg); mask-image: url(assets/appstore.svg); }
.store__ico--play { -webkit-mask-image: url(assets/playstore.svg); mask-image: url(assets/playstore.svg); }
.hero__ctas .pill { height: 58px; border-radius: 18px; }
.foot__stores a { text-decoration: underline; text-underline-offset: 3px; }

/* Cursor de avión: solo con mouse o trackpad; en pantallas táctiles no existe */
.cursor { display: none; }
html.has-plane, html.has-plane * { cursor: none !important; }
html.has-plane .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.cursor__plane { position: absolute; left: 0; top: 0; width: 38px; height: 38px; fill: var(--navy); overflow: visible; transform-origin: 37px 17px; will-change: transform;
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 4px 6px rgba(0,13,87,.35)); }
.cursor__dot { position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--navy); will-change: transform, opacity; }
.cursor.is-out { opacity: 0; }

/* Navegación */
.nav { position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 22px; border-radius: 22px; background: rgba(48, 79, 254, .0); transition: background .35s, box-shadow .35s; }
.nav.is-solid { background: rgba(0, 13, 87, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,13,87,.25); }
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; opacity: .85; }
.nav__links a:hover { opacity: 1; }
.nav .pill--dark { background: #fff; color: var(--navy); }

/* Campo de stickers flotantes (lo mueve app.js) */
.field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.field .float { position: absolute; left: 0; top: 0; will-change: transform; }
.field .float svg { width: 100%; height: 100%; overflow: visible; }

/* 1 · Portada */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; background: radial-gradient(120% 80% at 50% 0%, #4A66FF 0%, var(--blue) 55%, #2440E6 100%); color: #fff; overflow: hidden; padding: 120px 16px 80px; }
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 980px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.14); padding: 8px 16px; border-radius: 999px; margin-bottom: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(118,198,38,.3); animation: pulse 1.8s 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(118,198,38,0); } }
.hero__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(64px, 15vw, 220px); line-height: .95; color: var(--lav); }
.hero__title .line { display: block; overflow: hidden; padding: .06em .04em; margin: -.06em 0; }
.hero__title .line span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero__title .line--navy { color: var(--navy); }
.hero__title .line--navy span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.hero__lead { font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; max-width: 520px; margin: 28px auto 0; opacity: 0; animation: fade .8s .5s forwards; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; opacity: 0; animation: fade .8s .7s forwards; }
@keyframes fade { to { opacity: 1; } }
.hero__plane { position: absolute; z-index: 1; width: 120px; height: 120px; fill: #fff; left: -140px; top: 22%; animation: fly 9s 1s linear infinite; filter: drop-shadow(0 10px 18px rgba(0,13,87,.35)); }
@keyframes fly { 0% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(60vw, -6vh) rotate(-14deg); } 100% { transform: translate(130vw, 4vh) rotate(-4deg); } }

/* 2 · Cinta */
.ticker { background: var(--navy); color: var(--lav); overflow: hidden; padding: 20px 0; transform: rotate(-1.5deg) scale(1.03); margin-top: -18px; position: relative; z-index: 3; }
.ticker__track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); text-transform: uppercase; }
.ticker i { color: var(--orange); font-style: normal; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 3 · Cómo vuela tu compra */
/* Sube por detrás de la cinta inclinada para que no asome el azul del body */
.journey { height: 340svh; background: var(--lav); position: relative; margin-top: calc(-2.7vw - 8px); }
.journey__sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; align-items: center; gap: 40px; padding: 90px max(16px, 5vw) 40px; overflow: hidden; }
.journey__steps { list-style: none; position: relative; min-height: 260px; }
.journey__steps li { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(-24px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
.journey__steps li.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .15s var(--ease), transform .5s .15s var(--ease), visibility 0s; }
.journey__steps b { font-family: var(--display); font-weight: 400; color: var(--blue); font-size: 22px; }
.journey__steps h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 6vw, 96px); line-height: .9; margin: 6px 0 16px; }
.journey__steps p { font-size: 19px; line-height: 1.45; max-width: 380px; }
.journey__map { position: relative; height: 100%; display: grid; align-items: center; }
.route { width: 100%; height: 100%; max-height: 72vh; overflow: visible; }
.route__ghost { fill: none; stroke: rgba(48,79,254,.22); stroke-width: 6; stroke-dasharray: 2 16; stroke-linecap: round; }
.route__trail { fill: none; stroke: var(--blue); stroke-width: 8; stroke-linecap: round; }
.stop circle { fill: #fff; stroke: var(--blue); stroke-width: 4; transition: fill .4s, transform .4s var(--ease); }
.stop text { font-family: var(--display); font-size: 30px; fill: var(--blue); transition: fill .4s; }
.stop.is-on circle { fill: var(--blue); }
.stop.is-on text { fill: #fff; }
.stop__s { transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-30deg); transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
.stop.is-on .stop__s { transform: scale(1) rotate(-6deg); }
.route__plane { fill: var(--navy); filter: drop-shadow(0 8px 10px rgba(0,13,87,.3)); }
.journey__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 6px; background: rgba(48,79,254,.15); overflow: hidden; }
.journey__bar span { display: block; height: 100%; width: 0; background: var(--blue); }

/* 4 · Pasillos */
.aisles { position: relative; min-height: 100svh; display: grid; place-items: center; background: var(--world); transition: background-color .7s var(--ease); overflow: hidden; padding: 110px 16px; text-align: center; }
.aisles__inner { position: relative; z-index: 2; max-width: 860px; }
.aisles__lead { font-size: 20px; font-weight: 500; margin: 20px auto 34px; max-width: 460px; }
.aisles .display { transition: opacity .3s, transform .3s var(--ease); }
.aisles .display.is-swapping, .aisles__lead.is-swapping { opacity: 0; transform: translateY(14px); }
.aisles__lead { transition: opacity .3s, transform .3s var(--ease); }
.aisles__tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; background: rgba(255,255,255,.35); padding: 8px; border-radius: 999px; backdrop-filter: blur(8px); }
.aisles__tabs button { font: 800 15px var(--body); color: var(--navy); background: transparent; border: 0; height: 46px; padding: 0 20px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.aisles__tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.aisles__tabs button:focus-visible, .pill:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }

/* 5 · Por qué Jetson */
.why { background: var(--ice); padding: 130px max(16px, 5vw); }
.why__head { max-width: 1180px; margin: 0 auto 56px; }
.rooms { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.room { position: relative; border-radius: var(--r-card); padding: 160px 28px 30px; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; overflow: visible; }
.room h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 34px; line-height: .95; margin-bottom: 12px; }
.room p { font-size: 16px; line-height: 1.45; font-weight: 500; }
.room__sticker { position: absolute; top: 28px; left: 26px; width: 110px; height: 110px; transform: rotate(-8deg); transition: transform .5s var(--ease); }
.room__sticker--wide { width: 140px; }
.room:hover .room__sticker { transform: rotate(6deg) scale(1.08) translateY(-6px); }
.room--lav { background: var(--lav); }
.room--lime { background: var(--lime); }
.room--sky { background: var(--sky); }
.room--sky .room__sticker { fill: var(--navy); }
.room--coral { background: var(--coral); }
.room:nth-child(even) { margin-top: 48px; }
.reveal { opacity: 0; transform: translateY(60px) rotate(2deg); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.rooms .reveal:nth-child(2) { transition-delay: .08s; }
.rooms .reveal:nth-child(3) { transition-delay: .16s; }
.rooms .reveal:nth-child(4) { transition-delay: .24s; }

/* 6 · Calificación */
.rating { position: relative; background: var(--blue); color: #fff; padding: 130px max(16px, 5vw); display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 70px); flex-wrap: wrap; overflow: hidden; }
.rating__num { font-family: var(--display); font-size: clamp(130px, 22vw, 320px); line-height: .8; color: var(--lav); display: flex; align-items: flex-start; }
.rating__num em { font-style: normal; color: var(--orange); font-size: .42em; margin-left: .06em; }
.rating__copy { max-width: 380px; }
.rating__copy h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 50px); line-height: .95; margin-bottom: 14px; }
.rating__copy p { font-size: 19px; line-height: 1.45; }
.rating__s1, .rating__s2 { position: absolute; width: 120px; height: 120px; }
.rating__s1 { left: 6%; bottom: 14%; transform: rotate(-14deg); }
.rating__s2 { right: 7%; top: 14%; transform: rotate(12deg); }

/* 7 · App */
.app { background: var(--navy); color: #fff; padding: 130px max(16px, 5vw); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; overflow: hidden; }
.app__copy { max-width: 540px; justify-self: end; }
.app__copy .display { color: var(--lav); font-size: clamp(48px, 6vw, 92px); }
.app__list { list-style: none; margin: 34px 0; display: grid; gap: 14px; }
.app__list li { display: flex; gap: 14px; align-items: center; font-size: 18px; font-weight: 500; }
.app__list span { width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(224,229,255,.12); display: grid; place-items: center; font-size: 20px; }
.app__stores { display: flex; gap: 12px; flex-wrap: wrap; }
.phone-wrap { position: relative; justify-self: start; perspective: 1200px; padding: 30px; }
.phone { width: 300px; height: 610px; border-radius: 48px; background: #0a0f2e; padding: 12px; box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px #2a3270; transform-style: preserve-3d; transition: transform .2s ease-out; position: relative; }
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0a0f2e; z-index: 2; }
.phone__screen { height: 100%; border-radius: 38px; background: var(--blue); padding: 56px 18px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--lav); }
.ph-title { font-family: var(--display); text-transform: uppercase; font-size: 30px; line-height: .95; color: #fff; }
.ph-map { background: var(--lav); border-radius: 24px; padding: 10px; }
.ph-steps { list-style: none; background: #fff; color: var(--navy); border-radius: 24px; padding: 16px 18px; display: grid; gap: 12px; font-size: 14px; font-weight: 700; }
.ph-steps li { display: flex; align-items: center; gap: 10px; opacity: .4; }
.ph-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--blue); flex: none; }
.ph-steps .done, .ph-steps .now { opacity: 1; }
.ph-steps .done::before { background: var(--blue); }
.ph-steps .now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(241,125,40,.25); animation: pulse2 1.4s 4; }
@keyframes pulse2 { 50% { box-shadow: 0 0 0 9px rgba(241,125,40,0); } }
.ph-cart { margin-top: auto; display: flex; align-items: center; gap: 6px; background: var(--navy); border-radius: 22px; padding: 10px 14px; }
.ph-cart svg { width: 40px; height: 40px; }
.ph-cart span { margin-left: auto; font-weight: 800; color: var(--lav); }
.phone__s1, .phone__s2 { position: absolute; z-index: 3; animation: bob 4s ease-in-out infinite; }
.phone__s1 { width: 120px; height: 120px; left: -30px; bottom: 90px; }
.phone__s2 { width: 140px; height: 116px; right: -40px; top: 60px; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(6deg); } }

/* 8 · Uber Market */
.partner { background: var(--lime); padding: 130px max(16px, 5vw); text-align: center; }
.partner .display { max-width: 1100px; margin: 0 auto; }
.partner .hl { color: var(--blue); }
.partner__lead { font-size: 20px; font-weight: 500; max-width: 560px; margin: 26px auto 0; line-height: 1.45; }

/* 9 · Cierre */
.cta { position: relative; background: var(--blue); color: #fff; padding: 140px 16px; text-align: center; overflow: hidden; }
.cta__title, .cta .hero__ctas { position: relative; z-index: 2; }
.cta__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(64px, 12vw, 180px); line-height: .85; }
.cta__title span { display: block; }
.cta__title span:last-child { color: var(--navy); }
.cta .hero__ctas { opacity: 1; animation: none; }
.cta__plane { position: absolute; width: 90px; height: 90px; fill: #fff; right: 8%; top: 18%; transform: rotate(-12deg); animation: bob 3.4s ease-in-out infinite; }

.foot { background: var(--navy); color: var(--lav); padding: 56px max(16px, 5vw); display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: start; font-size: 15px; line-height: 1.6; }
.foot a { text-decoration: none; font-weight: 700; }
.foot__small { opacity: .6; font-size: 13px; }

/* Móvil */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .journey { height: 280svh; }
  .journey__sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; padding-top: 96px; }
  .journey__steps { min-height: 280px; }
  .journey__steps h2 { font-size: 44px; }
  .journey__map { min-height: 0; }
  .journey__bar { top: 0; bottom: auto; } /* abajo tapaba la parada 1 */
  .journey__steps p { font-size: 17px; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .room { min-height: 300px; }
  .app { grid-template-columns: 1fr; }
  .app__copy, .phone-wrap { justify-self: center; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rooms { grid-template-columns: 1fr; }
  .room:nth-child(even) { margin-top: 0; }
  .room { min-height: 340px; }
  .cta__title { font-size: clamp(40px, 11vw, 60px); line-height: .95; }
  .phone { width: 270px; height: 550px; }
  .rating__s1, .rating__s2 { width: 80px; height: 80px; }
  .aisles__tabs { border-radius: 28px; }
  .aisles__tabs button { padding: 0 14px; height: 42px; font-size: 14px; }
  .hero__plane { width: 64px; height: 64px; top: 96px; }
  /* Franjas libres arriba y abajo del texto para los stickers */
  .hero { padding: 210px 16px 190px; }
  .aisles { padding: 200px 16px 190px; }
  .cta { padding: 190px 16px 190px; }
  .hero__ctas, .app__stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .hero__ctas .store, .app__stores .store { padding: 0 10px; gap: 8px; justify-content: center; }
  .hero__ctas .store span, .app__stores .store span { font-size: 15px; }
  .hero__ctas .pill { grid-column: 1 / -1; justify-content: center; }
  .cta__plane { top: 40px; right: 16px; width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__plane { display: none; }
  .reveal { opacity: 1; transform: none; }
}
