/* JaviGoTravel — estilos de la web 0.4. Identidad: Kit de marca 1.0 «Rumbo orgánico Equilibrado».
   Dirección de diseño: revista de viajes editorial — fotografía protagonista, titulares en Instrument Serif,
   líneas de ruta orgánicas (el trazo del logo) y movimiento sutil que acompaña, nunca distrae. */

@font-face { font-family: Manrope; src: url(/fonts/Manrope-Variable.woff) format("woff"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/InstrumentSerif-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/InstrumentSerif-Italic.woff) format("woff"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  /* marca */
  --jgt-plum: #4A285F;
  --jgt-amber: #D77A38;
  --jgt-green: #2F756A;
  --jgt-sand: #F5F0E8;
  --jgt-ink: #1D1A20;
  --jgt-mist: #FBFAF8;
  --jgt-muted: #655D69;
  --jgt-rule: #DED6DF;
  --jgt-font-ui: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --jgt-font-editorial: "Instrument Serif", Georgia, serif;
  --jgt-radius-control: 8px;
  --jgt-radius-card: 12px;

  /* derivados */
  --plum-deep: #331A43;
  --plum-soft: #EFE8F3;
  --bg: var(--jgt-mist);
  --surface: #ffffff;
  --surface-warm: var(--jgt-sand);
  --text: var(--jgt-ink);
  --muted: var(--jgt-muted);
  --line: var(--jgt-rule);
  --brand: var(--jgt-plum);
  --brand-ink: var(--jgt-mist);
  --affinity: var(--jgt-green);
  --affinity-soft: #E4EFEC;
  --discovery: var(--jgt-amber);
  --discovery-soft: #F8E6D8;
  --warn-ink: #6B3410;
  --danger: #9B2335;
  --radius: var(--jgt-radius-card);
  --organic: 22px 22px 22px 6px;           /* esquina "de ruta" del kit */
  --shadow-sm: 0 1px 2px rgba(29, 26, 32, .06), 0 2px 8px rgba(74, 40, 95, .06);
  --shadow: 0 1px 2px rgba(29, 26, 32, .05), 0 10px 30px rgba(74, 40, 95, .10);
  --shadow-lg: 0 2px 4px rgba(29, 26, 32, .06), 0 24px 60px rgba(51, 26, 67, .20);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  font-family: var(--jgt-font-ui);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2 { font-family: var(--jgt-font-editorial); font-weight: 400; color: var(--brand); letter-spacing: -.01em; line-height: 1.02; }
h3, h4 { color: var(--brand); }
em { font-style: italic; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; z-index: 100; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--affinity) 55%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--discovery-soft); color: var(--jgt-ink); }

.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.25em; }
.ico.big { width: 30px; height: 30px; }
.ico.flip { transform: scaleX(-1); }

/* ---------------------------------------------------------------- barra de progreso de carga */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--affinity), var(--discovery)); transition: width .4s var(--ease), opacity .3s; opacity: 0; }
.progress.on { opacity: 1; width: 70%; transition: width 6s cubic-bezier(.1, .6, .2, 1); }
.progress.done { opacity: 0; width: 100%; transition: width .2s, opacity .4s .2s; }

/* ---------------------------------------------------------------- encabezado */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--jgt-mist) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s; }
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(51, 26, 67, .06); background: color-mix(in srgb, var(--jgt-mist) 94%, transparent); }
.topbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: block; line-height: 0; }
.brand img { width: 200px; height: auto; display: block; } /* mínimo del kit: 200 px */
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { position: relative; text-decoration: none; font-weight: 650; font-size: .95rem; color: var(--jgt-ink); padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.mainnav a:hover { background: var(--plum-soft); color: var(--brand); }
.mainnav a[aria-current="page"] { color: var(--brand); background: var(--plum-soft); }
.mainnav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--discovery); }
.topbar-cta { margin-left: 8px; }

.tabbar { display: none; }

