:root {
  /* Uso real: turistas andando a pleno sol, así que la app va siempre en modo claro y con mucho contraste.
     Un único acento: el verde del logo. Neutros ligeramente teñidos hacia ese verde. */
  --paper: oklch(0.985 0.004 165);
  --paper-2: oklch(0.955 0.008 165);
  --card: oklch(0.997 0.002 165);
  --ink: oklch(0.23 0.02 170);
  --ink-2: oklch(0.40 0.02 170);
  --ink-3: oklch(0.50 0.015 170);
  --line: oklch(0.90 0.01 165);
  --accent: oklch(0.50 0.10 168);
  --accent-ink: oklch(0.99 0.005 165);
  --accent-soft: oklch(0.94 0.035 168);
  --olive: var(--ink-2);
  --ok: var(--accent);
  --shadow: 0 1px 2px oklch(0.23 0.02 170 / .06), 0 6px 20px oklch(0.23 0.02 170 / .07);
  --radius: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  /* z-index: mapa < barra < panel < hojas < toasts */
  --z-sticky: 20; --z-panel: 600; --z-sheet: 50; --z-toast: 80;
  --serif: "Bricolage Grotesque", "Geist", system-ui, sans-serif; /* titulares */
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Noto Sans SC", "Noto Sans Arabic", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; color: var(--ink-3); }

#app { min-height: 100%; max-width: 640px; margin: 0 auto; }
.page { padding: 16px 16px 96px; animation: pageIn 260ms var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }

/* ----- Barra superior ----- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.brand span { color: var(--accent); }
.spacer { flex: 1; }

/* ----- Botones ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform 160ms var(--ease-out), opacity 160ms ease, background-color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { opacity: .92; }
  .icon-btn:hover { background: var(--paper-2); }
  .card-link:hover .card { box-shadow: 0 1px 2px rgba(31,27,22,.06), 0 12px 32px rgba(31,27,22,.12); }
}

/* ----- Portada ----- */
.hero { padding: 28px 4px 18px; }
.hero h1 { font-size: clamp(34px, 9vw, 46px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 12px 0 0; color: var(--ink-2); font-size: 17px; max-width: 34ch; }
.search { position: relative; margin: 20px 0 8px; }
.search input { width: 100%; height: 56px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); padding: 0 16px 0 48px; font-size: 17px; outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; color: var(--ink-3); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.section-title h2 { font-size: 22px; }

/* ----- Tarjetas ----- */
.list { display: grid; gap: 14px; }
.card-link { text-decoration: none; display: block; border-radius: var(--radius); transition: transform 160ms var(--ease-out); }
.card-link:active { transform: scale(0.98); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow 200ms ease; }
.card .media { aspect-ratio: 16/9; background: var(--paper-2) center/cover; position: relative; }
.card .media .badge { position: absolute; left: 12px; top: 12px; }
.card .body { padding: 14px 16px 16px; }
.card h3 { font-size: 20px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 16px; height: 16px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.badge.accent { background: var(--accent); color: var(--accent-ink); }
.city-row { display: flex; align-items: center; gap: 14px; padding: 12px; }
.city-row .thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--accent-soft) center/cover; flex: none; display: grid; place-items: center;
  font-family: var(--serif); font-size: 26px; color: var(--accent); }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-2); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

/* Aparición escalonada */
.stagger > * { animation: itemIn 320ms var(--ease-out) both; }
.stagger > *:nth-child(2) { animation-delay: 40ms; } .stagger > *:nth-child(3) { animation-delay: 80ms; }
.stagger > *:nth-child(4) { animation-delay: 120ms; } .stagger > *:nth-child(n+5) { animation-delay: 160ms; }
@keyframes itemIn { from { opacity: 0; transform: translateY(8px); } }

