/* estilo.css — aspecto de la guía. Colores y tipografías en :root. */

:root {
  --paper: #f4eee3;
  --paper-2: #ebe2d2;
  --card: #fbf8f2;
  --ink: #221d18;
  --ink-2: #4b433a;
  --muted: #7d7265;
  --line: #dcd1bf;
  --line-2: #e7ded0;
  --shu: #c4432b;
  --shu-d: #9e2f1c;
  --gold: #b5861d;
  --moss: #5f6d3a;
  --ai: #2f5d6e;
  --night: #221b26;
  --c: var(--shu);
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --shadow: 0 1px 0 rgba(34, 29, 24, .04), 0 14px 34px -18px rgba(70, 45, 20, .35);
  --page: 520px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #17120f; }
html.ov-open { overflow: hidden; }
body {
  margin: 0 auto; max-width: var(--page); min-height: 100vh;
  font: 400 16px/1.65 var(--sans); color: var(--ink); background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .18s ease;
}
@media (min-width: 560px) { body { box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 30px 80px rgba(0, 0, 0, .5); } }
body.switching { opacity: 0; }
html[lang="ja"] body { line-height: 1.8; word-break: auto-phrase; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1.25; letter-spacing: -.005em; font-feature-settings: "palt"; }
p { margin: 0; }
strong { font-weight: 700; color: var(--ink); }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); font-size: 15px; }
.small { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 14px; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 2px; border-radius: 6px; }