/* ---------------------------------------------------------------- botones */
.btn { --b: var(--brand); font: inherit; font-size: .95rem; font-weight: 700; border-radius: var(--jgt-radius-control); padding: 12px 20px; border: 1.5px solid var(--b); background: transparent; color: var(--brand); cursor: pointer; min-height: 46px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s; position: relative; white-space: nowrap; }
.btn:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--plum-deep); box-shadow: 0 8px 22px rgba(74, 40, 95, .28); }
.btn.discover { --b: var(--discovery); background: var(--discovery); color: var(--jgt-ink); }
.btn.discover:hover { background: #E08847; box-shadow: 0 8px 22px rgba(215, 122, 56, .35); }
.btn.light { --b: rgba(251, 250, 248, .6); color: var(--jgt-mist); }
.btn.light:hover { background: rgba(251, 250, 248, .12); }
.btn.ghost { --b: transparent; }
.btn.danger { --b: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.small { padding: 8px 14px; min-height: 38px; font-size: .88rem; gap: 6px; }
.btn.big { padding: 16px 28px; font-size: 1.02rem; min-height: 56px; border-radius: 12px; }
.link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.link.muted { color: var(--muted); font-size: .88rem; font-weight: 500; }
.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--jgt-ink); text-decoration: none; font-weight: 500; }
.textlink strong { color: var(--brand); border-bottom: 2px solid var(--discovery); }
.textlink .ico { color: var(--brand); transition: transform .25s var(--ease); }
.textlink:hover .ico { transform: translateX(4px); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.icon-btn { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--brand); border-radius: var(--jgt-radius-control); width: 38px; height: 38px; cursor: pointer; display: inline-grid; place-items: center; transition: background .2s, border-color .2s, transform .2s; }
.icon-btn:hover:not(:disabled) { border-color: var(--brand); background: var(--plum-soft); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.round { border-radius: 50%; width: 46px; height: 46px; }

/* ---------------------------------------------------------------- tipografía de sección */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--affinity); margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 10px; }
.row-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
small, .hint { color: var(--muted); font-size: .92rem; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- portada */
main { display: block; }
.home > section { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.hero { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(760px, calc(100vh - 80px)); padding-top: 24px !important; padding-bottom: 48px !important; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); margin: 0 0 22px; max-width: 12.5ch; }
.hero h1 .accent { position: relative; display: inline-block; font-style: italic; }
.hero h1 .accent svg { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .32em; overflow: visible; }
.hero h1 .accent path { fill: none; stroke: var(--discovery); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.2s .7s var(--ease) forwards; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 52ch; margin: 0 0 28px; }
.hero-links { margin: 18px 0 0; }

.quick { display: flex; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); max-width: 680px; }
.q-field { display: flex; flex-direction: column; justify-content: center; gap: 0; margin: 0; padding: 6px 14px; min-width: 0; flex: 1 1 0; border-right: 1px solid var(--line); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.q-field span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.q-field:first-child { flex: 1.5 1 0; }
.q-field:nth-child(2) { flex: 1.2 1 0; }
.q-field span .ico { width: 14px; height: 14px; color: var(--affinity); }
.q-field select, .q-field input { border: 0; background: transparent; padding: 2px 0; min-height: 30px; font-size: 1rem; font-weight: 650; text-transform: none; letter-spacing: 0; color: var(--jgt-ink); width: 100%; }
.q-field select:focus, .q-field input:focus { outline: none; }
.q-field:focus-within { background: var(--jgt-mist); border-radius: 10px; }
.q-days { flex: 0 0 80px !important; border-right: 0; }
.quick .btn { border-radius: 12px; flex: none; }

.hero-art { position: relative; height: min(620px, 72vh); min-height: 460px; }
.ph { margin: 0; position: absolute; overflow: hidden; background: var(--surface-warm) center / cover no-repeat; border-radius: var(--organic); box-shadow: var(--shadow-lg); }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(29, 26, 32, .25)); }
.ph-a { left: 16%; top: 0; width: 64%; height: 70%; animation: floatA 9s ease-in-out infinite; }
.ph-b { left: 0; bottom: 4%; width: 44%; height: 40%; border-radius: 22px 6px 22px 22px; animation: floatB 11s ease-in-out infinite; }
.ph-c { right: 0; bottom: 0; width: 42%; height: 46%; border-radius: 6px 22px 22px 22px; animation: floatA 10s -3s ease-in-out infinite; }
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.hero-route path { fill: none; stroke: var(--jgt-mist); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); animation: march 1.6s linear infinite; }
.hero-pin { position: absolute; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--discovery); color: var(--jgt-ink); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.hero-pin::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--discovery); animation: pulse 2.4s ease-out infinite; }
.pin-1 { left: 3%; bottom: 3%; }
.pin-2 { right: 2%; top: 1%; background: var(--jgt-plum); color: var(--jgt-mist); }
.pin-2::before { border-color: var(--jgt-plum); animation-delay: 1.2s; }
.float-card { position: absolute; z-index: 4; left: -6%; top: 52%; display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 14px; padding: 12px 16px 12px 12px; box-shadow: var(--shadow-lg); min-width: 250px; max-width: 300px; animation: floatB 7s ease-in-out infinite; }
.float-card strong { display: block; color: var(--brand); font-size: .98rem; line-height: 1.2; }
.float-card small { font-size: .8rem; display: block; line-height: 1.3; }
.float-card > div:last-child { transition: opacity .35s; }
.float-card.swap > div:last-child, .float-card.swap .ring b { opacity: 0; }

/* anillo de afinidad (verde = afinidad) */
.ring { --p: .8; position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--affinity-soft); stroke-width: 3.5; }
.ring circle.val { stroke: var(--affinity); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: calc(97.4 * (1 - var(--p))); transition: stroke-dashoffset 1s var(--ease); }
.ring b { font-weight: 800; color: var(--affinity); font-size: 1rem; font-variant-numeric: tabular-nums; transition: opacity .35s; }
.ring.lg { width: 68px; height: 68px; }
.ring.lg b { font-size: 1.3rem; }
.ring.pending circle.val { stroke-dashoffset: 97.4; }

/* cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 8px auto 0 !important; }
.stat { padding: 22px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--jgt-font-editorial); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* carrusel infinito de destinos */
.marquee-wrap { max-width: none !important; padding: 0 !important; margin: 56px 0 96px !important; display: grid; gap: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.marquee.reverse { animation-direction: reverse; animation-duration: 80s; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.m-card { position: relative; width: 260px; height: 170px; border-radius: 14px; overflow: hidden; flex: none; text-decoration: none; color: var(--jgt-mist); background: var(--plum-deep) center / cover no-repeat; }
.m-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,26,32,0) 40%, rgba(29,26,32,.72)); transition: opacity .3s; }
.m-card span { position: absolute; left: 14px; bottom: 10px; z-index: 1; line-height: 1.15; }
.m-card b { display: block; font-family: var(--jgt-font-editorial); font-weight: 400; font-size: 1.5rem; }
.m-card small { color: rgba(251,250,248,.85); font-size: .8rem; font-weight: 600; }
.m-card:hover { transform: translateY(-3px); }
.m-card { transition: transform .3s var(--ease); }

/* cómo funciona */
.how { margin-bottom: 96px !important; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 44px; border-top: 2px dashed color-mix(in srgb, var(--brand) 25%, transparent); z-index: 0; }
.steps li { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--organic); padding: 26px 24px 24px; transition: transform .35s var(--ease), box-shadow .35s; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.steps .step-n { position: absolute; right: 18px; top: 4px; font-family: var(--jgt-font-editorial); font-size: 4.6rem; line-height: 1; color: var(--plum-soft); }
.steps .ico.big { color: var(--jgt-ink); background: var(--discovery); border-radius: 12px; padding: 8px; width: 46px; height: 46px; stroke-width: 1.6; }
.steps li:nth-child(2) .ico.big { background: var(--affinity); color: var(--jgt-mist); }
.steps li:nth-child(3) .ico.big { background: var(--brand); color: var(--jgt-mist); }
.steps h3 { font-family: var(--jgt-font-editorial); font-weight: 400; font-size: 1.75rem; margin: 16px 0 6px; line-height: 1.1; }
.steps p { margin: 0; color: var(--muted); }