/* ----- Detalle de tour ----- */
.detail-hero { margin: -16px -16px 0; aspect-ratio: 4/3; max-height: 46vh; background: var(--paper-2) center/cover; position: relative; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--paper)); }
.detail-head { position: relative; margin-top: -40px; z-index: 1; }
.detail-head h1 { font-size: 30px; }
.narrator { display: flex; gap: 12px; align-items: center; margin: 18px 0; padding: 14px; border-radius: 16px; background: var(--paper-2); }
.narrator .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; flex: none; }
.mini-map { height: 220px; border-radius: var(--radius); overflow: hidden; margin: 14px 0; box-shadow: var(--shadow); }
.stops { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.stops li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stops li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.stops li .t { flex: 1; }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.cta-bar .inner { max-width: 608px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.price { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.stars { color: var(--ink); letter-spacing: 1px; }

/* ----- Hojas (modales inferiores) ----- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 12, .42); opacity: 0; transition: opacity 240ms ease; }
.scrim.open { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 640px; margin: 0 auto; max-height: 92vh; overflow: auto;
  background: var(--card); border-radius: 22px 22px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 380ms var(--ease-drawer); }
.sheet.open { transform: translateY(0); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { font-size: 24px; margin-bottom: 6px; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); padding: 0 14px; outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { height: auto; min-height: 90px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.error { color: #b3261e; font-size: 14px; min-height: 20px; }
.link-btn { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 8px 0; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.lang-grid button { min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600;
  transition: transform 160ms var(--ease-out), border-color 160ms ease; }
.lang-grid button:active { transform: scale(0.97); }
.lang-grid button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* ----- Toasts ----- */
.toasts { position: fixed; left: 0; right: 0; top: calc(10px + env(safe-area-inset-top)); z-index: 80; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { max-width: 92vw; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: 15px;
  transition: opacity 300ms ease, transform 300ms var(--ease-out); }
@starting-style { .toast { opacity: 0; transform: translateY(-12px); } }
.toast.out { opacity: 0; transform: translateY(-8px); transition-duration: 180ms; }

/* ----- Tour en marcha ----- */
.play { position: fixed; inset: 0; display: grid; grid-template-rows: 1fr auto; max-width: 640px; margin: 0 auto; background: var(--paper); }
.play-map { position: relative; min-height: 0; }
.play-map #map { position: absolute; inset: 0; }
.map-top .pill { min-width: 0; max-width: calc(100% - 52px); }
.map-top { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; z-index: 500; display: flex; gap: 8px; align-items: center; }
.map-top .icon-btn { background: var(--card); box-shadow: var(--shadow); }
.pill { background: var(--card); box-shadow: var(--shadow); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.pill svg { width: 18px; height: 18px; flex: none; }
.pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recenter { position: absolute; right: 10px; bottom: 14px; z-index: 500; background: var(--card); box-shadow: var(--shadow); }
.panel { background: var(--card); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.12); padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); max-height: 58vh; overflow: auto; position: relative; z-index: 600; }
.progress { height: 4px; background: var(--paper-2); border-radius: 2px; overflow: hidden; margin: 6px 0 14px; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform 400ms var(--ease-out); }
.state-line { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.stop-title { font-size: 26px; margin: 4px 0 2px; }
.dist { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1; }
.player { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0 8px; }
.play-btn { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer;
  transition: transform 160ms var(--ease-out); }
.play-btn:active { transform: scale(0.95); }
.play-btn svg { width: 30px; height: 30px; }
.scrub { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.scrub input { flex: 1; accent-color: var(--accent); }
.chapters { list-style: none; padding: 0; margin: 12px 0 0; }
.chapters li button { width: 100%; text-align: start; display: flex; gap: 10px; align-items: center; padding: 10px 8px; border: 0; background: none; border-radius: 12px; cursor: pointer;
  transition: background-color 160ms ease; }
.chapters li button[aria-current="true"] { background: var(--accent-soft); font-weight: 600; }
.chapters .n { width: 24px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chapters .done { color: var(--ok); }
.transcript { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--paper); color: var(--ink-2); font-size: 15px; white-space: pre-wrap; }
details summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--ink-2); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

/* Marcadores del mapa */
.mk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--sans); color: #fff; background: #9b8f80; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.mk.next { background: var(--accent); width: 36px; height: 36px; font-size: 15px; }
.mk.done { background: var(--ok); }
.me { width: 18px; height: 18px; border-radius: 50%; background: #2f6fde; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,111,222,.22); }
.leaflet-container { font: inherit; background: var(--paper-2); }

/* Árabe y otros idiomas de derecha a izquierda */
[dir="rtl"] .search input { padding: 0 48px 0 16px; }
[dir="rtl"] .search svg { left: auto; right: 16px; }
[dir="rtl"] .progress i { transform-origin: right; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; }
  .sheet, .card-link, .btn, .progress i { transition-property: opacity !important; }
}

/* =========================================================
   v2 visual: fotos, jerarquía editorial, esqueletos de carga
   ========================================================= */
.topbar.overlay { position: fixed; left: 0; right: 0; max-width: 640px; margin: 0 auto; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.icon-btn.glass { background: color-mix(in srgb, var(--card) 72%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Fotos con fundido al cargar */
.pic { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--paper-2), var(--accent-soft)); }
img.pic { object-fit: cover; opacity: 0; transition: opacity 400ms ease; }
img.pic.in { opacity: 1; }
.cover { position: absolute; inset: 0; }
.shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,13,9,.78) 0%, rgba(18,13,9,.35) 38%, rgba(18,13,9,0) 62%); pointer-events: none; }

/* Esqueletos (en vez de "Cargando…") */
.skel { border-radius: 14px; background: linear-gradient(90deg, var(--paper-2) 0%, color-mix(in srgb, var(--paper-2) 55%, var(--card)) 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.skel.tile { aspect-ratio: 4/5; border-radius: var(--radius); }
.skel.card { aspect-ratio: 16/10; border-radius: var(--radius); margin-bottom: 14px; }
.skel.title { height: 34px; width: 70%; margin: 18px 0 14px; }
.skel.line { height: 16px; margin: 10px 0; }
.skel.hero { height: 56vh; margin: 0 -16px; border-radius: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Portada */
.home .hero { padding: 22px 2px 6px; position: relative; }
.home .hero h1 { font-size: clamp(38px, 10.5vw, 54px); line-height: 1.02; letter-spacing: -0.025em; }
.home .hero p { font-size: 17.5px; margin-top: 14px; }
.route-art { width: 100%; max-width: 360px; height: auto; margin: 18px 0 2px; overflow: visible; }
.route-art .route-path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.route-art circle { fill: var(--card); stroke: var(--ink-3); stroke-width: 2.5; }
.route-art circle.end { fill: var(--accent); stroke: var(--card); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  .route-art .route-path { animation: routeDash 1.6s var(--ease-out) both; }
  .route-art circle { animation: dotIn 360ms var(--ease-out) both; }
  .route-art circle:nth-of-type(2) { animation-delay: 380ms; } .route-art circle:nth-of-type(3) { animation-delay: 760ms; } .route-art circle:nth-of-type(4) { animation-delay: 1100ms; }
}
@keyframes routeDash { from { stroke-dashoffset: 120; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes dotIn { from { opacity: 0; transform: scale(0.6); } }
.route-art circle { transform-box: fill-box; transform-origin: center; }

.section-title { margin: 30px 0 14px; }
.section-title h2 { font-size: 25px; letter-spacing: -0.015em; }

/* Carril de destacados con desplazamiento por pasos */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* Tarjeta de tour con foto a sangre */
.tcard { position: relative; aspect-ratio: 16/11; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); isolation: isolate; }
.feature .tcard { aspect-ratio: 4/5; }
.tcard .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
[dir="rtl"] .tcard .badge { left: auto; right: 12px; }
.tcard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; color: #fff; z-index: 2; }
.tcard h3 { font-size: 23px; color: #fff; text-wrap: balance; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.tcard .eyebrow, .eyebrow.light { color: rgba(255,255,255,.86); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; }
.chips svg { width: 14px; height: 14px; }
.card-link { border-radius: var(--radius); }
.card-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .tcard img.pic.in { transition: opacity 400ms ease, transform 600ms var(--ease-out); }
  .card-link:hover .tcard img.pic.in { transform: scale(1.03); }
}

/* Ciudades en mosaico */
.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); isolation: isolate; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; color: #fff; z-index: 2; }
.tile h3 { font-size: 22px; color: #fff; }
.tiny-l { font-size: 13px; color: rgba(255,255,255,.85); }

/* Cómo funciona */
.how { margin: 36px 0 8px; padding: 22px 18px; border-radius: var(--radius); background: var(--paper-2); }
.how h2 { font-size: 24px; margin-bottom: 8px; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.how li { display: flex; gap: 14px; align-items: flex-start; }
.how .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--accent); display: grid; place-items: center; font: 700 16px var(--serif); box-shadow: var(--shadow); }
.how p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }

/* Aún no hay tours */
.soon { text-align: center; padding: 34px 20px; border-radius: var(--radius); border: 1.5px dashed var(--line); }
.soon-mark { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.soon-mark svg { width: 30px; height: 30px; }
.soon h3 { font-size: 22px; margin-bottom: 6px; }
.soon p { color: var(--ink-2); margin: 0 0 16px; }

/* Cabecera de ciudad */
.city-head { position: relative; height: 34vh; min-height: 220px; margin: 0 -16px; overflow: hidden; background: var(--paper-2); }
.city-head-body { position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 2; }
.city-head h1 { color: #fff; font-size: 44px; letter-spacing: -0.02em; }

/* Detalle de tour */
.detail { padding-top: 0; }
.detail .detail-hero { position: relative; height: 62vh; min-height: 360px; max-height: 620px; margin: 0 -16px; aspect-ratio: auto; overflow: hidden; background: var(--paper-2); }
.detail .detail-hero::after { content: none; }
.detail-hero-body { position: absolute; left: 16px; right: 16px; bottom: 22px; z-index: 2; }
.detail-hero h1 { color: #fff; font-size: clamp(32px, 9vw, 44px); line-height: 1.05; text-wrap: balance; }
.credit { position: absolute; right: 12px; top: calc(env(safe-area-inset-top) + 64px); z-index: 2; font-size: 11px; color: rgba(255,255,255,.8); text-decoration: none; background: rgba(0,0,0,.25); padding: 3px 8px; border-radius: 999px; }
.facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 16px 0 6px; }
.facts > div { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 10px; text-align: center; }
.facts b { display: block; font: 700 18px var(--serif); }
.facts span { display: inline-flex; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.facts svg { width: 16px; height: 16px; }
.lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 16px 0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 12px); }
[dir="rtl"] .timeline::before { left: auto; right: 15px; }
.timeline li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.timeline .dot { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; z-index: 1; }
.timeline li:first-child .dot { background: var(--accent); color: var(--accent-ink); }
.tl-body { flex: 1; min-width: 0; }
.tl-img { position: relative; flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--paper-2); }

/* Tour en marcha: foto de la parada */
.stop-photo { position: relative; height: 128px; border-radius: 16px; overflow: hidden; margin: 10px 0 4px; background: var(--paper-2); }

@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
  img.pic { transition: none; opacity: 1; }
}

.topbar.overlay { transition: background-color 200ms ease, box-shadow 200ms ease; }
.topbar.overlay.solid { background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.topbar.overlay.solid .icon-btn.glass { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Mapa con el tono cálido de la app */

/* Mapa siempre claro, también con el móvil en modo oscuro */
.play-map .leaflet-container { background: #efe9df; }

/* Mando de reproducción flotante sobre el mapa */
.mini { position: absolute; z-index: 550; left: 10px; right: 10px; top: calc(66px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 8px; border-radius: 999px; background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none; transition: opacity 200ms ease, transform 240ms var(--ease-out); }
.mini.show { opacity: 1; transform: none; pointer-events: auto; }
.mini-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.mini-btn:active { transform: scale(0.94); }
.mini-btn svg { width: 22px; height: 22px; }
.mini.paused .mini-btn { background: var(--ink); color: var(--paper); }
.mini-t { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.mini-t strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-t span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Iconos (Phosphor) ---------- */
i.ph, i.ph-fill { line-height: 1; display: inline-block; }
.icon-btn .ph, .icon-btn .ph-fill { font-size: 22px; }
.play-btn .ph-fill { font-size: 30px; }
.mini-btn .ph-fill { font-size: 22px; }
.chips .ph { font-size: 14px; }
.meta .ph { font-size: 16px; }
.facts .ph { font-size: 17px; }
.pill .ph { font-size: 18px; }
.soon-mark .ph { font-size: 30px; }
.search .ph { position: absolute; left: 16px; top: 17px; font-size: 22px; color: var(--ink-3); }
[dir="rtl"] .search .ph { left: auto; right: 16px; }

/* ---------- Ajustes de la nueva dirección ---------- */
.brand { font-family: var(--serif); font-weight: 800; letter-spacing: -0.03em; }
.home .hero h1 { font-weight: 800; letter-spacing: -0.03em; }
.btn { font-weight: 600; }
.btn:not(.accent):not(.ghost) { background: var(--ink); }
.tcard h3, .tile h3, .city-head h1, .detail-hero h1 { font-weight: 700; }
.shade { background: linear-gradient(to top, oklch(0.18 0.02 170 / .82) 0%, oklch(0.18 0.02 170 / .35) 40%, oklch(0.18 0.02 170 / 0) 64%); }
.chips span { background: oklch(0.99 0 0 / .16); }
.badge { box-shadow: none; }
.mk { background: oklch(0.62 0.02 170); }
.timeline .dot { border-color: var(--accent); }
.how { background: var(--accent-soft); }
.how .n { color: var(--accent); }
.narrator { background: var(--paper-2); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in oklch, var(--accent) 55%, transparent); outline-offset: 2px; }

/* Textos legales y pie */
.foot { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding: 28px 0 8px; font-size: 13.5px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.legal-body { max-width: 68ch; line-height: 1.6; color: var(--ink); }
.legal-body h3 { font-size: 18px; margin: 22px 0 6px; }
.legal-body ul { padding-left: 20px; }
.legal-body mark { background: #fff1b8; padding: 0 4px; border-radius: 4px; }
.waiver { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 4px 0 8px; cursor: pointer; }
.waiver input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
[hidden] { display: none !important; }
