/* ============================================================
   TourGuide — UI v2 "The Journey"
   Scroll-driven immersive homepage. Loads AFTER redesign.css so it
   inherits every design token (--orange, --cream, --ink, fonts…).
   A re-brand of redesign.css :root flows through here automatically.
   ============================================================ */

/* ---------- page shell ---------- */
/* NOTE: class is `journey-page`, NOT `journey` — redesign.css already owns a
   `.journey` component (the "how it works" timeline, max-width:880px). Putting
   `journey` on <html> caged the whole document at 880px and broke centering. */
.journey-page {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  overflow-x: clip;
  /* Gentle snapping: each scene has two resting points — its heading (top)
     and its skyline (bottom edge flush with the screen bottom). On desktop a
     scene is one screen tall, so both are the same stop. "proximity" only
     pulls when you stop near a point, so tall phone scenes stay freely
     scrollable and nothing gets skipped. */
  scroll-snap-type: y proximity;
  scroll-padding-top: 0;   /* scenes clear the fixed nav with their own padding */
}
.scene { scroll-snap-align: start; }
/* scenes with a skyline rest ONLY with the skyline on the bottom edge. A scene
   is >= one screen tall, so its top and bottom stops sat ~one browser-bar apart
   on phones and the browser picked either; one stop per scene removes that. */
.scene:has(.scene-snap-end) { scroll-snap-align: none; }
/* No snapping on touch devices: every mobile browser collapses its toolbars
   (top or bottom) differently and recomputes snap points against a changing
   viewport, so resting points drift per browser. Desktop keeps it. */
@media (pointer: coarse) {
  .journey-page { scroll-snap-type: none; }
}
.scene-snap-end {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  scroll-snap-align: end; pointer-events: none; visibility: hidden;
}

/* The sky is one fixed layer behind everything; journey.js drives its
   gradient stops from scroll progress (dawn → dusk). */
#sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg,
      var(--sky-top, #f7d9b8) 0%,
      var(--sky-mid, #f6c48c) 45%,
      var(--sky-bot, #f3ae76) 100%);
  transition: background 120ms linear;
  will-change: background;
}
/* A soft sun/moon disc that also drifts + recolors with the day. */
#sky::after {
  content: '';
  position: absolute;
  left: var(--sun-x, 74%);
  top: var(--sun-y, 20%);
  translate: -50% -50%;
  width: clamp(130px, 18vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf4 0%, var(--sun, #fff3e0) 30%, var(--sun-glow, rgba(255,241,200,.55)) 56%, transparent 74%);
  filter: blur(1px);
  transition: left 200ms linear, top 200ms linear, background 200ms linear;
  will-change: left, top;
}
/* soft radiant glow around the sun — NO beams (beams + the Hemisfèric eye read
   as an "eye of providence"; a plain glow keeps it radiant without that) */
#sky::before {
  content: '';
  position: absolute;
  left: var(--sun-x, 80%);
  top: var(--sun-y, 18%);
  translate: -50% -50%;
  width: clamp(260px, 34vw, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun-glow, rgba(255,243,205,.55)) 0%, transparent 66%);
  opacity: .8;
  pointer-events: none;
}
@keyframes sunSpin { to { rotate: 360deg; } }

/* ---------- top nav ---------- */
.j-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(18px, 5vw, 48px);
  transition: background-color var(--transition), box-shadow var(--transition);
}
/* the bar hides by default and slides in on scroll-up (journey.js adds .is-shown) */
.j-nav { transform: translateY(-110%); transition: transform .32s cubic-bezier(.2,.7,.2,1), background-color var(--transition), box-shadow var(--transition); }
.j-nav.is-shown, .j-nav:focus-within { transform: none; }
@media (prefers-reduced-motion: reduce) { .j-nav { transition: none; } }

/* hero-integrated navigation (top of the first scene, scrolls away with it) */
.hero-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 18px clamp(18px, 5vw, 48px);
}
.hero-logo { font-family: var(--font-serif); font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--ink); text-decoration: none; white-space: nowrap; }
.hero-links { display: flex; gap: 24px; margin-left: 28px; flex: 1; }
.hero-links a { white-space: nowrap; font: 500 0.95rem/1 var(--font-sans); color: color-mix(in srgb, var(--ink) 80%, transparent); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; transition: color var(--transition), border-color var(--transition); }
.hero-links a:hover, .hero-links a:focus-visible { color: var(--ink); border-bottom-color: var(--orange); outline: none; }
.hero-nav .lang-switcher { background: color-mix(in srgb, var(--white) 55%, transparent); border-color: transparent; }
.hero-nav .lang-btn { color: color-mix(in srgb, var(--ink) 70%, transparent); }
.hero-nav .lang-btn.active { background: var(--ink); color: var(--white); }
.hero-cta { padding: 10px 20px; border-radius: 999px; background: var(--orange-btn); color: var(--white); font: 600 0.9rem/1 var(--font-sans); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-sm, 0 4px 14px rgba(0,0,0,.12)); }
.hero-cta:hover { background: var(--orange-deep); }
/* "Mis reservas" is the person icon beside the language switcher on every screen, as on phones */
.hero-links .hero-my-text { display: none; }
.hero-account { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); background: color-mix(in srgb, var(--white) 55%, transparent); text-decoration: none; }
.hero-account:hover, .hero-account:focus-visible { background: var(--white); outline: none; }
.j-hero-ig { margin: -8px 0 26px; }   /* Instagram link: a small glass chip between the lead text and the scroll cue (the arrow stays last) */
.j-hero-ig-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 999px; background: color-mix(in srgb, var(--white) 32%, transparent); border: 1px solid color-mix(in srgb, var(--white) 55%, transparent); color: color-mix(in srgb, var(--ink) 78%, transparent); font: 500 0.82rem/1 var(--font-sans); text-decoration: none; transition: background var(--transition), color var(--transition); }
.j-hero-ig-chip:hover, .j-hero-ig-chip:focus-visible { background: color-mix(in srgb, var(--white) 55%, transparent); color: var(--ink); outline: none; }
.j-hero-ig-chip .ig-glyph { width: 15px; height: 15px; }
/* tablet: one row cannot hold logo, five links, languages, account and CTA (ru/uk labels are longer than es):
   [logo | langs | person | CTA] then the links on a second row */