/* ── Botones ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px;
  font: 700 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, box-shadow .2s;
}
.btn:active, .btn-mini:active, .chip:active, .tab:active { transform: scale(.96); }
.btn-ink { background: var(--ink); color: var(--card); box-shadow: 0 6px 16px -8px rgba(34, 29, 24, .6); }
.btn-line { border: 1px solid var(--line); background: var(--card); }
.btn-paper { background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn-paper .ic { transform: rotate(0); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-mini {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  font: 700 13.5px/1.2 var(--sans); text-decoration: none; color: var(--ink);
  transition: transform .18s var(--ease), background .2s;
}
.btn-mini .ic { width: 16px; height: 16px; }
.btn-mini-ink { background: var(--ink); border-color: var(--ink); color: var(--card); }

/* ── Sellos (hanko) y etiquetas ───────────────────────────────────────────── */
.seal, .hanko {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--c, var(--shu)); color: #fbf6ec;
  font: 800 22px/1 var(--serif);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .16), 0 6px 14px -8px rgba(110, 30, 15, .7);
  transform: rotate(-3deg);
}
.seal-sm { width: 34px; height: 34px; font-size: 17px; border-radius: 8px; }
.seal-xs { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; transform: rotate(-2deg); }
.seal-2 { font-size: 11px; letter-spacing: -.05em; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 8px; border-radius: 7px;
  font: 700 12.5px/1.35 var(--sans); background: rgba(34, 29, 24, .06); color: var(--ink-2);
  vertical-align: middle;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.tag-gratis { background: rgba(95, 109, 58, .13); color: #4b5a26; }
.tag-pago { background: rgba(196, 67, 43, .1); color: var(--shu-d); }
.tag-pendiente { background: transparent; color: #8a6412; box-shadow: inset 0 0 0 1px rgba(181, 134, 29, .55); }
.tag-pendiente::before { background: none; border: 1.5px dashed currentColor; width: 7px; height: 7px; }
.tag-destacado { background: var(--night); color: #f6c98a; }
.tag-info { color: var(--muted); }
h3 .tag, h4 .tag { font-family: var(--sans); font-size: 11.5px; padding: 2px 8px; margin-left: 4px; position: relative; top: -2px; }

/* ── Aviso de configuración ───────────────────────────────────────────────── */
.cfg-warn, .cfg-error { margin: 0; padding: 16px 20px; background: #fff3cd; color: #5c4400; font-size: 14px; border-bottom: 2px solid #e0b43a; }
.cfg-warn ul { margin: 6px 0 0; padding-left: 18px; }
.cfg-error { margin: 40px 16px; border: 2px solid var(--shu); border-radius: 14px; background: var(--card); color: var(--ink); }
.cfg-error p { margin-top: 8px; }

/* ── Pantalla de idioma ───────────────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 40px 28px calc(40px + var(--safe-b)); text-align: center;
  background: var(--paper); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash-v { writing-mode: vertical-rl; font: 800 40px/1 var(--serif); letter-spacing: .28em; color: var(--ink); animation: rise .9s var(--ease) both; }
.splash-t { font: 700 20px/1.4 var(--serif); color: var(--ink-2); animation: rise .9s .12s var(--ease) both; }
.splash-q { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); animation: rise .9s .2s var(--ease) both; }
.splash-btns { display: grid; gap: 10px; width: min(100%, 300px); animation: rise .9s .28s var(--ease) both; }
.splash-btns button { min-height: 56px; border-radius: 14px; background: var(--ink); color: var(--card); font: 700 17px/1 var(--serif); transition: transform .18s var(--ease); }
.splash-btns button + button { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.splash-btns button:active { transform: scale(.97); }
.splash-leaves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.splash-leaves .leaf { position: absolute; width: 90px; fill: var(--shu); opacity: .9; }
.splash-leaves .leaf:nth-child(1) { top: 6%; left: -14px; transform: rotate(-24deg); animation: sway 7s ease-in-out infinite; }
.splash-leaves .leaf:nth-child(2) { top: 12%; right: 8%; width: 46px; fill: var(--gold); transform: rotate(30deg); animation: sway 9s -2s ease-in-out infinite; }
.splash-leaves .leaf:nth-child(3) { bottom: 8%; right: -18px; width: 120px; fill: #d0782c; transform: rotate(160deg); animation: sway 8s -4s ease-in-out infinite; }
.leaf { fill: currentColor; }
.leaf .leaf-stem { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.splash-leaves .leaf-stem { stroke: var(--shu); }

/* ── Portada ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: #1c1714; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 26s var(--ease) both; opacity: 0; transition: opacity 1.2s ease; }
.hero-media img.ok { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18, 13, 10, .55) 0%, rgba(18, 13, 10, 0) 22%, rgba(18, 13, 10, .08) 45%, rgba(18, 13, 10, .78) 78%, rgba(22, 17, 14, .96) 100%);
}
.hero::after { /* borde de papel rasgado */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px; background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 18' preserveAspectRatio='none'%3E%3Cpath d='M0 9 L14 7 L27 10 L41 6 L56 9 L70 5 L86 9 L101 7 L118 11 L133 6 L149 8 L163 5 L180 9 L196 7 L211 10 L228 6 L243 9 L259 5 L276 8 L291 6 L307 10 L322 7 L338 9 L353 5 L369 8 L385 6 L400 9 V18 H0Z'/%3E%3C/svg%3E") center/100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 18' preserveAspectRatio='none'%3E%3Cpath d='M0 9 L14 7 L27 10 L41 6 L56 9 L70 5 L86 9 L101 7 L118 11 L133 6 L149 8 L163 5 L180 9 L196 7 L211 10 L228 6 L243 9 L259 5 L276 8 L291 6 L307 10 L322 7 L338 9 L353 5 L369 8 L385 6 L400 9 V18 H0Z'/%3E%3C/svg%3E") center/100% 100%;
}
.hero-top {
  position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: calc(14px + var(--safe-t)) 16px 0 20px;
}
.hero-credit { font-size: 11px; line-height: 1.4; opacity: .7; max-width: 60%; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.hero-v {
  position: absolute; right: 22px; top: calc(78px + var(--safe-t)); writing-mode: vertical-rl;
  font: 700 23px/1 var(--serif); letter-spacing: .32em; color: rgba(255, 255, 255, .94);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45); animation: fadein 1.6s .4s var(--ease) both;
}
.hero-v::after { content: ""; display: block; width: 1px; height: 46px; margin: 14px auto 0; background: rgba(255, 255, 255, .6); }
.hero-body { padding: 0 22px 54px; }
.hero-body > * { animation: rise 1s var(--ease) both; }
.hero-body > :nth-child(2) { animation-delay: .1s; }
.hero-body > :nth-child(3) { animation-delay: .2s; }
.hero-body > :nth-child(4) { animation-delay: .3s; }
.hero-body > :nth-child(5) { animation-delay: .42s; }
.hero-kicker { font: 700 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #efc27c; }
html[lang="ja"] .hero-kicker { letter-spacing: .12em; }
.hero-title { margin-top: 12px; font: 800 44px/1.04 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.hero-title span { display: block; margin-top: 8px; font-weight: 500; font-size: 27px; color: #f2c88a; }
html[lang="ja"] .hero-title { font-size: 40px; line-height: 1.15; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.hanko { width: 48px; height: 48px; font-size: 15px; line-height: 1.05; padding: 4px; text-align: center; word-break: break-all; writing-mode: vertical-rl; letter-spacing: .05em; }
.hero-dates { font: 700 16px/1.3 var(--sans); letter-spacing: .02em; }
.hero-ded { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 34ch; }
.hero-ded strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-fall { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fall { position: absolute; top: -60px; left: var(--x); animation: fall var(--d) linear var(--w) infinite; }
.fall > span { display: block; width: 34px; color: var(--c); opacity: .9; transform: scale(var(--s)); animation: flutter calc(var(--d) / 3) ease-in-out var(--w) infinite alternate; }
.fall .leaf { width: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--shu); box-shadow: 0 0 0 0 rgba(196, 67, 43, .6); animation: live 1.8s infinite; display: inline-block; }

/* ── Selector de idioma ───────────────────────────────────────────────────── */
.lang {
  display: inline-flex; padding: 3px; border-radius: 11px; background: rgba(34, 29, 24, .07); flex: none;
  font: 700 12.5px/1 var(--sans);
}
.lang span { padding: 8px 9px; border-radius: 8px; color: var(--muted); transition: background .25s var(--ease), color .25s; }
.lang span.on { background: var(--ink); color: var(--card); }
.lang-dark { background: rgba(0, 0, 0, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang-dark span { color: rgba(255, 255, 255, .75); }
.lang-dark span.on { background: var(--paper); color: var(--ink); }

/* ── Barra fija de días ───────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 6px;
  padding: var(--safe-t) 10px 0 0; background: rgba(244, 238, 227, .94);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.bar.stuck { border-bottom-color: var(--line); box-shadow: 0 8px 20px -16px rgba(60, 40, 20, .5); }
.bar-tabs {
  position: relative; flex: 1; display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 6px;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%);
          mask: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%);
}
.bar-tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; height: 60px; padding: 0 8px; text-decoration: none; color: var(--muted);
  transition: color .3s, transform .18s var(--ease);
}
.tab b { font: 700 20px/1 var(--serif); }
.tab small { margin-top: 5px; font: 500 11px/1 var(--sans); white-space: nowrap; }
.tab.on { color: var(--c, var(--ink)); }
.tab.on small { color: var(--ink-2); }
.tab.is-today::after { content: ""; position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--shu); }
.bar-ink { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 3px 3px 0 0; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease), background .45s; }

/* ── Secciones ────────────────────────────────────────────────────────────── */
.sec { padding: 52px 18px 20px; scroll-margin-top: 58px; }
.sec-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.sec-head h2 { font-size: 28px; }
.sec-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.mini-t { margin: 30px 0 10px; font: 700 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ja"] .mini-t { letter-spacing: .06em; }

/* Aparición al hacer scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ── Cifras del viaje ─────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 22px; border-top: 1px solid var(--line); }
.stats > div { padding: 16px 4px 14px; border-bottom: 1px solid var(--line); }
.stats > div:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.stats > div:nth-child(even) { padding-left: 16px; }
.stats dt { font: 800 34px/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats dt.money { font-size: 19px; line-height: 1.2; letter-spacing: 0; padding-top: 8px; }
.stats dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* ── Mapa ─────────────────────────────────────────────────────────────────── */
.map-slot { height: 400px; }
.map-frame {
  position: relative; height: 100%; border-radius: var(--r); overflow: hidden; background: #e9e1d2;
  box-shadow: var(--shadow), 0 0 0 1px var(--line-2);
}
.map { position: absolute; inset: 0; background: #e9e1d2; font-family: var(--sans); }
.map .leaflet-tile-pane { filter: sepia(.32) saturate(.62) hue-rotate(-6deg) contrast(.92) brightness(1.05); }
.map img { max-width: none; }
.map-cover { position: absolute; inset: 0; z-index: 500; display: flex; align-items: flex-start; justify-content: flex-end; padding: 12px; }
.map-cover span {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 11px;
  background: rgba(34, 29, 24, .82); color: #fff; font: 700 12.5px/1 var(--sans);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.map-cover .ic { width: 15px; height: 15px; }
.map-chips {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 12px 12px;
}
.map-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 10px;
  background: rgba(251, 248, 242, .95); color: var(--ink); font: 700 13px/1 var(--sans);
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35), 0 0 0 1px rgba(34, 29, 24, .08);
  transition: background .25s, color .25s, transform .18s var(--ease);
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip .ic { width: 15px; height: 15px; }
.chip.on { background: var(--c, var(--ink)); color: #fff; }
.chip.on i { background: #fff; }
.chip-zone.on, .chip[data-sel="all"].on { background: var(--ink); }
.map-btn {
  position: absolute; z-index: 700; top: calc(12px + var(--safe-t)); width: 46px; height: 46px; border-radius: 14px;
  display: none; place-items: center; background: var(--card); color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45), 0 0 0 1px rgba(34, 29, 24, .08);
}
.map-close { left: 12px; }
.map-locate { right: 12px; }
.map-locate.busy .ic { animation: spin 1s linear infinite; }
.map-frame.is-full {
  position: fixed; inset: 0; z-index: 80; border-radius: 0; height: auto;
  animation: mapin .4s var(--ease) both;
}
.is-full .map-cover { display: none; }
.is-full .map-btn { display: grid; }
.is-full .map-chips { padding-bottom: calc(14px + var(--safe-b)); }
.is-full .leaflet-top.leaflet-right { top: calc(66px + var(--safe-t)); }
.no-map .map-cover { display: none; }
.no-map .map::after { content: "Mapa no disponible sin conexión"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font: 400 22px/32px var(--sans); color: #fff; top: 4px; right: 4px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.leaflet-control-attribution { font-size: 10px; background: rgba(251, 248, 242, .8) !important; }
.map-frame:not(.is-full) .leaflet-control-attribution { margin-bottom: 58px !important; }
.is-full .leaflet-control-attribution { margin-bottom: calc(62px + var(--safe-b)) !important; }
.leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; font: 400 20px/40px var(--sans) !important; }
.leaflet-bar { border: 0 !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45), 0 0 0 1px rgba(34, 29, 24, .08) !important; }

/* Marcadores */
.mk {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--c, var(--shu)); color: #fff; font: 800 15px/1 var(--serif);
  border: 2.5px solid #fffaf2; box-shadow: 0 3px 8px rgba(40, 20, 10, .4);
  transition: transform .2s var(--spring);
}
.leaflet-marker-icon:hover .mk { transform: scale(1.12); }
.mk-opt { border-style: dashed; }
.mk-place { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); font-family: var(--sans); font-size: 13px; transform: rotate(-4deg); }
.mk-dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid #fffaf2; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.mk-me { display: block; width: 22px; height: 22px; border-radius: 50%; background: #2a7de1; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(42, 125, 225, .5); animation: me 2s infinite; }

/* Ventanas del mapa */
.pop .leaflet-popup-content-wrapper { padding: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -14px rgba(30, 15, 5, .55); }
.pop .leaflet-popup-content { margin: 0; width: 240px !important; font: 400 14px/1.5 var(--sans); }
.pop .leaflet-popup-tip { box-shadow: none; }
.pop-in img { width: 100%; height: 118px; object-fit: cover; opacity: 1; }
.pop-body { padding: 12px 14px 14px; border-top: 3px solid var(--c); }
.pop-sub { display: block; font: 700 11.5px/1.3 var(--sans); color: var(--c); letter-spacing: .04em; }
.pop-body b { display: block; margin-top: 4px; font: 700 16.5px/1.3 var(--serif); color: var(--ink); }
.pop-acts { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pop-acts .btn-mini { min-height: 36px; text-decoration: none; color: var(--ink); }
.pop-acts .btn-mini-ink { color: var(--card); }

/* Índice de paradas */
.stop-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stop-index a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 2px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.stop-index a:active { background: rgba(34, 29, 24, .04); }
.num { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font: 800 13.5px/1 var(--serif); }
.stop-index .nm { flex: 1; font: 700 15.5px/1.3 var(--serif); }
.stop-index small { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ── Días ─────────────────────────────────────────────────────────────────── */
.day { position: relative; padding-top: 64px; border-top: 1px solid var(--line-2); }
.day-head { position: relative; padding-right: 72px; }
.day-big {
  position: absolute; right: -6px; top: -26px; font: 800 118px/1 var(--serif); color: var(--c);
  opacity: .14; letter-spacing: -.05em; pointer-events: none; font-variant-numeric: lining-nums;
}
.day-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 700 13px/1.4 var(--sans); color: var(--ink-2); }
.day-chip { padding: 5px 9px; border-radius: 7px; background: var(--c); color: #fff; letter-spacing: .04em; }
.today { display: inline-flex; align-items: center; gap: 6px; color: var(--shu); }
.day-title { margin-top: 12px; font-size: 30px; line-height: 1.15; text-wrap: balance; }
.day-route { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.day-route i { font-style: normal; color: var(--c); font-weight: 700; padding: 0 1px; }
.day-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 0; border-top: 1px solid var(--line); }
.day-stats > div { padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.day-stats > div:nth-child(2) { padding-left: 14px; border-left: 1px solid var(--line); }
.day-stats .wide { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.day-stats dt { font: 800 20px/1.2 var(--serif); }
.day-stats dd { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* Boceto de la ruta del día */
.sketch { margin: 22px 0 0; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line-2); overflow: hidden; }
.sketch-map { display: block; width: 100%; }
.sk { display: block; width: 100%; height: auto; }
.sk-grid { fill: none; stroke: rgba(125, 114, 101, .1); stroke-width: 1; }
.sk-ghost { fill: none; stroke: rgba(125, 114, 101, .28); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-case { fill: none; stroke: var(--card); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.sk-route {
  fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000);
  transition: stroke-dashoffset 2.2s cubic-bezier(.6, .1, .3, 1);
}
.drawn .sk-route { stroke-dashoffset: 0; }
.sk-straight { stroke-dasharray: 2 7 !important; stroke-dashoffset: 0 !important; }
.sk-stop circle { fill: var(--c); stroke: var(--card); stroke-width: 2.5; }
.sk-stop text, .sk-place text { fill: #fff; font: 800 11px/1 var(--serif); text-anchor: middle; }
.sk-place rect { fill: var(--ink); stroke: var(--card); stroke-width: 2; }
.sk-dot { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; }
.sk-stop, .sk-place, .sk-dot { opacity: 0; transition: opacity .5s ease 1.4s; }
.drawn .sk-stop, .drawn .sk-place, .drawn .sk-dot { opacity: 1; }
.sk-n path { fill: var(--muted); }
.sk-n text { fill: var(--muted); font: 700 9px/1 var(--sans); text-anchor: middle; }
.sketch figcaption { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-top: 1px solid var(--line-2); }
.sketch figcaption > * { flex: 1 1 auto; justify-content: center; }

/* Recuadro destacado (evento) */
.feature {
  position: relative; margin: 22px 0 0; padding: 22px 20px 22px; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(120% 90% at 90% 0%, rgba(232, 120, 40, .45), rgba(232, 120, 40, 0) 55%), var(--night);
  color: #f3e9dc; box-shadow: var(--shadow);
}
.feature::after { content: ""; position: absolute; right: 18px; top: 20px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 70, .55), rgba(255, 170, 70, 0) 70%); animation: glow 3.2s ease-in-out infinite alternate; pointer-events: none; }
.lantern { position: absolute; right: 26px; top: -4px; width: 52px; transform-origin: 50% 0; animation: swing 4.5s ease-in-out infinite; z-index: 1; }
.l-string { stroke: #6e5a4a; stroke-width: 2; }
.l-cap { fill: #2c2320; }
.l-body { fill: #d2452a; }
.l-rib { stroke: rgba(0, 0, 0, .22); stroke-width: 1.4; fill: none; }
.l-txt { fill: #2b1a12; font: 800 18px/1 var(--serif); }
.feature-tag { font: 700 11.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #f6c98a; padding-right: 70px; }
.feature h3 { margin-top: 8px; font-size: 26px; color: #fff; padding-right: 70px; }
.feature p { margin-top: 10px; font-size: 15px; color: rgba(243, 233, 220, .88); }
.feature strong { color: #fff; }
.feature ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.feature li { position: relative; padding-left: 20px; font-size: 15px; }
.feature li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: #ff9a48; box-shadow: 0 0 10px #ff9a48; }
.feature-note { font-size: 13px !important; opacity: .75; }

/* ── Línea de tiempo ──────────────────────────────────────────────────────── */
.tl { list-style: none; position: relative; margin: 30px 0 0; padding: 0 0 0 30px; }
.tl::before {
  content: ""; position: absolute; left: 10px; top: 8px; bottom: 12px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--c), color-mix(in srgb, var(--c) 25%, transparent));
}
.tl > li { position: relative; padding: 0 0 26px; }
.tl-dot { position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--c); }
.tl-dot-n { left: -32px; top: -2px; width: 26px; height: 26px; display: grid; place-items: center; background: var(--c); border: 2.5px solid var(--paper); color: #fff; font: 800 12.5px/1 var(--serif); }
.tl time { display: inline-block; font: 700 13px/1.3 var(--sans); color: var(--c); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.tl-ev h3 { margin-top: 3px; font-size: 18.5px; }
.tl-ev h3 a { text-decoration: none; border-bottom: 1px solid var(--line); }
.tl-ev p { margin-top: 5px; color: var(--ink-2); font-size: 15px; }
.tl-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tl-lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 2px 0 12px; min-height: 22px; font-size: 14.5px; color: var(--ink-2); }
.tl-stop .stop { position: relative; margin-left: -30px; }
.tl-drive { display: flex; align-items: center; gap: 12px; padding-bottom: 24px !important; }
.tl-drive::before { content: ""; position: absolute; left: -21px; top: -4px; bottom: 6px; width: 4px; background: repeating-linear-gradient(var(--paper) 0 5px, transparent 5px 10px); }
.tl-car {
  position: absolute; left: -36px; top: 50%; margin-top: -24px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--c); border: 1.5px dashed color-mix(in srgb, var(--c) 60%, transparent);
}
.tl-car .ic { width: 17px; height: 17px; }
.tl-drive > div { display: flex; flex-direction: column; padding: 2px 0 0 4px; }
.tl-drive-k { font-size: 14.5px; color: var(--ink); }
.tl-drive-k b { font-family: var(--serif); font-weight: 800; font-size: 16px; }
.tl-drive-r { font-size: 13px; color: var(--muted); }
.tl-note p {
  padding: 12px 14px; border-radius: 12px; background: rgba(181, 134, 29, .1); color: var(--ink-2);
  font-size: 14.5px; border-left: 3px solid var(--gold);
}
.tl-note::before { content: ""; position: absolute; left: -24px; top: 18px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--gold); }

/* ── Ficha de parada ──────────────────────────────────────────────────────── */
.stop { border-radius: var(--r); background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line-2); overflow: hidden; scroll-margin-top: 74px; }
.stop.flash { animation: flash 1.6s var(--ease); }
.gal { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); }
.gal-empty { aspect-ratio: auto; height: 64px; }
.gal-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal figure { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; overflow: hidden; }
.gal img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; opacity: 0; transform: scale(1.05); transition: opacity .7s ease, transform 1.2s var(--ease); }
.gal img.ok { opacity: 1; transform: none; }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 24px; pointer-events: none;
  background: linear-gradient(transparent, rgba(15, 10, 8, .72)); color: #fff; font: 700 13.5px/1.35 var(--sans);
}
.gal figcaption small { display: block; margin-top: 2px; font-weight: 400; font-size: 10.5px; opacity: .7; }
.gal-num {
  position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--c); color: #fff; font: 800 20px/1 var(--serif); transform: rotate(-3deg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2), 0 6px 14px -6px rgba(0, 0, 0, .5); pointer-events: none;
}
.gal-count { position: absolute; right: 12px; top: 12px; padding: 5px 9px; border-radius: 99px; background: rgba(15, 10, 8, .55); color: #fff; font: 700 11.5px/1 var(--sans); pointer-events: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.gal-dots i { width: 5px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .5); transition: width .3s var(--ease), background .3s; }
.gal-dots i.on { width: 16px; background: #fff; }
.img-missing { display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--paper-2) 0 10px, var(--paper) 10px 20px); }
.img-missing::after { content: "Falta la foto: " attr(data-missing); position: absolute; inset: auto 12px 50% 12px; text-align: center; color: var(--shu-d); font: 700 13px/1.4 var(--sans); }
.img-missing img { opacity: 0 !important; }

.stop-body { padding: 18px 18px 18px; }
.stop-body h3 { font-size: 22px; text-wrap: balance; }
.stop-sub { margin-top: 4px; font: 500 14px/1.4 var(--serif); color: var(--muted); letter-spacing: .06em; }
.why { margin: 16px 0 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--c); font: 500 16px/1.6 var(--serif); color: var(--ink); }
.why small { display: block; margin-bottom: 4px; font: 700 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
html[lang="ja"] .why small { letter-spacing: .05em; }
.stop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stop-actions .btn { flex: 1 1 auto; padding: 0 14px; }
.more-toggle .ic { transition: transform .4s var(--ease); }
.open .more-toggle .ic { transform: rotate(180deg); }
.when-open, .open .when-closed { display: none; }
.open .when-open { display: inline; }
.more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.open .more { grid-template-rows: 1fr; }
.more-in { overflow: hidden; min-height: 0; }
.more-in > :first-child { margin-top: 18px; }
.more-in > * { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .5s var(--ease); }
.open .more-in > * { opacity: 1; transform: none; transition-delay: .12s; }
.desc { color: var(--ink-2); font-size: 15.5px; }
.stop h4 { margin: 20px 0 8px; font: 700 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ja"] .stop h4 { letter-spacing: .05em; }
.see { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.see li { position: relative; padding-left: 20px; font-size: 15px; }
.see li::before { content: ""; position: absolute; left: 3px; top: .58em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--c); border-radius: 1px; }
.info { margin: 0; border-top: 1px solid var(--line-2); }
.info > div { display: grid; grid-template-columns: minmax(84px, 34%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.info dt { font-weight: 700; color: var(--ink); }
.info dd { margin: 0; color: var(--ink-2); }
.links { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: var(--paper); text-decoration: none; font: 700 14px/1.3 var(--sans); transition: background .2s; }
.links a:active { background: var(--paper-2); }
.links small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.links .ic { color: var(--muted); }

/* ── Práctico ─────────────────────────────────────────────────────────────── */
#practico { border-top: 1px solid var(--line-2); padding-top: 64px; }
.block { margin: 0 0 16px; padding: 20px 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line-2); }
.block-t { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 21px; }
.nights { list-style: none; margin: 14px 0 0; padding: 0; }
.nights li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.nights-when { font: 700 13px/1.35 var(--serif); color: var(--shu); padding-top: 3px; }
.nights h4 { font-size: 17px; }
.nights p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.nights .price { font: 800 16px/1.4 var(--serif); color: var(--ink); margin: 6px 0 10px; }
.nights .price small { font: 400 12.5px var(--sans); color: var(--muted); }
.bud { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-2); }
.bud .seal { background: var(--c); }
.bud-main { flex: 1; min-width: 0; }
.bud-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; font-weight: 700; }
.bud-top b { font-family: var(--serif); white-space: nowrap; }
.bud-bar { position: relative; height: 8px; margin: 8px 0 5px; border-radius: 8px; background: var(--paper-2); overflow: hidden; }
.bud-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .25s; }
.bud-bar .max { background: color-mix(in srgb, var(--c) 35%, transparent); }
.bud-bar .min { background: var(--c); transition-delay: .4s; }
.in .bud-bar i, .in .dbar-stack i { transform: scaleX(1); }
.bud small { font-size: 12.5px; color: var(--muted); }
.bud-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; padding: 16px 0 4px; border-top: 2px solid var(--ink); }
.bud-total span { font-weight: 700; }
.bud-total b { font: 800 22px/1 var(--serif); }
.dbar { padding: 8px 0; }
.dbar-top { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); }
.dbar-top b { font-family: var(--serif); color: var(--ink); }
.dbar-stack { display: flex; gap: 2px; height: 12px; margin-top: 6px; }
.dbar-stack i { height: 100%; border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .3s; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tips { list-style: none; margin: 0; padding: 0; }
.tips li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.tips li:first-child { border-top: 0; padding-top: 4px; }
.tips p { font-size: 15px; color: var(--ink-2); }
.tips .btn-mini { margin-top: 10px; }
.tips .seal { background: var(--ink); }
.check-count { margin-left: auto; font: 700 13px/1 var(--sans); color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks label { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line-2); cursor: pointer; }
.checks li:first-child label { border-top: 0; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.box { position: relative; flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--paper); transition: border-color .2s; }
.box i {
  position: absolute; inset: -3px; display: grid; place-items: center; border-radius: 8px; font: 800 16px/1 var(--serif); font-style: normal;
  background: var(--shu); color: #fbf6ec; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2);
  opacity: 0; transform: scale(1.8) rotate(-18deg); transition: opacity .2s ease, transform .35s var(--spring);
}
.checks input:checked + .box i { opacity: 1; transform: scale(1) rotate(-8deg); }
.checks input:focus-visible + .box { outline: 2px solid var(--shu); outline-offset: 2px; }
.lbl { font-size: 15px; transition: color .3s; }
.checks input:checked ~ .lbl { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(196, 67, 43, .5); }
.credits summary { display: flex; align-items: center; justify-content: space-between; list-style: none; font: 700 16px/1.4 var(--serif); cursor: pointer; }
.credits summary::-webkit-details-marker { display: none; }
.credits summary .ic { transition: transform .3s var(--ease); }
.credits[open] summary .ic { transform: rotate(180deg); }
.credits ul { margin: 14px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: grid; gap: 6px; }

/* ── Pie ──────────────────────────────────────────────────────────────────── */
.foot { padding: 36px 24px calc(48px + var(--safe-b)); text-align: center; color: var(--muted); font-size: 13px; display: grid; justify-items: center; gap: 8px; }
.foot .leaf { width: 34px; color: var(--shu); margin-bottom: 4px; }
.foot-sign { font: 700 16px/1.4 var(--serif); color: var(--ink); }
.foot .lang { margin-top: 10px; }

/* ── Visor de fotos ───────────────────────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 85; background: rgba(14, 10, 8, .97); opacity: 0; transition: opacity .25s ease; }
.lb.on { opacity: 1; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb figure { flex: 0 0 100%; margin: 0; display: flex; flex-direction: column; justify-content: center; scroll-snap-align: center; padding: 60px 0 calc(30px + var(--safe-b)); }
.lb img { width: 100%; max-height: 76vh; object-fit: contain; transform: scale(.94); transition: transform .4s var(--ease); }
.lb.on img { transform: none; }
.lb figcaption { padding: 16px 20px 0; color: #f3e9dc; }
.lb figcaption b { display: block; font: 700 17px/1.35 var(--serif); }
.lb figcaption small { display: block; margin-top: 4px; font-size: 12px; opacity: .6; }
.lb-count { position: absolute; left: 18px; top: calc(20px + var(--safe-t)); color: rgba(255, 255, 255, .75); font: 700 13px/1 var(--sans); }
.lb-close { position: absolute; right: 10px; top: calc(8px + var(--safe-t)); width: 48px; height: 48px; display: grid; place-items: center; color: #fff; border-radius: 50%; }
.lb-close .ic { width: 24px; height: 24px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 95; max-width: calc(100% - 40px);
  padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--card); font-size: 14px;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .35s;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ── Animaciones ──────────────────────────────────────────────────────────── */
@keyframes kenburns { from { transform: scale(1.14) translateY(1.5%); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fall { from { transform: translateY(0); } to { transform: translateY(calc(100svh + 120px)); } }
@keyframes flutter { from { transform: scale(var(--s)) translateX(-22px) rotate(-40deg); } to { transform: scale(var(--s)) translateX(22px) rotate(220deg); } }
@keyframes sway { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 6px 8px; rotate: 6deg; } }
@keyframes swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes glow { from { opacity: .55; transform: scale(.9); } to { opacity: 1; transform: scale(1.12); } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(196, 67, 43, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(196, 67, 43, 0); } }
@keyframes me { 0% { box-shadow: 0 0 0 0 rgba(42, 125, 225, .5); } 80%, 100% { box-shadow: 0 0 0 14px rgba(42, 125, 225, 0); } }
@keyframes mapin { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { box-shadow: var(--shadow), 0 0 0 1px var(--line-2); } 25% { box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--c) 55%, transparent); } 100% { box-shadow: var(--shadow), 0 0 0 1px var(--line-2); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero-fall { display: none; }
  .rv { opacity: 1; transform: none; }
}