/* rumbos del mes */
.picks { margin-bottom: 96px !important; }
.carousel-nav { display: flex; gap: 8px; }
.carousel { list-style: none; padding: 4px var(--gutter) 24px; margin: 0 calc(-1 * var(--gutter)); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 var(--gutter); }
.carousel::-webkit-scrollbar { display: none; }
.pick { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--organic); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.pick:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pick .photo { aspect-ratio: 4 / 3.4; }
.pick-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pick-body h3 { margin: 0; font-family: var(--jgt-font-editorial); font-weight: 400; font-size: 1.7rem; line-height: 1.05; }
.pick-body h3 small { display: block; font-family: var(--jgt-font-ui); font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.pick-clim { display: flex; align-items: center; gap: 12px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.pick-clim span { display: inline-flex; align-items: center; gap: 4px; }
.pick-clim .ico { width: 16px; height: 16px; color: var(--discovery); }
.pick-clim .rain .ico { color: var(--affinity); }
.spark { width: 100%; height: 38px; display: block; overflow: visible; }
.spark path.l { fill: none; stroke: var(--discovery); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark path.a { fill: color-mix(in srgb, var(--discovery) 14%, transparent); }
.spark circle { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.spark text { font: 700 9px var(--jgt-font-ui); fill: var(--muted); }
.pick .btn { margin-top: auto; align-self: flex-start; }

/* mapa de puntos */
.atlas { margin-bottom: 96px !important; }
.atlas-zones { margin-bottom: 16px; }
.atlas-map { position: relative; background: radial-gradient(120% 90% at 30% 20%, #FFFFFF 0%, var(--surface-warm) 70%); border: 1px solid var(--line); border-radius: 28px 28px 28px 8px; overflow: hidden; }
.atlas-map svg { display: block; width: 100%; height: auto; }
.atlas-map .grat { stroke: color-mix(in srgb, var(--brand) 10%, transparent); stroke-width: .6; fill: none; }
.atlas-map .land { fill: color-mix(in srgb, var(--brand) 11%, transparent); }
.atlas-map .dot { fill: var(--brand); opacity: .55; cursor: pointer; transition: opacity .25s, r .25s, fill .25s; }
.atlas-map .dot.ready { fill: var(--affinity); opacity: 1; }
.atlas-map .dot.dim { opacity: .1; }
.atlas-map .dot:hover, .atlas-map .dot.hot { fill: var(--discovery); opacity: 1; }
.atlas-map .halo { fill: none; stroke: var(--affinity); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; pointer-events: none; }
.atlas-map .arc { fill: none; stroke: var(--discovery); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: .7; animation: march 2s linear infinite; }
.atlas-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--jgt-ink); color: var(--jgt-mist); padding: 6px 10px; border-radius: 8px; font-size: .84rem; font-weight: 600; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); box-shadow: var(--shadow); }
.atlas-tip small { color: rgba(251,250,248,.75); font-size: .76rem; margin-left: 4px; }

/* por qué */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: 96px !important; }
.split-photo { margin: 0; min-height: 520px; height: 100%; border-radius: 28px 28px 28px 8px; background: var(--surface-warm) center / cover no-repeat; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.split-copy h2 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin: 0 0 26px; }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.principles .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--affinity-soft); color: var(--affinity); }
.principles strong { display: block; color: var(--brand); font-size: 1.05rem; }
.principles span { color: var(--muted); }

/* banda final */
.cta-band { position: relative; max-width: none !important; margin: 0 !important; padding: clamp(64px, 9vw, 110px) var(--gutter) !important; background: var(--jgt-plum); color: var(--jgt-mist); overflow: hidden; text-align: center; }
.cta-band h2 { color: var(--jgt-mist); font-size: clamp(2.4rem, 5.5vw, 4.4rem); max-width: 18ch; margin: 0 auto 28px; }
.cta-band h2 em { color: var(--discovery); }
.cta-band .actions { justify-content: center; }
.cta-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-route path { fill: none; stroke: rgba(251,250,248,.18); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; animation: march 2.4s linear infinite; }
.cta-inner { position: relative; }

/* foto con crédito */
.photo { position: relative; background: var(--surface-warm) center / cover no-repeat; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), opacity .6s; opacity: 0; }
.photo img.ok { opacity: 1; }
.credit { position: absolute; right: 8px; bottom: 6px; z-index: 2; font-size: .66rem; color: rgba(251,250,248,.9); text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,.6); opacity: .85; }
.credit:hover { opacity: 1; text-decoration: underline; }

/* ---------------------------------------------------------------- vistas de la aplicación */
.view { padding-bottom: 32px; }
.view-hero { position: relative; color: var(--jgt-mist); background: var(--plum-deep) center / cover no-repeat; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; }
.view-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(51,26,67,.25) 0%, rgba(51,26,67,.55) 55%, rgba(51,26,67,.9) 100%); z-index: 1; }
.view-hero > .bg { position: absolute; inset: -4% 0; background: inherit; background-size: cover; background-position: center; transform: scale(1.06); animation: kenburns 24s ease-in-out infinite alternate; }
.view-hero.compact { min-height: 240px; }
.view-hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 88px; }
.view-hero .eyebrow { color: var(--jgt-mist); text-shadow: 0 1px 8px rgba(29,26,32,.5); }
.view-hero .eyebrow::before { background: var(--discovery); height: 3px; }
.view-hero h2 { color: var(--jgt-mist); font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0 0 12px; max-width: 16ch; }
.view-hero p { max-width: 60ch; margin: 0; color: rgba(251,250,248,.9); font-size: 1.05rem; }
.view-hero .credit { right: 14px; top: 10px; bottom: auto; z-index: 3; }

.panel { position: relative; z-index: 3; max-width: var(--wrap); margin: -56px auto 0; padding: 0 var(--gutter); }
.panel > form, .panel > .searchbar, .narrow-panel > div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); }
.narrow-panel { max-width: 760px; }

/* formularios */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: .9rem; margin-bottom: 14px; flex: 1; color: var(--jgt-ink); }
input, select, textarea { font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--jgt-radius-control); background: var(--jgt-mist); color: var(--text); min-height: 46px; transition: border-color .2s, box-shadow .2s, background .2s; }
input:hover, select:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
input:focus, select:focus { border-color: var(--affinity); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--affinity) 14%, transparent); outline: none; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row label { min-width: 180px; }
.row label.narrow { flex: 0 1 150px; min-width: 120px; }
.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 550; cursor: pointer; }
.check input { min-height: auto; width: 20px; height: 20px; accent-color: var(--affinity); }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; border: 0; padding: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--affinity); }
.switch input:checked::after { transform: translateX(18px); }

.form-step { padding: 4px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.form-step > h3, .form-step > legend, .form-step > summary { display: flex; align-items: center; gap: 12px; font-family: var(--jgt-font-editorial); font-weight: 400; font-size: 1.7rem; color: var(--brand); margin: 0 0 14px; line-height: 1.1; }
.form-step > summary { cursor: pointer; list-style: none; margin: 0; }
.form-step > summary::-webkit-details-marker { display: none; }
.form-step > summary small { font-family: var(--jgt-font-ui); font-size: .85rem; color: var(--muted); font-weight: 600; }
.form-step > summary::after { content: "+"; margin-left: auto; font-family: var(--jgt-font-ui); font-size: 1.4rem; color: var(--muted); transition: transform .3s; }
.form-step[open] > summary { margin-bottom: 16px; }
.form-step[open] > summary::after { transform: rotate(45deg); }
.n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--plum-soft); color: var(--brand); font: 800 .95rem var(--jgt-font-ui); flex: none; }
.form-foot { display: flex; justify-content: flex-end; gap: 12px; align-items: center; }