@media (min-width: 761px) and (max-width: 1180px) {
  .hero-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 12px; align-items: center; padding: 14px clamp(18px, 4vw, 40px); }
  .hero-logo { grid-row: 1; grid-column: 1; justify-self: start; }
  .hero-nav .lang-switcher { grid-row: 1; grid-column: 2; }
  .hero-account { grid-row: 1; grid-column: 3; }
  .hero-cta { grid-row: 1; grid-column: 4; }
  .hero-links { grid-row: 2; grid-column: 1 / -1; margin: 0; gap: 28px; }
}
@media (max-width: 760px) {
  /* two quiet rows: [logo | langs | person icon] then the links spread across */
  .hero-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 8px; padding: 14px 16px; }
  .hero-account { grid-row: 1; grid-column: 3; margin-right: -8px; }
  .hero-logo { font-size: 1.02rem; white-space: normal; justify-self: start; text-align: left; }
  .hero-nav .lang-switcher { grid-row: 1; grid-column: 2; }
  .hero-links { grid-row: 2; grid-column: 1 / -1; margin: 0; justify-content: space-between; gap: 0; }
  .hero-links a { font-size: 0.84rem; padding: 10px 2px; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
  .hero-nav .lang-btn { padding: 5px 8px; font-size: 0.7rem; }
  .hero-cta { display: none; }   /* phones book from the tour cards / bar menu */
}

.j-nav.is-solid {
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.j-logo {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.3rem);   /* "Valencia con Marina" fits mobile too */
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-decoration: none;
  white-space: nowrap;
}
/* the orange (logo) in front of the name: top bar, hero and footer */
.j-logo, .hero-logo { display: inline-flex; align-items: center; }
.j-logo::before, .hero-logo::before {
  content: ''; flex: none; display: inline-block; vertical-align: middle;
  width: 1.55em; height: 1.55em; margin-right: 0.4em;
  background: url(/media/brand/naranja.svg) center / contain no-repeat;
}
.j-nav-spacer { flex: 1; }
/* direct links in the top bar: inline on desktop, a second row on phones */
.j-nav-links { display: flex; gap: 22px; margin-left: 28px; }
.j-nav-menu-cta, .j-nav-toggle { display: none; }
.j-nav-links a {
  font: 500 0.92rem/1 var(--font-sans); color: color-mix(in srgb, var(--white) 86%, transparent);
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.j-nav-links a:hover, .j-nav-links a:focus-visible { color: var(--white); border-bottom-color: var(--orange); outline: none; }
/* in-page anchors land below the fixed bar */
.j-anchor { position: absolute; top: 0; }
#about, #contact { scroll-margin-top: 110px; }
.j-nav .lang-switcher { background: color-mix(in srgb, var(--white) 12%, transparent); border-color: transparent; }
.j-nav .lang-btn { color: color-mix(in srgb, var(--white) 78%, transparent); }
.j-nav .lang-btn.active { background: var(--white); color: var(--ink); }
/* "Mis reservas" is the person icon beside the languages here too, as in the hero row */
.j-nav-links .j-nav-my-text { display: none; }
.j-nav-account { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 999px; color: var(--white); background: color-mix(in srgb, var(--white) 12%, transparent); text-decoration: none; }
.j-nav-account:hover, .j-nav-account:focus-visible { background: color-mix(in srgb, var(--white) 24%, transparent); outline: none; }
.j-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--orange-btn);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}
.j-nav-cta:hover { background: var(--orange-deep); transform: translateY(-1px); }

/* ---------- scenes ---------- */
.scenes { position: relative; z-index: 1; }

.scene {
  position: relative;
  /* lvh = the screen with the browser bar hidden: a snapped scene must fill the
     whole screen after the bar collapses, or the next scene peeks in below */
  min-height: 100vh;
  min-height: 100lvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);  /* one FULL-WIDTH column to centre in */
  justify-items: center;   /* horizontal centre of every content block */
  align-content: center;   /* vertical centre of the stack */
  gap: 24px;
  padding: 12svh clamp(18px, 6vw, 90px) 14svh;
  /* the landmark-pin layers live outside the clipped .scene-art: unclipped they
     widened the page on phones and, as parallax pushed them down, floated
     into the next scene's sky */
  overflow: clip;
  /* NOTE: no content-visibility/contain-intrinsic-size here — a bare
     `contain-intrinsic-size: 100svh` sets the contained WIDTH to ~viewport
     height, which squashed the scene to a narrow left-pinned box. */
}

/* The layered SVG art fills the scene; layers sit absolutely and are
   nudged by journey.js via --p (−1..1 progress through the viewport). */
.scene-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.scene-art .layer {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1600px, 140%);
  transform: translateX(-50%) translateY(var(--layer-shift, 0));
  will-change: transform;
}
.scene-art .layer svg { display: block; width: 100%; height: auto; }
/* depth: back drifts least, front most (multipliers set inline per layer) */

/* Papercut silhouette depth fills — derived from --ink so a re-brand
   keeps the layering. Back = hazy/light, front = near-solid. */
