/* Australia '27 — paleta: océano austral · selva · Tasmania al atardecer */
:root {
  --paper: #f6f0e6;
  --paper-2: #efe6d8;
  --card: #fffdf9;
  --ink: #13222b;
  --ink-2: #3d4c54;
  --muted: #6b777c;
  --line: #e2d8c8;
  --ocean: #1d6a8a;
  --deep: #0c3346;
  --jungle: #2f7d4f;
  --sunset: #d4643b;
  --gold: #d99a3e;
  --warn-bg: #fdf0e3;
  --warn-ink: #8a3a12;
  --victoria: #1d6a8a;
  --tropico: #2f7d4f;
  --tasmania: #d4643b;
  --flight: #8a5bb0;
  --shadow: 0 1px 2px rgba(19, 34, 43, .06), 0 8px 24px -12px rgba(19, 34, 43, .18);
  --shadow-lg: 0 2px 6px rgba(19, 34, 43, .06), 0 24px 48px -24px rgba(19, 34, 43, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tile-filter: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1820; --paper-2: #10222c; --card: #13262f; --ink: #ece5d9; --ink-2: #c3c8c6; --muted: #8f9b9e;
    --line: #22394429; --line: #243943; --ocean: #5fb3d3; --deep: #9fd3e6; --jungle: #6cc08e; --sunset: #f08a5d; --gold: #f0b85e;
    --warn-bg: #3a2216; --warn-ink: #ffc9a8; --victoria: #4fa9cc; --tropico: #5cb880; --tasmania: #f0875a; --flight: #b88ee0;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.3), 0 24px 48px -24px rgba(0,0,0,.8);
    --tile-filter: brightness(.78) contrast(1.08) saturate(.85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1820; --paper-2: #10222c; --card: #13262f; --ink: #ece5d9; --ink-2: #c3c8c6; --muted: #8f9b9e;
  --line: #243943; --ocean: #5fb3d3; --deep: #9fd3e6; --jungle: #6cc08e; --sunset: #f08a5d; --gold: #f0b85e;
  --warn-bg: #3a2216; --warn-ink: #ffc9a8; --victoria: #4fa9cc; --tropico: #5cb880; --tasmania: #f0875a; --flight: #b88ee0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.3), 0 24px 48px -24px rgba(0,0,0,.8);
  --tile-filter: brightness(.78) contrast(1.08) saturate(.85);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 2000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- barra superior ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: 56px; display: flex; align-items: center; gap: 12px;
  padding: 0 16px; padding-top: env(safe-area-inset-top); color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.topbar.is-solid { background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--ink); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { font: 600 19px/1 var(--serif); color: inherit; text-decoration: none; display: flex; align-items: center; gap: 8px; margin-right: auto; }
.brand em { font-style: italic; font-weight: 400; color: var(--sunset); }
.topbar:not(.is-solid) .brand em { color: #ffb48a; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--victoria), var(--tropico) 50%, var(--tasmania)); }
.topnav { display: none; gap: 22px; font-weight: 600; font-size: 14px; }
.topnav a { color: inherit; text-decoration: none; opacity: .85; }
.topnav a:hover { opacity: 1; }
@media (min-width: 640px) { .topnav { display: flex; } }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); display: grid; place-items: center; cursor: pointer; }
.topbar.is-solid .theme-btn { background: var(--paper-2); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-btn .i-moon { fill: currentColor; stroke: none; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; } :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }

/* ---------- portada ---------- */
.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #0c3346; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; } html { scroll-behavior: auto; } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(8, 26, 36, .55) 0%, rgba(8, 26, 36, 0) 22%),
  linear-gradient(0deg, rgba(8, 22, 30, .92) 0%, rgba(8, 22, 30, .55) 38%, rgba(8, 22, 30, 0) 70%); }
.hero-inner { position: relative; padding-bottom: 56px; padding-top: 120px; }
.kicker { font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin: 0 0 14px; }
.hero h1 { font-size: clamp(56px, 16vw, 148px); font-weight: 700; letter-spacing: -.035em; line-height: .88; font-variation-settings: "opsz" 144, "SOFT" 50; }
.hero h1 span { display: block; font: italic 300 clamp(20px, 4.6vw, 34px)/1.2 var(--serif); letter-spacing: 0; margin-top: 16px; max-width: 22ch; color: #ffe2cf; }
.hero-who { font: 600 15px var(--sans); margin: 18px 0 0; opacity: .9; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin: 30px 0 0; max-width: 640px; }
@media (min-width: 560px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-stats div { border-top: 1px solid rgba(255,255,255,.35); padding-top: 10px; }
.hero-stats dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.hero-stats dd { margin: 2px 0 0; font: 600 30px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.hero-credit { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: 10.5px; opacity: .6; max-width: 70%; text-align: right; }
.hero-credit a { color: inherit; }

/* ---------- secciones ---------- */
.section { padding-top: 72px; padding-bottom: 8px; }
@media (min-width: 900px) { .section { padding-top: 104px; } }
.sec-head { margin-bottom: 28px; max-width: 720px; }
.eyebrow { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sunset); margin: 0 0 12px; }
.sec-head h2 { font-size: clamp(32px, 6.4vw, 54px); font-weight: 600; letter-spacing: -.025em; }
.lede { color: var(--ink-2); font-size: 17px; margin: 14px 0 0; }

/* ---------- mapas ---------- */
.map { width: 100%; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.map-overview { height: 440px; box-shadow: var(--shadow-lg); }
@media (min-width: 820px) { .map-overview { height: 620px; } }
.leaflet-container { font-family: var(--sans); background: var(--paper-2); }
.tiles-voyager { filter: var(--tile-filter); }
.leaflet-control-layers, .leaflet-bar a, .leaflet-control-attribution { background: var(--card) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { font-size: 10px; opacity: .85; }
.leaflet-control-attribution a { color: var(--ocean); }
.leaflet-control-layers-toggle { width: 34px !important; height: 34px !important; background-size: 20px; }
:root[data-theme="dark"] .leaflet-control-layers-toggle, :root[data-theme="dark"] .leaflet-bar a { filter: invert(.9) hue-rotate(180deg); background-color: #ddd !important; }
.leaflet-control-layers-expanded { padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.leaflet-popup-content-wrapper { background: var(--card); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 0; overflow: hidden; }
.leaflet-popup-tip { background: var(--card); }
.leaflet-popup-content { margin: 0; width: 240px !important; font-size: 13.5px; line-height: 1.45; }
.leaflet-container a.leaflet-popup-close-button { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); font-size: 22px; width: 30px; height: 30px; }
.pop img { width: 100%; height: 140px; object-fit: cover; }
.pop-body { padding: 10px 14px 12px; }
.pop h4 { font-size: 16px; margin-bottom: 4px; }
.pop p { margin: 0 0 8px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pop .links { gap: 6px; }
.pop-nophoto h4 { padding-right: 18px; }

.pin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 13px/1 var(--sans);
  border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); background: var(--c, var(--ocean)); }
.pin-sleep { background: #13222b; color: #ffd9a8; }
.pin-sleep svg { width: 14px; height: 14px; fill: currentColor; }
.pin-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pin-air { background: #fff; color: var(--flight); border-color: var(--flight); }
.pin-air svg { width: 15px; height: 15px; fill: currentColor; }
.pin-sm { border-width: 2px; } .pin-sm svg { width: 11px; height: 11px; }
.pin { transition: translate .2s; }
.map-label { background: none; border: 0; box-shadow: none; font: 700 12px/1.1 var(--sans); color: #13222b; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff; white-space: nowrap; }
.map-label.big { font: 600 italic 18px/1 var(--serif); }
.map-label.flight { color: var(--flight); font-size: 11px; }
.leaflet-tooltip.map-label::before { display: none; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 26px; height: 4px; border-radius: 2px; background: var(--c); display: inline-block; }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 10px); }

/* ---------- vuelos ---------- */
.flights { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 820px) { .flights { grid-template-columns: 1fr 1fr; } }
.flight-card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.flight-card h3 { font-size: 20px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.flight-card h3 small { font: 600 12px var(--sans); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.fl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; padding: 12px 0; border-top: 1px dashed var(--line); }
.fl:first-of-type { border-top: 0; }
.fl-code { font: 700 13px var(--sans); color: var(--flight); background: color-mix(in srgb, var(--flight) 12%, transparent); padding: 4px 8px; border-radius: 6px; }
.fl-route { font: 600 22px/1 var(--serif); display: flex; align-items: center; gap: 8px; }
.fl-route svg { width: 18px; height: 18px; fill: var(--muted); }
.fl-times { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; }
.fl-dom { font-size: 14px; color: var(--ink-2); }
.fl-dom li { margin: 6px 0; }
.fl-dom b { color: var(--ink); }

/* ---------- tramos ---------- */
.tramos { display: grid; gap: 28px; }
.tramo { background: var(--card); border-radius: 24px; overflow: hidden; overflow: clip; box-shadow: var(--shadow-lg); display: grid; }
.tramo-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tramo-photo img { width: 100%; height: 100%; object-fit: cover; }
.tramo-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,22,30,.78), rgba(8,22,30,0) 60%); }
.tramo-title { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #fff; }
.tramo-title .num { font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .85; display: flex; gap: 8px; align-items: center; }
.tramo-title .num::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--c); }
.tramo-title h3 { font-size: clamp(34px, 7vw, 52px); font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
.tramo-title p { margin: 4px 0 0; font: italic 400 16px var(--serif); opacity: .9; }
.tramo-body { padding: 20px; display: grid; gap: 18px; }
.tramo-body > p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.tramo-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.tramo-stats div { display: flex; flex-direction: column; }
.tramo-stats b { font: 600 30px/1 var(--serif); color: var(--c); font-variant-numeric: tabular-nums; }
.tramo-stats span { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.tramo .map { height: 340px; border-radius: 14px; }
.sleeps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14.5px; }
.sleeps li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.sleeps li:last-child { border-bottom: 0; }
.sleeps .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.sleeps b { font-weight: 600; }
.sleeps b::before { content: "☾ "; color: var(--c); }
@media (min-width: 700px) { .tramo-photo { aspect-ratio: 16 / 8; } .tramo-body { padding: 26px 28px 30px; } .tramo .map { height: 420px; } }
@media (min-width: 1100px) {
  .tramo { grid-template-columns: 5fr 6fr; }
  .tramo-photo { aspect-ratio: auto; position: sticky; top: 56px; align-self: start; height: calc(100svh - 56px); max-height: 820px; }
  .tramo:nth-child(even) .tramo-photo { order: 2; }
}

/* ---------- barra de filtros ---------- */
.toolbar { position: sticky; top: 56px; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; margin-bottom: 14px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sw { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sw-victoria { background: var(--victoria); } .sw-tropico { background: var(--tropico); } .sw-tasmania { background: var(--tasmania); }
.toolbar { flex-wrap: nowrap; }
.chips { flex: 1 1 auto; min-width: 0; }
.toolbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
@media (max-width: 639px) {
  .progress { display: none; }
  .chip { padding: 6px 10px; font-size: 13px; gap: 5px; }
  .btn-ghost { padding: 0; width: 36px; height: 36px; display: grid; place-items: center; }
  .btn-ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .toolbar .btn-ghost svg { display: block; }
  .chips { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 18px; }
}
.progress { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.btn-ghost svg { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost { position: relative; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }

/* ---------- días ---------- */
.days { display: grid; gap: 14px; }
.day { --c: var(--victoria); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; overflow: clip; position: relative; }
.day[data-tramo="tropico"] { --c: var(--tropico); } .day[data-tramo="tasmania"] { --c: var(--tasmania); }
.day::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); z-index: 2; }
.day.is-seen .day-head { opacity: .72; }
.day-head { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px 12px 16px; cursor: pointer; }
.day-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; position: relative; background: var(--paper-2); }
.day-thumb img { width: 100%; height: 100%; object-fit: cover; }
.day-thumb span { position: absolute; left: 0; bottom: 0; right: 0; padding: 14px 6px 4px; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.day-meta { min-width: 0; }
.day-date { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.day-date .warn-tag { background: var(--warn-bg); color: var(--warn-ink); padding: 1px 7px; border-radius: 5px; font-size: 11px; letter-spacing: .04em; }
.day-title { font-size: 19px; font-weight: 600; margin: 3px 0 4px; line-height: 1.2; }
.day-facts { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.day-facts span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.day-facts svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.day-ctrl { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.seen { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.seen input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); margin: 0; display: grid; place-items: center; cursor: pointer; background: var(--card); }
.seen input:checked { background: var(--c); border-color: var(--c); }
.seen input:checked::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.seen-label { display: none; }
.chev { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); transition: transform .25s; border: 0; cursor: pointer; }
.chev svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.day.is-open .chev { transform: rotate(180deg); }
@media (min-width: 640px) {
  .day-head { grid-template-columns: 96px 1fr auto; padding: 14px 18px 14px 20px; gap: 18px; }
  .day-thumb { width: 96px; height: 96px; }
  .day-title { font-size: 23px; }
  .day-ctrl { flex-direction: row; gap: 14px; }
  .seen-label { display: inline; }
}
.day-body { display: none; }
.day.is-open .day-body { display: block; }
.day-hero { position: relative; aspect-ratio: 16 / 9; max-height: 520px; width: 100%; overflow: hidden; }
.day-hero img { width: 100%; height: 100%; object-fit: cover; }
.day-hero figcaption, .credit { position: absolute; right: 8px; bottom: 6px; font-size: 10.5px; color: #fff; opacity: .8; text-shadow: 0 1px 3px rgba(0,0,0,.8); max-width: 80%; text-align: right; }
.day-hero figcaption a, .credit a { color: inherit; }
.day-content { padding: 20px 16px 24px 20px; display: grid; gap: 22px; }
@media (min-width: 640px) { .day-content { padding: 26px 28px 30px 32px; } }
.day-summary { font: 400 19px/1.5 var(--serif); margin: 0; color: var(--ink); }
.warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 14px 16px 14px 46px; position: relative; font-size: 15px; }
.warn::before { content: "!"; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--warn-ink); color: var(--warn-bg); font: 800 14px/22px var(--sans); text-align: center; }
.warn b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.stat { background: var(--paper); border-radius: 12px; padding: 10px 14px; }
.stat b { display: block; font: 600 24px/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.day .map { height: 320px; }
@media (min-width: 820px) { .day .map { height: 420px; } }
.routes h4, .block h4 { font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.route-links { display: flex; flex-wrap: wrap; gap: 8px; }
.route-link { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); text-decoration: none; border-radius: 999px; padding: 9px 14px; font-size: 13.5px; font-weight: 600; max-width: 100%; }
.route-link svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.route-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-layout { display: grid; gap: 22px; }
@media (min-width: 1024px) {
  .day-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  .day-layout .map-col { position: sticky; top: 124px; }
  .day .map { height: 520px; }
}
.sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: site; }
.site { background: var(--paper); border-radius: 14px; overflow: hidden; }
.site-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; }
.site-gallery::-webkit-scrollbar { display: none; }
.site-gallery button { flex: 0 0 100%; scroll-snap-align: start; border: 0; padding: 0; margin: 0; background: var(--paper-2); cursor: zoom-in; position: relative; aspect-ratio: 3 / 2; }
.site-gallery.multi button { flex-basis: 86%; }
.site-gallery.multi button + button { margin-left: 4px; }
.site-gallery img { width: 100%; height: 100%; object-fit: cover; }
.site-gallery .count { position: absolute; left: 10px; top: 10px; background: rgba(8,22,30,.7); color: #fff; font: 700 11.5px var(--sans); border-radius: 999px; padding: 3px 9px; }
.site-body { padding: 14px 16px 16px; }
.site-head { display: flex; align-items: flex-start; gap: 10px; }
.site-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font: 700 13px/26px var(--sans); text-align: center; margin-top: 1px; }
.site h3 { font-size: 20px; font-weight: 600; }
.site .dur { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.site .star { color: var(--gold); font-size: 13px; margin-left: 4px; }
.site p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.site .tip { background: color-mix(in srgb, var(--c) 10%, transparent); border-left: 3px solid var(--c); padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 14px; color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; }
.links a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.links a.go { background: var(--c); color: #fff; border-color: var(--c); }
.pop .links a { padding: 5px 10px; font-size: 12px; }
@media (min-width: 640px) and (max-width: 1023px) {
  .sites { grid-template-columns: 1fr 1fr; }
}
.site-photo-credit { font-size: 10.5px; color: var(--muted); padding: 5px 16px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-photo-credit a { color: inherit; }
.blocks { display: grid; gap: 16px; }
@media (min-width: 820px) { .blocks { grid-template-columns: 1fr 1fr; } }
.block { background: var(--paper); border-radius: 14px; padding: 16px 18px; }
.block ul { margin: 0; padding: 0 0 0 18px; font-size: 15px; color: var(--ink-2); }
.block li { margin: 6px 0; }
.block li::marker { color: var(--c); }
.block.book li::marker { content: "☐  "; }
.day-flights { display: flex; flex-wrap: wrap; gap: 8px; }
.day-flights span { font-size: 13.5px; background: color-mix(in srgb, var(--flight) 12%, transparent); color: var(--ink); border-radius: 8px; padding: 6px 10px; }
.day-flights b { color: var(--flight); }
.day.is-hidden { display: none; }

/* ---------- pie ---------- */
.footer { margin-top: 96px; padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); background: var(--deep); color: #d9e4e8; font-size: 14px; }
:root[data-theme="dark"] .footer { background: #07121a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer { background: #07121a; } }
.footer a { color: #fff; }
.foot-title { font: 600 28px var(--serif); color: #fff; margin: 0 0 10px; }
.foot-title em { color: #ffb48a; font-weight: 400; }
.foot-note { opacity: .7; }
.credits summary { cursor: pointer; font-weight: 700; color: #fff; margin: 16px 0 8px; }
.credits ol { columns: 1; font-size: 12px; opacity: .8; padding-left: 22px; }
@media (min-width: 820px) { .credits ol { columns: 2; column-gap: 40px; } }
.credits li { break-inside: avoid; margin-bottom: 4px; }

/* ---------- visor de fotos ---------- */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(5, 12, 16, .94); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 80svh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #cfd8dc; font-size: 13px; text-align: center; margin-top: 10px; }
.lightbox figcaption a { color: #fff; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 12px; top: 50%; } .lb-next { right: 12px; top: 50%; }
.map { position: relative; }
.map-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 800; pointer-events: none;
  background: rgba(8,22,30,.78); color: #fff; font: 600 12.5px var(--sans); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