/* píldoras de mes */
.month-pills { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-bottom: 18px; }
.month-pills label { margin: 0; position: relative; }
.month-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.month-pills span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: .86rem; cursor: pointer; background: var(--jgt-mist); transition: all .2s var(--ease); text-transform: capitalize; }
.month-pills span:hover { border-color: var(--brand); }
.month-pills input:checked + span { background: var(--brand); color: var(--jgt-mist); border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(74,40,95,.25); }
.month-pills input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--affinity) 55%, transparent); outline-offset: 2px; }

/* control segmentado */
.seg-row { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 6px 0 16px; }
.seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; background: var(--jgt-mist); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg-label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 8px 0 6px; }
.seg label { margin: 0; flex: none; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg span { display: block; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s; }
.seg span:hover { background: var(--plum-soft); }
.seg input:checked + span { background: var(--brand); color: var(--jgt-mist); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--affinity) 55%, transparent); }

/* intereses: el verde marca afinidad */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .92rem; font-weight: 650; border: 1px solid var(--line); background: var(--jgt-mist); color: var(--text); border-radius: 999px; padding: 8px 16px 8px 12px; cursor: pointer; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; transition: all .2s var(--ease); }
.chip .ico { width: 18px; height: 18px; color: var(--muted); transition: color .2s; }
.chip:hover { border-color: var(--affinity); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--affinity-soft); border-color: var(--affinity); color: var(--affinity); }
.chip[aria-pressed="true"] .ico { color: var(--affinity); }
.chip.love { background: var(--affinity); color: var(--jgt-mist); border-color: var(--affinity); animation: pop .35s var(--ease); }
.chip.love .ico { color: var(--jgt-mist); }
.chip.love::after { content: "♥"; font-size: .85em; }
.chip.plain { padding: 8px 16px; }

.notice { background: var(--surface-warm); color: var(--jgt-ink); border-left: 4px solid var(--discovery); padding: 12px 16px; border-radius: var(--jgt-radius-control); }
.warnings { background: var(--surface-warm); color: var(--jgt-ink); border-left: 4px solid var(--discovery); border-radius: var(--jgt-radius-control); padding: 12px 16px 12px 34px; font-size: .92rem; }

/* ---------------------------------------------------------------- recomendador: resultados */
#finder-results:not(:empty) { margin-top: 36px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.results-head h3 { font-family: var(--jgt-font-editorial); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; line-height: 1.05; }
.rec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.rec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--organic); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.rec:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rec .photo { aspect-ratio: 16 / 9; }
.rec .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,26,32,0) 30%, rgba(29,26,32,.82)); }
.rec-title { text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.rec-title small { color: rgba(251,250,248,.92); font-weight: 600; }
.rec:hover .photo img { transform: scale(1.05); }
.rec-rank { position: absolute; left: 14px; top: 12px; z-index: 2; background: var(--jgt-mist); color: var(--brand); font: 800 .8rem var(--jgt-font-ui); border-radius: 999px; padding: 4px 10px; }
.rec-badge { position: absolute; right: 12px; top: 12px; z-index: 2; background: var(--affinity); color: var(--jgt-mist); font: 700 .75rem var(--jgt-font-ui); border-radius: 999px; padding: 4px 10px; display: inline-flex; gap: 4px; align-items: center; }
.rec-badge .ico { width: 14px; height: 14px; }
.rec-title { position: absolute; left: 16px; right: 90px; bottom: 12px; z-index: 2; color: var(--jgt-mist); }
.rec-name { margin: 0; font-family: var(--jgt-font-editorial); font-size: 2rem; line-height: 1; }

.rec .ring { position: absolute; right: 14px; bottom: -26px; z-index: 3; background: var(--surface); border-radius: 50%; box-shadow: var(--shadow-sm); }
.rec-body { padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.factors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin: 4px 70px 0 0; }
.factor { font-size: .78rem; font-weight: 700; color: var(--muted); }
.factor i { display: block; height: 6px; border-radius: 6px; background: var(--affinity-soft); margin-top: 4px; overflow: hidden; }
.factor i::after { content: ""; display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--affinity); border-radius: 6px; transform-origin: left; animation: grow 1s var(--ease) both; }
.factor.climate i::after { background: var(--discovery); }
.factor.travel i::after { background: var(--brand); }
.rec-why { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; display: grid; gap: 6px; }
.rec-why li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.rec-why .ico { width: 16px; height: 16px; margin-top: 3px; color: var(--affinity); }
.rec .dest-actions { margin-top: auto; }

/* esqueletos de carga */
.skel { position: relative; overflow: hidden; background: var(--surface-warm); border-radius: var(--organic); min-height: 360px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.3s infinite; }

/* ---------------------------------------------------------------- destinos */
.searchbar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px !important; }
.searchbar > .ico { color: var(--brand); width: 22px; height: 22px; }
.searchbar input { flex: 1; border: 0; background: transparent; font-size: 1.1rem; font-weight: 600; min-width: 0; }
.searchbar input:focus { box-shadow: none; }
.searchbar select { flex: 0 1 220px; }
.zone-chips { margin: 18px 0 8px; }
.dest-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.dest-toolbar .check { margin: 0; flex: none; }
.dest-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.dest { position: relative; border-radius: var(--organic); overflow: hidden; background: var(--plum-deep); min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--jgt-mist); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; isolation: isolate; }
.dest:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.dest .photo { position: absolute; inset: 0; z-index: -1; background-color: var(--plum-deep); }
.dest .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,26,32,.05) 25%, rgba(29,26,32,.35) 55%, rgba(29,26,32,.88) 100%); }
.dest:hover .photo img { transform: scale(1.06); }
.dest-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.dest-name { margin: 0; font-family: var(--jgt-font-editorial); font-size: 1.9rem; line-height: 1.02; color: var(--jgt-mist); }
.dest-meta { margin: 0; font-size: .86rem; font-weight: 600; color: rgba(251,250,248,.88); }
.dest-pop { margin: 0; font-size: .8rem; color: rgba(251,250,248,.75); }
.dest-status { position: absolute; top: 12px; left: 12px; margin: 0; font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(29,26,32,.55); color: var(--jgt-mist); backdrop-filter: blur(6px); display: inline-flex; gap: 4px; align-items: center; }
.dest-status.ready { background: var(--affinity); }
.dest-status .ico { width: 14px; height: 14px; }
.dest-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.dest .btn { --b: var(--jgt-mist); color: var(--jgt-mist); }
.dest .btn:hover { background: rgba(251,250,248,.14); }
.dest .btn.primary { background: var(--jgt-mist); color: var(--brand); }
.dest .link { color: var(--jgt-mist); }
.more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .ico { width: 42px; height: 42px; color: var(--brand); }