.sil-back  { fill: color-mix(in srgb, var(--ink) 32%, transparent); }
.sil-mid   { fill: color-mix(in srgb, var(--ink) 58%, transparent); }
.sil-front { fill: color-mix(in srgb, var(--ink) 86%, transparent); }
.sil-accent{ fill: color-mix(in srgb, var(--orange) 78%, transparent); }
.sil-leaf  { fill: color-mix(in srgb, #3f6b3a 70%, transparent); }
.sil-leaf-back { fill: color-mix(in srgb, #3f6b3a 40%, transparent); }
.sil-bloom { fill: color-mix(in srgb, var(--white) 82%, transparent); }
.sil-light { fill: color-mix(in srgb, var(--white) 80%, transparent); }   /* lit windows / cutouts on dark silhouettes */
.sil-sea-far  { fill: color-mix(in srgb, #1d5f78 62%, transparent); }
.sil-sea-mid  { fill: color-mix(in srgb, #12455c 78%, transparent); }
.sil-sea-near { fill: color-mix(in srgb, #0c2f42 90%, transparent); }
.sil-hull { fill: color-mix(in srgb, var(--ink) 88%, transparent); }
.sil-sail { fill: color-mix(in srgb, var(--white) 90%, transparent); }
.sil-sail-2 { fill: color-mix(in srgb, var(--orange) 72%, transparent); }

/* content block sits above the art — centered by the grid (justify-items) */
.scene-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  text-align: center;
}

/* Per-scene silhouette temperature. The city reads cooler/clearer (bluish
   stone), the Turia park greener, everything else keeps the warm ink. Sea
   keeps its own blue water classes. */
.scene[data-scene="oldtown"] .sil-back  { fill: color-mix(in srgb, #43566a 30%, transparent); }
.scene[data-scene="oldtown"] .sil-mid   { fill: color-mix(in srgb, #33475a 54%, transparent); }
.scene[data-scene="oldtown"] .sil-front { fill: color-mix(in srgb, #26384a 84%, transparent); }
.scene[data-scene="parks"] .sil-back  { fill: color-mix(in srgb, #5c7d55 32%, transparent); }
.scene[data-scene="parks"] .sil-mid   { fill: color-mix(in srgb, #456b40 56%, transparent); }
.scene[data-scene="parks"] .sil-front { fill: color-mix(in srgb, #33522f 86%, transparent); }
/* City of Arts & Sciences reads as bright white Calatrava concrete */
.sil-calatrava { fill: color-mix(in srgb, var(--white) 92%, transparent); }
.sil-calatrava-2 { fill: color-mix(in srgb, var(--white) 74%, transparent); }
.sil-glass { fill: color-mix(in srgb, #bfe6f2 66%, transparent); }

/* reveal-on-enter */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- hero (scene 1) ---------- */
.scene-hero { text-align: center; justify-content: center; }
.scene-hero .scene-inner { max-width: 900px; }
.j-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  margin-bottom: 20px;
}
.j-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 1.02;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.j-title em { font-style: italic; font-weight: 500; color: var(--orange-deep); }
.j-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.j-scrollcue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--ink) 66%, transparent);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
}
.j-scrollcue svg { width: 22px; height: 22px; animation: cueBob 1.8s ease-in-out infinite; }
@keyframes cueBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------- scene heading (stops) — centered ---------- */
.scene-head { max-width: 640px; }
.scene-caption { margin-left: auto; margin-right: auto; }
/* the card row spans full width so it can wrap, cards centred within it */
.scene-tours { justify-self: center; width: 100%; max-width: 1460px; justify-content: center; }
.scene-stopno {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--orange-deep);
  margin-bottom: 6px;
}
.scene-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 72%, transparent);
  margin-bottom: 12px;
}
.scene-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.scene-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: color-mix(in srgb, var(--white) 88%, transparent);
  line-height: 1.5;
  max-width: 560px;
  text-shadow: 0 1px 16px rgba(0,0,0,.35);
}
/* light scenes (dawn/noon) use ink text instead of white */
.scene.is-light .scene-eyebrow { color: color-mix(in srgb, var(--ink) 66%, transparent); }
.scene.is-light .scene-title { color: var(--ink); text-shadow: none; }
.scene.is-light .scene-caption { color: color-mix(in srgb, var(--ink) 80%, transparent); text-shadow: none; }

/* ---------- tour cards inside a scene ---------- */
/* Compact by default — a titled bar in the clear band under the caption, so the
   skyline & its landmarks stay unobstructed. Hover/focus unfolds the full card
   as an overlay (no layout shift); click opens the booking modal. */
.scene-tours {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  align-items: flex-start;
}
/* the unfolded panel must not be overdrawn by the landmark markers (z 3) */
.scene-tours:has(.jtour:hover), .scene-tours:has(.jtour:focus-within) { z-index: 6; }
.jtour {
  position: relative;
  width: min(330px, 100%);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.jtour-bar {
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--white) 96%, transparent);
  border-radius: 16px;
  padding: 13px 16px;
  box-shadow: 0 14px 38px rgba(0,0,0,.26);
  transition: transform var(--transition), box-shadow var(--transition);
}
@media (hover: hover) {
  .jtour:hover .jtour-bar, .jtour:focus-within .jtour-bar {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(0,0,0,.32);
  }
}
.jtour-cat {
  flex: none;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  color: var(--white);
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.jtour-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; line-height: 1.25; margin: 0; flex: 1; }
.jtour-bar-price { flex: none; display: none; font-family: var(--font-serif); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.jtour-more { flex: none; color: var(--orange); font-size: 0.9rem; transition: transform var(--transition); }
.jtour-more::after { content: '\25BE'; }   /* ▾ expand */
@media (hover: hover) {
  .jtour:hover .jtour-more, .jtour:focus-within .jtour-more { transform: rotate(180deg); }
}
.jtour-panel {
  position: absolute;
  top: calc(100% + 10px); left: 0; right: 0;
  background: color-mix(in srgb, var(--white) 97%, transparent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.34);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  pointer-events: none;
  z-index: 4;
}
@media (hover: hover) {
  .jtour:hover .jtour-panel, .jtour:focus-within .jtour-panel {
    opacity: 1; visibility: visible; transform: none;
    pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease;
  }
}
.jtour-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-deep); }
.jtour-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jtour-body { padding: 14px 18px 16px; }
.jtour-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }

/* ---- touch devices: no hover → the bar shows its price, and a tap expands the
        panel in-flow (accordion, pushing content — not an overlay). "Reservar"
        inside then opens the booking modal. ---- */
@media (hover: none) {
  .jtour-bar-price { display: inline; }
  .jtour-bar { padding: 15px 16px; }
  .jtour-panel {
    position: static; display: none;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    box-shadow: 0 12px 30px rgba(0,0,0,.18); margin-top: 7px;
  }
  .jtour.is-tapped .jtour-panel { display: block; }
  .jtour.is-tapped .jtour-more { transform: rotate(180deg); }
}
.jtour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jtour-price { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.jtour-price span { font-size: 0.6em; font-weight: 400; color: var(--text-muted); margin-left: 3px; }
.jtour-book {
  padding: 9px 18px; border-radius: 999px; border: none;
  background: var(--orange-btn); color: var(--white);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: background-color var(--transition);
}
.jtour-book:hover { background: var(--orange-deep); }

/* blog stories mixed into the stops — same card shell as .jtour, but an <a> */
a.jblog { display: block; text-decoration: none; color: var(--ink); }
.jblog-tag { background: var(--orange); }
.jblog-excerpt {
  font-size: 0.9rem; line-height: 1.5; color: var(--text-muted);
  margin: 2px 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.jblog-read { font-family: var(--font-sans); font-weight: 600; font-size: 0.86rem; color: var(--orange-deep); }
.jblog-read::after { content: " →"; }
.jblog:hover .jblog-read { color: var(--orange-deep); }

/* ---------- landmark markers (labeled pins) + blog bubbles ---------- */
/* an overlay that shares one art layer's geometry + parallax, so its markers
   sit exactly on the silhouettes and track them as you scroll. A transparent
   sizer svg gives the layer the art-layer box; markers are %-positioned HTML. */
.lmk-layer {
  position: absolute; left: 50%; bottom: 0;
  width: min(1600px, 140%);
  transform: translateX(-50%) translateY(var(--layer-shift, 0));
  z-index: 3;                 /* above scene content so markers stay clickable */
  pointer-events: none;       /* only the markers themselves catch pointer events */
  will-change: transform;
}
.lmk-sizer { display: block; width: 100%; height: auto; visibility: hidden; }
.lmk-marker {
  position: absolute; transform: translate(-50%, -100%);   /* pin bottom sits on the peak */
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  pointer-events: auto; cursor: pointer; text-decoration: none;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.22));
  transition: opacity .16s ease;
}
/* JS fades a marker out when it would collide with a tour card, so nothing
   ever straddles the card; it fades back in as the skyline parallaxes past */
.lmk-marker.is-occluded { opacity: 0; pointer-events: none; }
.lmk-name {
  font: 600 0.8rem/1 var(--font-sans);
  color: var(--ink);
  background: color-mix(in srgb, var(--white) 90%, transparent);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}
.lmk-pin {
  position: relative; width: 15px; height: 15px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--white);
}
.lmk-pin::after {   /* the pulse */
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--orange);
  animation: lmkPulse 2.6s ease-out infinite;
}
.lmk-marker:hover .lmk-name, .lmk-marker:focus-visible .lmk-name { background: var(--orange-btn); color: var(--white); }
.lmk-marker:hover .lmk-pin, .lmk-marker:focus-visible .lmk-pin { background: var(--orange-deep); }
.lmk-marker:focus-visible { outline: none; }
@keyframes lmkPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }

.lmk-bubble {
  position: fixed; z-index: 80;
  transform: translate(-50%, -100%);
  width: min(282px, 78vw);
  background: var(--white); color: var(--ink);
  border-radius: 16px; padding: 14px 16px 15px;
  box-shadow: 0 22px 54px rgba(0,0,0,.30);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.lmk-bubble.is-open { opacity: 1; pointer-events: auto; }
.lmk-bubble.is-below { transform: translate(-50%, 0); }
.lmk-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -7px;
  width: 15px; height: 15px; background: var(--white);
  transform: translateX(-50%) rotate(45deg);
}
.lmk-bubble.is-below::after { bottom: auto; top: -7px; }
.lmk-bubble-tag {
  display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--white); background: var(--orange-btn);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
}
.lmk-bubble-title { font-family: var(--font-serif); font-size: 1.06rem; line-height: 1.2; margin: 0 0 6px; }
.lmk-bubble-text { font-size: .86rem; line-height: 1.5; color: var(--text-muted); margin: 0 0 10px; }
.lmk-bubble-link { font-family: var(--font-sans); font-weight: 600; font-size: .86rem; color: var(--orange); text-decoration: none; }
.lmk-bubble-link::after { content: " →"; }
.lmk-bubble-link:hover { color: var(--orange-deep); }

@media (prefers-reduced-motion: reduce) {
  .lmk-pin::after { animation: none; opacity: 0; }
  .lmk-bubble { transition: none; }
}

/* ---------- the sea finale ---------- */
/* content sits in the top half; the seascape is a bottom band, so the whole
   scene stays exactly one screen tall (not head + tours + an extra 46svh). */
.scene-sea { align-content: start; padding-bottom: 0; }
/* the Turia stop holds the aquarium (fish) as a bottom band under its content */
.scene-turia { align-content: start; }
/* keep the head+cards in the upper half so the silhouette skyline + its labeled
   markers own the lower band, clear of the cards */
.scene[data-scene="oldtown"], .scene[data-scene="excursiones"] { align-content: start; }
.scene-turia .seascape { z-index: 1; height: 26svh; }   /* a bottom water strip — the City-of-Arts buildings stay visible above it */
.seascape {
  position: absolute;      /* out of flow → does not add to the scene height */
  left: 0; right: 0; bottom: 0;
  height: 46svh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.sea-waves { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.sea-waves svg { display: block; width: 200%; height: auto; }   /* 2× wide, pattern repeats → -50% drift loops seamlessly */
.sea-waves-back  svg { animation: waveDrift 15s linear infinite; }
.sea-waves-front svg { animation: waveDrift 9s linear infinite reverse; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sea-boat {
  position: absolute;
  left: var(--boat-x, 30%);
  bottom: 26%;
  z-index: 2;
  width: clamp(88px, 11vw, 150px);
  transform-origin: bottom center;
  animation: boatBob 4.5s ease-in-out infinite;
  pointer-events: none;
}
.sea-boat svg { width: 100%; height: auto; }
@keyframes boatBob {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-10px) rotate(2deg); }
}

/* layered water: creatures leap between the far wave and the near (front) waves */
.sea-waves-back  { z-index: 1; }
.sea-life        { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sea-waves-front { z-index: 3; }
.sea-boat, .sea-yacht { z-index: 4; }

.sea-fish, .sea-octopus {
  position: absolute;
  bottom: 20%;
  width: clamp(32px, 4.2vw, 56px);
  opacity: 0;                       /* JS reveals them as they surface */
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.sea-octopus { width: clamp(44px, 5vw, 74px); bottom: 17%; }
.sea-fish svg, .sea-octopus svg { display: block; width: 100%; height: auto; }
.fish-body  { fill: color-mix(in srgb, var(--orange) 82%, var(--white)); }
.is-gold .fish-body { fill: color-mix(in srgb, #ffd27a 78%, var(--orange)); }
.fish-fin   { fill: color-mix(in srgb, var(--orange-deep) 88%, transparent); }
.fish-eye   { fill: var(--ink); }
.octo-body  { fill: color-mix(in srgb, #e0568f 80%, var(--orange)); }
.octo-eye   { fill: var(--white); }
.octo-pupil { fill: var(--ink); }

.sea-yacht {
  --yw: clamp(120px, 15vw, 205px);
  position: absolute;
  left: var(--boat-x, 20%);
  margin-left: calc(var(--yw) / -2);   /* --boat-x is the boat's centre */
  width: var(--yw);
  transform-origin: bottom center;
  animation: boatBob 5.2s ease-in-out infinite, yachtDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
/* slow sideways drift; uses `translate` so it stacks with the bob's `transform` */
@keyframes yachtDrift {
  from { translate: calc(var(--yw) * -0.35) 0; }
  to   { translate: calc(var(--yw) * 0.35) 0; }
}
.sea-yacht svg { width: 100%; height: auto; }
.sea-yacht { bottom: calc(3.4vw - var(--yw) * 0.07); z-index: 2; }   /* hull sits in the water, behind the front wave */
.yacht-hull { fill: color-mix(in srgb, var(--ink) 84%, var(--orange)); }
.yacht-sail, .yacht-jib { fill: color-mix(in srgb, var(--white) 95%, transparent); }
.yacht-mast { stroke: color-mix(in srgb, var(--ink) 80%, transparent); stroke-width: 3; fill: none; }

/* ---------- the port & marina stop ---------- */
.scene-puerto { align-content: start; }
/* a real body of water fills the lower third; head + tour cards sit above it */
.scene-puerto .seascape { height: 46svh; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, #3d7ba1 20%, transparent) 42%, color-mix(in srgb, #3d7ba1 62%, transparent) 100%); }
.sea-wave-far  { fill: color-mix(in srgb, #6fb2d6 82%, var(--white)); }
.sea-wave-near { fill: color-mix(in srgb, #3d7ba1 78%, var(--white)); }
/* port silhouettes — white marina architecture + darker sea craft, over the sea sky */
.sil-ship   { fill: color-mix(in srgb, var(--white) 90%, transparent); }
.sil-ship-2 { fill: color-mix(in srgb, #3d7ba1 55%, var(--white)); }
.sil-sail   { fill: color-mix(in srgb, var(--white) 82%, transparent); }
.sil-quay   { fill: color-mix(in srgb, #2f5f7f 42%, transparent); }
.sil-white  { fill: color-mix(in srgb, var(--white) 92%, transparent); }
.sil-lamp   { fill: color-mix(in srgb, var(--orange) 78%, var(--white)); }
.sil-mast   { stroke: color-mix(in srgb, var(--white) 78%, transparent); stroke-width: 3; fill: none; }
.sil-pennant { fill: color-mix(in srgb, var(--orange) 72%, var(--white)); stroke: none; }

/* finale CTA band */
.finale {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 8svh clamp(18px,6vw,90px) 12svh;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--black) 88%, transparent) 40%);
}
.finale .scene-title { color: var(--white); }
.finale-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.finale-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}
.finale-btn.primary { background: var(--orange-btn); color: var(--white); border-color: var(--orange-btn); }
.finale-btn.primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); transform: translateY(-2px); }
.finale-btn.ghost { background: transparent; color: var(--white); border-color: color-mix(in srgb, var(--white) 45%, transparent); }
.finale-btn.ghost:hover { background: color-mix(in srgb, var(--white) 12%, transparent); }

/* ---------- meet your guide (closing scene, not on the route rail) ---------- */
.j-guide {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100lvh;
  display: grid;
  justify-items: center;   /* centre the portrait + text column */
  align-content: center;
  gap: 26px;
  padding: 12svh clamp(18px, 6vw, 90px) 0;  /* the .finale below adds bottom room */
  text-align: center;
}
.j-guide-portrait {
  width: clamp(190px, 24vw, 280px);
  margin: 0;
  filter: drop-shadow(0 26px 52px rgba(0,0,0,.42));
}
.j-guide-svg, .j-guide-photo { display: block; width: 100%; height: auto; }
/* real photo (swap the SVG for <img class="j-guide-photo">): same warm arch frame */
.j-guide-photo {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px 20px 20px;
  border: 5px solid var(--orange);
  background: var(--cream);
}
.j-guide-text { max-width: 620px; }
.j-guide-text .scene-caption { margin: 0 auto; }
.j-guide-name { letter-spacing: -0.01em; }

/* portrait fills — all derived from brand tokens so a re-brand flows through */
.gp-frame  { stroke: var(--orange); }
.gp-blouse { fill: color-mix(in srgb, var(--orange) 84%, transparent); }
.gp-skin   { fill: color-mix(in srgb, var(--cream) 78%, var(--orange)); }
.gp-hair   { fill: color-mix(in srgb, var(--ink) 82%, var(--orange)); }
.gp-cheek  { fill: color-mix(in srgb, var(--orange) 42%, transparent); }
.gp-ink    { fill: var(--ink); }
.gp-smile  { stroke: var(--ink); }

/* ---------- colourful València skyline (the one vivid showpiece) ---------- */
.valencia-band {
  --vband: #faf4ea;                 /* postcard cream so the colours pop, like the refs */
  position: relative;
  z-index: 2;
  background: var(--vband);
  padding: 46px clamp(16px, 5vw, 60px) 30px;
  display: flex;
  justify-content: center;
}
.vcut { fill: var(--vband, #faf4ea); }   /* window/arch cut-outs == local background */
.valencia-band .valencia-skyline {
  display: block;
  width: min(1200px, 100%);
  height: auto;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.12));
}
.valencia-word {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.14em;
  fill: color-mix(in srgb, var(--ink) 82%, transparent);
}

/* single-colour (silhouette) copy — the bottom band */
.valencia-band.is-mono [fill^="url(#"] { fill: var(--ink); }
.valencia-band.is-mono [stroke] { stroke: var(--ink); }

/* the colourful skyline used as the hero's landscape */
.valencia-hero {
  --vband: #e9f4ff;                 /* window cut-outs read as sky-lit glass */
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
}
.valencia-hero .valencia-skyline {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(30,60,90,.18));
}

/* two soft white clouds drifting across the blue hero sky */
.hero-clouds { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.cloud { position: absolute; width: clamp(150px, 20vw, 290px); filter: drop-shadow(0 14px 22px rgba(90,130,170,.18)); }
.cloud svg { display: block; width: 100%; height: auto; }
.cloud-1 { top: 15%; left: 7%;  animation: cloudDrift1 30s ease-in-out infinite alternate; }
.cloud-2 { top: 25%; left: 55%; width: clamp(110px, 15vw, 215px); opacity: .95; animation: cloudDrift2 38s ease-in-out infinite alternate; }
@keyframes cloudDrift1 { to { transform: translateX(46px); } }
@keyframes cloudDrift2 { to { transform: translateX(-38px); } }

/* ---------- testimonials (real traveller reviews) ---------- */
.testimonials {
  position: relative;
  z-index: 2;
  /* warm, light panel — an inviting review wall (not white cards on a dark
     ground, which read like headstones) */
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep, #f2ebdd) 100%);
  padding: 12svh clamp(18px, 6vw, 90px) 10svh;
  text-align: center;
}
.testimonials .scene-eyebrow { color: color-mix(in srgb, var(--ink) 56%, transparent); }
.testimonials .scene-title { color: var(--ink); text-shadow: none; }
.tm-head { max-width: 720px; margin: 0 auto 40px; }
.tm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.tm-card {
  position: relative;
  text-align: left;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 16px;
  padding: 30px 24px 22px;
  box-shadow: 0 10px 30px rgba(120,80,30,.10);
}
.tm-card::before {
  content: '\201C';
  position: absolute;
  top: 6px; left: 18px;
  font-family: var(--font-serif);
  font-size: 3.6rem; line-height: 1;
  color: color-mix(in srgb, var(--orange) 42%, transparent);
}
.tm-quote {
  margin: 18px 0 18px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
}
.tm-meta { display: flex; flex-direction: column; gap: 2px; }
.tm-name { font-family: var(--font-sans); font-weight: 700; color: var(--ink); font-size: .95rem; }
.tm-sub  { font-family: var(--font-sans); font-size: .82rem; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.tm-extra { display: none; }
.testimonials.is-expanded .tm-extra { display: block; }
.tm-toggle {
  margin: 34px auto 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px;
  background: transparent; color: var(--ink);
  border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}
.tm-toggle:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: color-mix(in srgb, var(--ink) 52%, transparent); }

/* ---------- footer ---------- */
.j-footer {
  position: relative; z-index: 3;
  background: var(--black);
  color: color-mix(in srgb, var(--white) 72%, transparent);
  padding: 48px clamp(18px,6vw,90px);
  display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start;
  font-size: 0.9rem;
}
.j-footer a { color: color-mix(in srgb, var(--white) 82%, transparent); text-decoration: none; display: block; margin: 4px 0; }
.j-footer a:hover { color: var(--white); }
.j-footer h4 { color: var(--white); font-family: var(--font-serif); margin: 0 0 8px; font-size: 1rem; }
.j-footer-brand { max-width: 280px; }
.j-footer-brand .j-logo { display: inline-block; margin-bottom: 8px; }

/* ---------- route rail ---------- */
.route-rail {
  position: fixed;
  top: 50%; right: clamp(12px, 2.5vw, 30px);
  transform: translateY(-50%);
  z-index: 55;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.route-line {
  position: absolute; top: 8px; bottom: 8px; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: color-mix(in srgb, var(--white) 22%, transparent);
}
.route-line-fill {
  position: absolute; top: 8px; left: 50%; width: 2px; transform: translateX(-50%);
  height: var(--route-progress, 0%);
  background: var(--orange);
  transition: height 120ms linear;
}
.route-dot {
  position: relative;
  width: 12px; height: 12px; margin: 12px 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--white) 55%, transparent);
  background: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}
.route-dot:hover { transform: scale(1.3); }
.route-dot.is-active { background: var(--orange); border-color: var(--orange); transform: scale(1.35); }
.route-dot .route-label {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  white-space: nowrap;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.72rem; padding: 4px 10px; border-radius: 999px;
  opacity: 0.7; cursor: pointer;                       /* every stop is always visible; the label is part of the button, so it's clickable */
  transition: opacity var(--transition), background-color var(--transition);
}
.route-dot:hover .route-label, .route-dot:focus-visible .route-label, .route-dot.is-active .route-label { opacity: 1; }
.route-dot .route-label:hover { background: color-mix(in srgb, var(--orange) 70%, var(--ink)); }
.route-dot.is-active .route-label { font-weight: 600; background: var(--orange-btn); }
@media (max-width: 760px) { .route-rail { display: none; } }

/* ---------- tour modal (reuses booking widget) ---------- */
.j-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.j-modal[hidden] { display: none; }
.j-modal-backdrop { position: absolute; inset: 0; background: rgba(20,16,12,.66); backdrop-filter: blur(4px); }
.j-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: 92svh; overflow-y: auto;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.j-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--white) 85%, transparent); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.j-modal-hero { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--cream-deep); }
.j-modal-hero img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.j-modal-hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 28px 22px;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  color: #fff;
}
.j-modal-hero-cat { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: .9; }
.j-modal-hero-title { font-family: var(--font-serif); font-weight: 800; font-size: clamp(1.5rem,4vw,2.3rem); margin: 4px 0 0; }
.j-modal-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; padding: 26px 28px 30px; }
.j-modal-desc { white-space: pre-line; line-height: 1.65; color: var(--text); font-size: 0.95rem; }
.j-modal-side .modal-agent { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
@media (max-width: 720px) { .j-modal-body { grid-template-columns: minmax(0, 1fr); } }
.j-modal-credit { position: absolute; right: 12px; bottom: 8px; margin: 0; font: 500 10px/1.3 var(--font-sans); color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.j-modal-credit a { color: inherit; }

/* photo credit on blog cards (CC BY / BY-SA attribution) */
.jblog .jtour-media { position: relative; }
.jblog-credit { position: absolute; right: 8px; bottom: 6px; max-width: calc(100% - 16px); font: 500 10px/1.3 var(--font-sans); color: rgba(255,255,255,.88); text-shadow: 0 1px 2px rgba(0,0,0,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .scene {
    /* at least one screen, so a snapped scene fills the phone exactly; content
       centres in the space above the skyline (taller scenes just grow) */
    min-height: 100vh;
    min-height: 100lvh;
    padding: 13svh 20px 11svh;
    align-content: center;
  }
  .scene.scene-hero { min-height: 90svh; align-content: center; padding-top: max(8svh, 122px); }  /* clear the hero navigation (2 rows) */
  .scene { padding-top: max(13svh, 84px); }  /* clear the top bar */
  .j-title { font-size: clamp(1.95rem, 9.2vw, 3.2rem); }
  .scene-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  /* full-width stacked, centred cards */
  .scene-tours { gap: 16px; }
  .jtour { width: 100%; max-width: 440px; margin: 0 auto; }
  /* art and its landmark pins MUST share one width, or the pins drift off
     the buildings. 150% keeps the City of Arts trio on screen at 360-430px. */
  .scene-art .layer, .lmk-layer { width: 150%; }
  /* leave the skyline uncovered below the tour cards (art is ~26-33vw tall) */
  .scene:has(.scene-art) { padding-bottom: 44vw; }
  /* keep the top bar tidy: compact CTA + language pills so booking stays reachable */
  /* one bar: [logo | langs | person icon | menu]; links + booking live in the hamburger panel */
  .j-nav { padding: 10px 14px; gap: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center;
           background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
  .j-nav .j-logo { white-space: normal; grid-row: 1; grid-column: 1; }
  .j-nav-spacer, .j-nav-cta { display: none; }
  .j-nav .lang-switcher { grid-row: 1; grid-column: 2; justify-self: end; }
  .j-nav-account { grid-row: 1; grid-column: 3; }
  .j-nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; grid-row: 1; grid-column: 4;
                  width: 44px; height: 44px; padding: 0 10px; margin-right: -6px; background: none; border: 0; cursor: pointer; }
  .j-nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--white); transition: transform .25s ease, opacity .2s ease; }
  .j-nav.is-open .j-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .j-nav.is-open .j-nav-toggle span:nth-child(2) { opacity: 0; }
  .j-nav.is-open .j-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .j-nav-links { grid-row: 2; grid-column: 1 / -1; margin: 0; display: none; flex-direction: column; gap: 2px;
                 padding: 8px 0 6px; border-top: 1px solid color-mix(in srgb, var(--white) 14%, transparent); }
  .j-nav.is-open .j-nav-links { display: flex; }
  .j-nav-links a { font-size: 1.02rem; padding: 12px 4px; min-height: 44px; display: flex; align-items: center; border-bottom: 0; }
  .j-nav-links .j-nav-menu-cta { display: flex; justify-content: center; margin-top: 8px; padding: 12px; border-radius: 999px;
                                 background: var(--orange-btn); color: var(--white); font-weight: 600; }
  .j-nav .lang-btn { padding: 5px 8px; font-size: 0.7rem; }
  .seascape { min-height: 34svh; }
  .lmk-name { font-size: 0.7rem; padding: 4px 8px; }
}
/* tablet: five links + languages + account + CTA do not fit one row. Links go behind the menu button,
   the booking CTA stays in the bar, and the route rail shows its dots only (labels on hover/focus). */
@media (min-width: 761px) and (max-width: 1180px) {
  .j-nav { padding: 10px 18px; gap: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; align-items: center;
           background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
  .j-nav .j-logo { grid-row: 1; grid-column: 1; }
  .j-nav-spacer { display: none; }
  .j-nav .lang-switcher { grid-row: 1; grid-column: 2; }
  .j-nav-account { grid-row: 1; grid-column: 3; }
  .j-nav-cta { grid-row: 1; grid-column: 4; white-space: nowrap; }
  .j-nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; grid-row: 1; grid-column: 5;
                  width: 44px; height: 44px; padding: 0 10px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
  .j-nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--white); transition: transform .25s ease, opacity .2s ease; }
  .j-nav.is-open .j-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .j-nav.is-open .j-nav-toggle span:nth-child(2) { opacity: 0; }
  .j-nav.is-open .j-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .j-nav-links { grid-row: 2; grid-column: 1 / -1; margin: 0; display: none; flex-direction: column; gap: 2px;
                 padding: 8px 0 6px; border-top: 1px solid color-mix(in srgb, var(--white) 14%, transparent); }
  .j-nav.is-open .j-nav-links { display: flex; }
  .j-nav-links a { font-size: 1.02rem; padding: 12px 4px; min-height: 44px; display: flex; align-items: center; border-bottom: 0; white-space: nowrap; }
  .j-nav-links .j-nav-menu-cta { display: none; }
  .route-dot .route-label, .route-dot.is-active .route-label { opacity: 0; pointer-events: none; }
  .route-dot:hover .route-label, .route-dot:focus-visible .route-label { opacity: 1; pointer-events: auto; }
}
@media (max-width: 400px) {
  .j-nav { gap: 6px; }
  .j-nav .lang-btn { padding: 4px 5px; font-size: 0.64rem; letter-spacing: 0; }
  .j-nav-cta { padding: 7px 11px; font-size: 0.74rem; }
  .j-logo { font-size: 0.98rem; }
}

/* ---------- reduced motion: kill parallax + wave/boat/cue, keep it elegant ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity .4s ease; transform: none; }
  .scene-art .layer { transform: translateX(-50%) !important; }
  .sea-wave-far, .sea-wave-mid, .sea-wave-near, .sea-boat, .sea-yacht, .j-scrollcue svg { animation: none !important; }
  .sea-fish, .sea-octopus { opacity: .9 !important; transform: translateY(-40%) !important; }  /* static peek, no leaping */
  #sky, #sky::after { transition: none; }
}

/* ---------- contact · "Escríbeme" (form → /api/messages) ---------- */
.j-contact { position: relative; z-index: 2; color: var(--ink); background: var(--cream); padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 48px); scroll-margin-top: 72px; }
.j-contact-card { max-width: 640px; margin: 0 auto; }
.j-contact .scene-eyebrow { color: var(--orange-deep); }
.j-contact-title { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; margin: 6px 0 10px; color: var(--ink); }
.j-contact-lead { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; line-height: 1.45; color: color-mix(in srgb, var(--ink) 80%, transparent); margin: 0 0 24px; }
.j-contact-form { display: grid; gap: 14px; }
.j-field { display: grid; gap: 6px; font: 600 0.82rem/1.2 var(--font-sans); color: color-mix(in srgb, var(--ink) 75%, transparent); }
.j-field input, .j-field textarea { width: 100%; box-sizing: border-box; font: 400 1rem/1.4 var(--font-sans); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.j-field textarea { resize: vertical; min-height: 128px; }
.j-field input:focus, .j-field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.j-field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 560px) { .j-field-row { grid-template-columns: minmax(0, 1fr); } }
.j-contact-hint { margin: -4px 0 0; font-size: 0.82rem; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.j-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.j-contact-error { margin: 0; color: #b42318; font-size: 0.92rem; }
.j-contact-send { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.j-contact-send[disabled] { opacity: 0.6; cursor: wait; }
.j-contact-done { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.4; color: var(--ink); background: var(--white); border-radius: 14px; padding: 20px 22px; margin: 0; }
.j-contact-form[hidden], .j-contact-error[hidden], .j-contact-done[hidden] { display: none; }
/* phone = prefix selector + number; email typo hint */
.j-phone { display: flex; gap: 8px; min-width: 0; }
.j-prefix { flex: 0 0 8.75rem; width: 8.75rem; min-width: 0;   /* fixed: long country names would widen the column */
   font: 400 1rem/1.4 var(--font-sans); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; }
.j-prefix:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.j-phone input { flex: 1 1 auto; width: 0; min-width: 0; }   /* width 0: an input's default size would push the row wider than its column */
.j-email-suggest { justify-self: start; margin-top: 2px; padding: 0; border: 0; background: none; font: 500 0.85rem/1.3 var(--font-sans); color: var(--orange-deep); text-decoration: underline; cursor: pointer; text-align: left; }
.j-email-suggest[hidden] { display: none; }