/* ---------------------------------------------------------------- planificador */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 26px; counter-reset: st; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); transition: color .3s, border-color .3s; }
.stepper li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--jgt-ink); font-size: .75rem; transition: background .3s, color .3s; }
.stepper li.done { color: var(--affinity); border-top-color: var(--affinity); }
.stepper li.done span { background: var(--affinity); color: var(--jgt-mist); }
.stepper li.current { color: var(--brand); border-top-color: var(--discovery); }
.stepper li.current span { background: var(--discovery); }

.stops { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 0; position: relative; }
.stop { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 14px 14px 14px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--jgt-mist); margin-bottom: 18px; animation: rise .45s var(--ease) both; }
.stop:not(:last-child)::after { content: ""; position: absolute; left: 51px; bottom: -19px; height: 18px; border-left: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent); }
.stop-thumb { width: 76px; height: 76px; border-radius: 14px 14px 14px 4px; background: var(--plum-soft) center / cover no-repeat; position: relative; display: grid; place-items: center; color: var(--brand); }
.stop-thumb b { position: absolute; left: -8px; top: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--jgt-mist); font-size: .8rem; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface); }
.stop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; color: var(--brand); gap: 8px; }
.stop-head strong { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stop-tools { display: flex; gap: 4px; }
.stop-tools .icon-btn { width: 32px; height: 32px; }
.stop .row label { margin-bottom: 8px; }
.stop .hint { margin: 0; font-size: .85rem; }
.leg { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 8px; }
.leg legend { font-weight: 700; color: var(--brand); font-size: .92rem; }

.plan-summary { position: sticky; top: 96px; background: var(--jgt-plum); color: var(--jgt-mist); border-radius: 22px 22px 22px 6px; padding: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.plan-summary::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; background: url(/brand/simbolo-color.svg) center / contain no-repeat; opacity: .10; filter: brightness(3); }
.plan-summary h3 { color: var(--jgt-mist); font-family: var(--jgt-font-editorial); font-weight: 400; font-size: 1.8rem; margin: 0 0 14px; line-height: 1.05; }
.plan-summary .eyebrow { color: var(--discovery); }
.ps-stops { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; position: relative; }
.ps-stops li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; position: relative; }
.ps-stops li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; height: 10px; border-left: 2px dotted rgba(251,250,248,.45); }
.ps-stops .t { width: 44px; height: 44px; border-radius: 10px; background: rgba(251,250,248,.12) center / cover no-repeat; }
.ps-stops strong { display: block; line-height: 1.15; }
.ps-stops small { color: rgba(251,250,248,.75); font-size: .8rem; }
.ps-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.ps-facts div { background: rgba(251,250,248,.09); border-radius: 10px; padding: 10px 12px; }
.ps-facts dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(251,250,248,.7); font-weight: 700; }
.ps-facts dd { margin: 0; font-weight: 700; }
.ps-empty { color: rgba(251,250,248,.8); font-size: .92rem; }

/* ---------------------------------------------------------------- viaje */
.trip-hero { min-height: 380px; }
.trip-hero h2 { max-width: 22ch; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 16px 18px; }
.trip-route { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 700; color: var(--brand); }
.trip-route .rt { display: inline-flex; align-items: center; gap: 8px; }
.trip-route .rt i { width: 30px; height: 30px; border-radius: 50%; background: center / cover no-repeat var(--plum-soft); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.trip-route .sep { color: var(--discovery); letter-spacing: 2px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 18px; padding: 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.kpi .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--plum-soft); color: var(--brand); }
.kpi:nth-child(2) .ico { background: var(--affinity-soft); color: var(--affinity); }
.kpi:nth-child(3) .ico { background: var(--discovery-soft); color: var(--warn-ink); }
.kpi.wide { grid-column: span 2; }
.kpi b { display: block; font-family: var(--jgt-font-editorial); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--brand); }
.kpi small { font-size: .8rem; font-weight: 600; }
.transfers-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0 0 12px; }
.transfers-box h3 { margin: 0 0 8px; font-size: 1rem; }
.transfers { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.transfers li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.transfers .ico { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--discovery-soft); color: var(--warn-ink); }

.stop-block { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.stop-cover { position: relative; min-height: 220px; display: flex; align-items: flex-end; color: var(--jgt-mist); }
.stop-cover .photo { position: absolute; inset: 0; }
.stop-cover .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,26,32,.1), rgba(29,26,32,.78)); }
.stop-title { position: relative; z-index: 2; padding: 22px 22px 18px; }
.stop-title h3 { margin: 0; font-family: var(--jgt-font-editorial); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.02; color: var(--jgt-mist); }
.stop-title h3 .num { font-size: .55em; vertical-align: .45em; margin-right: 6px; color: var(--discovery); }
.stop-title small { display: block; font-family: var(--jgt-font-ui); color: rgba(251,250,248,.9); font-size: .92rem; font-weight: 600; margin-top: 6px; }
.stop-inner { padding: 8px 22px 22px; }
.stop-inner > .hint { margin-top: 14px; }
.notes { color: var(--muted); font-size: .9rem; padding-left: 20px; margin: 10px 0; }
.day-nav { position: sticky; top: 78px; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; background: linear-gradient(180deg, var(--surface) 75%, transparent); margin: 0 -2px; }
.day-nav::-webkit-scrollbar { display: none; }
.day-nav a { flex: none; text-decoration: none; font-size: .84rem; font-weight: 700; color: var(--jgt-ink); padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; gap: 6px; transition: border-color .2s, background .2s; }
.day-nav a:hover, .day-nav a.on { border-color: var(--brand); background: var(--plum-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.day { padding-top: 18px; margin-top: 12px; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.day h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--jgt-font-editorial); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.day h4 .dnum { font-family: var(--jgt-font-ui); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--jgt-mist); border-radius: 999px; padding: 3px 10px; }
.day h4 .dname::first-letter { text-transform: uppercase; }
.holiday { font-family: var(--jgt-font-ui); font-size: .74rem; background: var(--discovery); color: var(--jgt-ink); border-radius: 6px; padding: 2px 8px; font-weight: 700; }
.weather { display: inline-flex; align-items: center; gap: 8px; color: var(--jgt-ink); font-weight: 600; font-size: .88rem; margin: 0 0 10px; background: var(--jgt-mist); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 8px; }
.weather .ico { color: var(--discovery); }
.weather.medium { background: var(--discovery-soft); border-color: transparent; color: var(--warn-ink); }
.weather.high { background: #F6DDE1; border-color: transparent; color: var(--danger); }
.weather.high .ico, .weather.medium .ico { color: currentColor; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 91px; top: 12px; bottom: 12px; border-left: 2px solid var(--line); }
.item { display: grid; grid-template-columns: 60px 44px 1fr; gap: 0 10px; padding: 8px 0; position: relative; }
.item .time { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--brand); font-size: .92rem; padding-top: 8px; text-align: right; }
.item .time span { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.item .node { position: relative; z-index: 1; width: 36px; height: 36px; margin: 2px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: var(--muted); }
.item .node .ico { width: 18px; height: 18px; }
.item .body { background: transparent; border-radius: 14px; padding: 8px 12px; transition: background .2s; min-width: 0; }
.item:hover .body { background: var(--jgt-mist); }
.t-visit .node, .t-activity .node { background: var(--affinity); border-color: var(--affinity); color: var(--jgt-mist); }
.t-visit .body, .t-activity .body { background: var(--jgt-mist); border: 1px solid var(--line); }
.t-meal .node { background: var(--discovery-soft); border-color: var(--discovery-soft); color: var(--warn-ink); }
.t-arrival .node, .t-departure .node, .t-check_in .node, .t-check_out .node { background: var(--plum-soft); border-color: var(--plum-soft); color: var(--brand); }
.t-transfer .title, .t-buffer .title, .t-rest .title { font-weight: 500; color: var(--muted); }
.title { margin: 0; font-weight: 700; }
.tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin-right: 6px; }
.t-visit .tag, .t-activity .tag { color: var(--affinity); }
.conf { font-size: .72rem; background: var(--discovery-soft); color: var(--warn-ink); border-radius: 6px; padding: 1px 6px; margin-left: 6px; font-weight: 700; white-space: nowrap; }
.pin { font-size: .72rem; background: var(--brand); color: var(--brand-ink); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.why, .cost { color: var(--muted); margin: 3px 0 0; font-size: .9rem; }
.fallback { margin: 8px 0 0; font-size: .9rem; background: var(--affinity-soft); border-radius: var(--jgt-radius-control); padding: 6px 10px; }
.item.removed { opacity: .45; }
.item.removed .title { text-decoration: line-through; }
.item-actions { display: flex; gap: 14px; margin-top: 6px; font-size: .86rem; }
details summary { cursor: pointer; color: var(--brand); font-size: .9rem; font-weight: 700; }
details ul { margin: 6px 0 0; padding-left: 20px; font-size: .9rem; color: var(--muted); }

.budget { margin: 16px 0; background: var(--surface-warm); border-radius: 16px; padding: 14px 16px; }
.budget summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.budget summary .ico { color: var(--brand); }
.budget-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; margin: 12px 0 8px; background: var(--line); }
.budget-bar i { display: block; height: 100%; animation: grow 1s var(--ease) both; transform-origin: left; }
.budget-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.budget-legend span { display: inline-flex; align-items: center; gap: 6px; }
.budget-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.budget table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .92rem; }
.budget td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.budget td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.map-wrap { margin: 12px 0; }
.map { height: 420px; border-radius: 16px; border: 1px solid var(--line); margin-top: 10px; }
.map .leaflet-tile-pane { filter: saturate(.55) sepia(.12) contrast(.98); }
.pin-icon span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50% 50% 50% 4px; color: #fff; font-weight: 800; font-size: 13px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); font-family: var(--jgt-font-ui); }
.excluded { margin-top: 20px; }
.replan-bar { position: sticky; bottom: 16px; z-index: 8; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--jgt-ink); color: var(--jgt-mist); border-radius: 16px; padding: 12px 14px 12px 18px; box-shadow: var(--shadow-lg); margin-top: 18px; animation: rise .4s var(--ease); }
.replan-bar .btn.primary { background: var(--discovery); color: var(--jgt-ink); --b: var(--discovery); }


/* ---------------------------------------------------------------- herramientas del viaje */
.pro-tag { display: inline-block; font: 800 .62rem var(--jgt-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--jgt-ink); background: var(--discovery); border-radius: 5px; padding: 2px 5px; margin-left: 6px; vertical-align: 1px; }
.pro-note { margin: 8px 2px 0; font-size: .8rem; color: var(--muted); }
.pro-note .pro-tag { margin: 0 4px 0 0; }
.trip-tabs { display: flex; gap: 6px; margin-top: 16px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; scrollbar-width: none; }
.trip-tabs button { font: inherit; font-weight: 700; font-size: .92rem; border: 0; background: transparent; color: var(--muted); padding: 10px 14px; border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .2s, color .2s; }
.trip-tabs button:hover { background: var(--plum-soft); color: var(--brand); }
.trip-tabs button[aria-selected="true"] { background: var(--brand); color: var(--jgt-mist); }
.share-box { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); animation: rise .35s var(--ease); }
.share-box p { margin: 0 0 10px; }
.share-row { display: flex; gap: 8px; margin-bottom: 10px; }
.share-row input { flex: 1; min-width: 0; font-size: .85rem; }
.tool-panel { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 3vw, 28px); animation: rise .4s var(--ease); }
.tool-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tool-head h3 { margin: 0 0 4px; font-family: var(--jgt-font-editorial); font-weight: 400; font-size: 2rem; line-height: 1.05; }
.tool-head .hint { margin: 0; }
.progress-ring { text-align: right; min-width: 120px; }
.progress-ring b { display: block; font-size: 1.4rem; color: var(--affinity); }
.progress-ring i { display: block; height: 8px; border-radius: 8px; background: var(--affinity-soft); overflow: hidden; position: relative; }
.progress-ring i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: var(--affinity); border-radius: 8px; transition: width .4s var(--ease); }
.check-group { margin: 14px 0 0; }
.check-group legend { font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.check-item { flex-direction: row; align-items: center; gap: 12px; font-weight: 500; padding: 10px 12px; margin: 0 0 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--jgt-mist); cursor: pointer; transition: background .2s, border-color .2s; }
.check-item input { min-height: 0; width: 20px; height: 20px; accent-color: var(--affinity); flex: none; }
.check-item span { flex: 1; }
.check-item.done { background: var(--affinity-soft); border-color: transparent; }
.check-item.done span { text-decoration: line-through; color: var(--muted); }
.deal-link { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 800; color: var(--warn-ink); background: var(--discovery-soft); border-radius: 999px; padding: 4px 10px; text-decoration: none; white-space: nowrap; }
.deal-link .ico { width: 14px; height: 14px; }
.add-row { display: flex; gap: 8px; margin-top: 14px; }
.add-row input { flex: 1; min-width: 0; }
.narrow-label { flex: 0 0 auto; margin: 0; }
.exp-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; background: var(--surface-warm); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.exp-summary small { display: block; color: var(--muted); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.exp-summary b { font-size: 1.3rem; color: var(--brand); }
.exp-summary .hint { grid-column: 1 / -1; margin: 0; }
.exp-bar { grid-column: 1 / -1; height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; }
.exp-bar i { display: block; height: 100%; background: var(--affinity); border-radius: 10px; transition: width .5s var(--ease); }
.exp-bar.over i { background: var(--danger); }
.exp-form { display: grid; grid-template-columns: 2fr 1fr .8fr 1fr 1fr 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 14px; }
.exp-form input, .exp-form select { min-height: 42px; padding: 8px 10px; font-size: .92rem; }
.exp-form input[hidden] { display: none; }
.exp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.exp-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.exp-table td { padding: 8px; border-bottom: 1px dashed var(--line); }
.exp-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exp-people { margin: 16px 0 10px; }
.people { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.people input { width: 150px; min-height: 40px; }
.settle { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; color: var(--jgt-ink); }
.settle li { background: var(--affinity-soft); border-radius: 10px; padding: 8px 12px; }
.drop { flex-direction: row; align-items: center; justify-content: center; gap: 10px; border: 2px dashed var(--line); border-radius: 16px; padding: 22px; cursor: pointer; color: var(--brand); font-weight: 700; transition: border-color .2s, background .2s; }
.drop:hover { border-color: var(--brand); background: var(--plum-soft); }
.doc-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.doc-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.doc-list li .link:first-of-type { flex: 1; text-align: left; }
.gmaps { margin-left: auto; font-family: var(--jgt-font-ui); font-size: .8rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; background: var(--surface); }
.gmaps:hover { border-color: var(--brand); }
.gmaps .ico { width: 16px; height: 16px; }
.btn .pro-tag { margin-left: 0; }

/* ---------------------------------------------------------------- mis viajes, cuenta */
.saved-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.saved-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--organic); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.saved-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.saved-card .photo { aspect-ratio: 16 / 9; }
.saved-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.saved-body .link.open { font-family: var(--jgt-font-editorial); font-weight: 400; font-size: 1.6rem; text-decoration: none; text-align: left; line-height: 1.1; }
.saved-body .row-actions { display: flex; gap: 14px; margin-top: 6px; }
.saved-empty { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 40px 24px; text-align: center; }
.saved-empty .ico { width: 44px; height: 44px; color: var(--brand); }
.saved-empty p { max-width: 44ch; margin: 10px auto 18px; color: var(--muted); }
.saved-empty .actions { justify-content: center; }


/* ---------------------------------------------------------------- descuentos */
.nav-deals { display: inline-flex !important; align-items: center; gap: 6px; }
.nav-deals::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--discovery); }
.deals-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 14px 18px; }
.deals-count { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand); }
.deals-count .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--discovery); color: var(--jgt-ink); }
.deals-bar .check { margin: 0; flex: none; }
.deals-cats { margin: 18px 0 6px; }
.deal-cat { margin-top: 34px; }
.deal-cat > header { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.deal-cat-ico .ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--brand); color: var(--jgt-mist); }
.deal-cat h3 { margin: 0; font-family: var(--jgt-font-editorial); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.05; }
.deal-cat header p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.deal-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.deal { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--organic); padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.deal:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.deal.has-discount { border-color: var(--discovery); background: linear-gradient(180deg, var(--discovery-soft), var(--surface) 55%); }
.deal-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.deal-ico .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--plum-soft); color: var(--brand); }
.deal-badge { background: var(--discovery); color: var(--jgt-ink); font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 4px 10px; }
.deal h3 { margin: 0; font-family: var(--jgt-font-ui); font-weight: 800; font-size: 1.15rem; color: var(--jgt-ink); }
.deal-product { margin: 0; font-size: .82rem; font-weight: 700; color: var(--affinity); text-transform: uppercase; letter-spacing: .04em; }
.deal-perk { margin: 0 0 8px; color: var(--muted); font-size: .9rem; flex: 1; }
.deal .btn { align-self: flex-start; }
.deal-code { font: inherit; display: inline-flex; align-items: center; gap: 6px; border: 1.5px dashed var(--discovery); background: var(--surface); color: var(--jgt-ink); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: .86rem; margin-bottom: 6px; align-self: flex-start; }
.deals-disclosure { margin: 40px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--surface-warm); color: var(--muted); font-size: .86rem; }

/* bloque de portada */
.deals-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 96px !important; }
.deals-band h2 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin: 0 0 12px; }
.deals-band .hint { margin: 0 0 22px; max-width: 48ch; font-size: 1rem; }
.deals-teaser { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.deals-teaser li:first-child { grid-column: span 2; }
.deals-teaser a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--jgt-ink); font-weight: 700; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.deals-teaser a:hover { transform: translateY(-3px); border-color: var(--discovery); box-shadow: var(--shadow-sm); }
.deals-teaser .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--discovery-soft); color: var(--warn-ink); }

/* ---------------------------------------------------------------- carga, avisos */
.loader { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(251, 250, 248, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s both; }
.loader-card { text-align: center; background: var(--surface); border-radius: 22px 22px 22px 6px; padding: 28px 36px; box-shadow: var(--shadow-lg); max-width: 88vw; }
.loader-card p { font-family: var(--jgt-font-editorial); font-size: 1.8rem; color: var(--brand); margin: 12px 0 2px; }
.loader-compass { width: 76px; height: 76px; }
.loader-compass circle { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 4 6; }
.loader-compass .needle { fill: var(--discovery); transform-origin: 32px 32px; animation: needle 1.8s var(--ease) infinite; }
.loader-compass .hub { fill: var(--brand); stroke: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(92vw, 560px); background: var(--jgt-ink); color: var(--jgt-mist); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 80; font-size: .95rem; font-weight: 600; animation: toastIn .35s var(--ease); }
.toast.error { background: var(--danger); color: #fff; }

/* ---------------------------------------------------------------- pie */
.footer { background: var(--plum-deep); color: var(--jgt-mist); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 40px; }
.footer img { width: 200px; height: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; max-width: 36ch; color: rgba(251,250,248,.85); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols strong { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--discovery); margin-bottom: 4px; }
.footer a { color: var(--jgt-mist); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .fine { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid rgba(251,250,248,.15); color: rgba(251,250,248,.7); font-size: .82rem; }

/* páginas estáticas (privacidad, créditos) */
.doc { max-width: 820px; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); }
.doc-card h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 16px; }
.doc-card h2 { font-size: 1.8rem; margin: 28px 0 8px; }
.credits-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; font-size: .86rem; }
.credits-grid li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.credits-grid i { width: 52px; height: 40px; border-radius: 8px; background: var(--surface-warm) center / cover no-repeat; }

/* ---------------------------------------------------------------- movimiento */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }
.view:not([hidden]) .panel { animation: rise .6s .05s var(--ease) both; }
.view:not([hidden]) .view-hero-inner > * { animation: rise .7s var(--ease) both; }
.view:not([hidden]) .view-hero-inner > *:nth-child(2) { animation-delay: .08s; }
.view:not([hidden]) .view-hero-inner > *:nth-child(3) { animation-delay: .16s; }
.stagger > * { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes march { to { stroke-dashoffset: -24; } }
@keyframes pulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes halo { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes kenburns { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes needle { 0% { transform: rotate(-40deg); } 50% { transform: rotate(35deg); } 100% { transform: rotate(-40deg); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { animation: none !important; }
  .hero h1 .accent path { stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .topbar-cta { display: none; }
  .plan-layout { grid-template-columns: 1fr; }
  .plan-summary { position: static; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8px !important; }
  .hero-art { order: -1; height: 380px; min-height: 0; }
  .float-card { left: 4%; top: auto; bottom: -10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .split { grid-template-columns: 1fr; }
  .deals-band { grid-template-columns: 1fr; }
  .split-photo { min-height: 320px; }
  .month-pills { grid-template-columns: repeat(6, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .topbar-inner { padding: 10px 16px; }
  .mainnav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .62rem; font-weight: 700; padding: 4px 0; border-radius: 12px; }
  .tabbar a .ico { width: 24px; height: 24px; transition: transform .25s var(--ease); }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .tabbar a[aria-current="page"] .ico { transform: translateY(-2px); color: var(--brand); }
  .tabbar a[aria-current="page"] span { position: relative; }
  .tabbar a[aria-current="page"] span::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--discovery); }
  .hero-art { height: 300px; }
  .ph-a { left: 12%; width: 76%; height: 72%; }
  .ph-b { width: 42%; height: 38%; }
  .ph-c { width: 40%; height: 40%; }
  .float-card { min-width: 0; max-width: 78%; padding: 8px 12px 8px 8px; }
  .float-card .ring { width: 42px; height: 42px; }
  .quick { flex-wrap: wrap; padding: 8px; }
  .q-field { flex: 1 1 45%; border-right: 0; border-bottom: 1px solid var(--line); }
  .q-days { flex: 1 1 45%; }
  .quick .btn { width: 100%; margin-top: 8px; }
  .q-field:first-child { flex: 1 1 100%; }
  .q-field:nth-child(2) { flex: 1 1 50%; }
  .kpi.wide { grid-column: 1 / -1; }
  .stat { padding: 16px 12px 16px 0; border-left: 0; }
  .marquee-wrap { margin: 32px 0 56px !important; }
  .m-card { width: 200px; height: 140px; }
  .how, .picks, .atlas, .split, .deals-band { margin-bottom: 64px !important; }
  .deal-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .deal { padding: 12px; }
  .deal .btn { font-size: .8rem; padding: 7px 10px; }
  .view-hero { min-height: 280px; }
  .view-hero.compact { min-height: 200px; }
  .view-hero-inner { padding: 40px 16px 76px; }
  .panel { padding: 0 12px; }
  .month-pills { grid-template-columns: repeat(4, 1fr); }
  .rec-list { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .dest { min-height: 260px; }
  .dest-name { font-size: 1.5rem; }
  .dest-pop { display: none; }
  .searchbar { flex-wrap: wrap; }
  .deals-cats, .zone-chips, .atlas-zones { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -12px; margin-right: -12px; padding: 2px 12px; }
  .deals-cats .chip, .zone-chips .chip, .atlas-zones .chip { flex: none; }
  .searchbar select { flex: 1 1 100%; }
  .stepper li { font-size: 0; gap: 0; }
  .stepper li span { font-size: .75rem; }
  .stop { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .stop-thumb { width: 56px; height: 56px; }
  .stop:not(:last-child)::after { left: 41px; }
  .timeline::before { left: 73px; }
  .item { grid-template-columns: 48px 40px 1fr; gap: 0 6px; }
  .item .node { width: 32px; height: 32px; }
  .day-nav { top: 60px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .exp-form { grid-template-columns: 1fr 1fr; }
  .exp-form input[name=desc] { grid-column: 1 / -1; }
  .exp-form button { grid-column: 1 / -1; }
  .exp-table th:nth-child(3), .exp-table td:nth-child(3), .exp-table th:nth-child(4), .exp-table td:nth-child(4) { display: none; }
  .gmaps { margin-left: 0; }
  .result-head .actions .btn { padding: 8px 12px; font-size: .86rem; }
  .replan-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media print {
  .topbar, .tabbar, .actions, .footer, .replan-bar, .item-actions, .map-wrap, .toast, .day-nav, .loader, .progress, .credit, .trip-tabs, .pro-note, .tool-panel, .share-box, .gmaps { display: none !important; }
  #trip-view { display: block !important; }
  .view-hero { min-height: 0; color: var(--jgt-ink); background: none !important; }
  .view-hero::before, .view-hero > .bg { display: none; }
  .view-hero h2, .view-hero p { color: var(--brand); }
  .panel { margin-top: 0; }
  .stop-block, .result-head { box-shadow: none; }
  .stop-cover { min-height: 0; color: var(--jgt-ink); }
  .stop-cover .photo { display: none; }
  .stop-title h3, .stop-title small { color: var(--brand); }
  details { display: block; }
}
