/* =========================================================
   Paleta escocesa + temas
   ========================================================= */
:root {
  --highland: #2f6b4f;
  --moss: #6f8f4e;
  --loch: #2a5f80;
  --heather: #7d4f9e;
  --thistle: #b48ad0;
  --stone: #8b8f88;
  --peat: #7a4f2a;
  --gold: #e2b33c;

  --bg: #f3efe6;
  --surface: #fffdf8;
  --surface-2: #ece6d9;
  --ink: #17211d;
  --ink-2: #56625c;
  --line: #ddd4c4;
  --shadow: 0 1px 2px rgba(23,33,29,.06), 0 12px 32px rgba(23,33,29,.10);
  --shadow-lg: 0 2px 4px rgba(23,33,29,.06), 0 24px 56px rgba(23,33,29,.18);
  --c: var(--highland);

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tl-h: 112px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 22px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1311;
  --surface: #151e1a;
  --surface-2: #1c2823;
  --ink: #edf0ea;
  --ink-2: #a3aea7;
  --line: #2a3731;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 56px rgba(0,0,0,.5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1311;
    --surface: #151e1a;
    --surface-2: #1c2823;
    --ink: #edf0ea;
    --ink-2: #a3aea7;
    --line: #2a3731;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 56px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s;
}
body.in-deck { overflow: hidden; background: #0a0f0d; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:where(:not(.leaflet-pane)) > svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { font: 600 .78rem var(--sans); padding: .1em .45em; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 0 var(--line); }
code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Tartan */
.tartan {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(226,179,60,.85) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(90deg, rgba(42,95,128,.75) 0 14px, transparent 14px 28px, rgba(125,79,158,.55) 28px 34px, transparent 34px 46px),
    linear-gradient(0deg, rgba(42,95,128,.55) 0 2px, transparent 2px 5px, rgba(226,179,60,.6) 5px 6px, transparent 6px 9px, rgba(42,95,128,.55) 9px 11px, transparent 11px),
    var(--highland);
}
.tartan.thin { height: 8px; }

/* =========================================================
   Botones y piezas comunes
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; cursor: pointer;
  font: 600 1rem var(--sans); text-decoration: none; white-space: nowrap;
  padding: .8em 1.35em; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { font-size: .88rem; padding: .6em 1.05em; }
.btn-primary { background: var(--c); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--c); }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.24); }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink); transition: background .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--c); }
.icon-btn svg { width: 20px; height: 20px; }
.eyebrow { margin: 0 0 .7rem; font: 700 .76rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; margin: .4rem 0 0; }
.fine { font-size: .82rem; color: var(--ink-2); margin: .6rem 0 0; line-height: 1.5; }
.fine.pad { padding: 0 1rem .8rem; }
.muted { color: var(--ink-2); font-style: italic; }
.tag-soft { display: inline-flex; align-items: center; font: 700 .7rem var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); vertical-align: middle; }
.tag-soft.orient, .orient-badge { background: color-mix(in srgb, var(--heather) 16%, transparent); color: var(--heather); }
:root[data-theme="dark"] .tag-soft.orient, :root[data-theme="dark"] .orient-badge { color: var(--thistle); }
.orient-badge { display: inline-block; font: 700 .62rem var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .15em .5em; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.yes { color: var(--highland); }
.no { color: #b0553b; }

/* =========================================================
   Barra superior
   ========================================================= */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px;
  display: flex; align-items: center; gap: 1rem; padding: 0 clamp(1rem, 3vw, 2rem);
  color: #fff; transition: background .3s, color .3s, box-shadow .3s, transform .3s var(--ease);
}
.topnav.solid, body:not(.at-home) .topnav {
  background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--ink);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
body.in-deck .topnav { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.15rem var(--serif); }
.brand em { font-style: normal; font-weight: 500; opacity: .7; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, #fff 42% 58%, transparent 58%),
    #1f5aa6;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-links { display: flex; gap: .3rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5em .9em; border-radius: 999px; opacity: .85; transition: background .2s, opacity .2s; }
.nav-links a:hover { opacity: 1; background: rgba(127,127,127,.15); }
.nav-links a.on { opacity: 1; background: rgba(127,127,127,.18); }
.nav-tools { display: flex; align-items: center; gap: .5rem; }
.topnav .icon-btn { color: inherit; border-color: rgba(127,127,127,.4); }
.session-pill {
  display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; font-weight: 700; font-size: .9rem;
  padding: .45em .8em; border-radius: 999px; border: 1px solid rgba(127,127,127,.4);
}
.session-pill svg { color: #e0566b; fill: #e0566b; }
.pill-fav { font-weight: 600; color: var(--gold); white-space: nowrap; }
.pill-fav:empty { display: none; }

/* =========================================================
   Héroe
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #14211b; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0 0; z-index: -2; will-change: transform; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center 45%;
  opacity: 0; transform: scale(1.12); transition: opacity 2.2s ease, transform 14s linear;
}
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 15% 100%, rgba(10,18,14,.88) 0%, rgba(10,18,14,.45) 45%, rgba(10,18,14,0) 75%),
    linear-gradient(180deg, rgba(10,18,14,.5) 0%, rgba(10,18,14,0) 22%, rgba(10,18,14,0) 55%, rgba(10,18,14,.75) 100%);
}
.hero-content { width: min(1200px, 100%); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(5rem, 12vh, 8rem); }
.hero .eyebrow { color: #f3d27a; text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 18px rgba(0,0,0,.45); }
.hero-sub, .hero-facts { text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.hero h1 {
  font: 800 clamp(2.8rem, 8.5vw, 7.2rem)/.95 var(--serif); letter-spacing: -.025em; margin: 0 0 1.1rem;
  text-shadow: 0 4px 40px rgba(0,0,0,.35); font-variation-settings: 'opsz' 144;
}
.hero h1 span { font-style: italic; font-weight: 500; color: #f5ecd7; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 0 0 1.8rem; max-width: 46ch; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero .btn-primary { --c: var(--highland); }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; opacity: .92; }
.hero-facts li { display: inline-flex; align-items: center; gap: .45em; }
.hero-facts svg { width: 1.2em; height: 1.2em; color: #f3d27a; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.hero-credit { position: absolute; right: 1rem; bottom: .7rem; margin: 0; }
.hero-credit-link { font-size: .7rem; color: rgba(255,255,255,.7); text-decoration: none; }
.hero-credit-link:hover { color: #fff; }

/* =========================================================
   Secciones de portada
   ========================================================= */
.section { width: min(1240px, 100%); margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem); }
.section-alt { width: 100%; max-width: none; background: var(--surface-2); }
.section-alt > * { width: min(1240px, 100%); margin: 0 auto; }
.section-head { margin-bottom: 2.4rem; }
.section-head h2, .page-head h1 { font: 700 clamp(2rem, 4.5vw, 3.3rem)/1.05 var(--serif); margin: 0; letter-spacing: -.02em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card.is-fav { box-shadow: 0 0 0 3px var(--gold), var(--shadow-lg); }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 35%, transparent 65%, rgba(0,0,0,.35)); }
.card-media img, .cg-head img, .fav-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-num {
  position: absolute; left: 14px; top: 14px; z-index: 1; background: var(--c); color: #fff;
  font: 700 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .4em .85em; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.card-favbadge {
  position: absolute; right: 14px; top: 14px; z-index: 1; display: none; align-items: center; gap: .3em;
  background: var(--gold); color: #3a2a00; font: 700 .78rem var(--sans); padding: .4em .8em; border-radius: 999px;
}
.card-favbadge svg { fill: currentColor; }
.is-fav .card-favbadge { display: inline-flex; }
.card-mini {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 96px; height: 72px; border-radius: 12px;
  background: rgba(10,18,14,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2);
}
.card-mini svg { width: 100%; height: 100%; }
.card-mini .svg-route { stroke: #fff; stroke-width: 2.5; }
.card-mini .svg-route-bg { stroke: transparent; }
.card-mini .svg-dot { fill: var(--gold); stroke: none; }
.card-body { padding: 1.3rem 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card h3 { font: 700 1.5rem/1.12 var(--serif); margin: 0; letter-spacing: -.01em; }
.card-tag { margin: -.3rem 0 0; color: var(--c); font: italic 500 1.02rem var(--serif); }
:root[data-theme="dark"] .card-tag { filter: brightness(1.6); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li {
  display: inline-flex; align-items: center; gap: .3em; font-size: .78rem; font-weight: 600;
  padding: .3em .7em; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--ink);
}
.tags li.no { background: color-mix(in srgb, #b0553b 14%, transparent); }
.tags li svg { width: 1.1em; height: 1.1em; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.stats li { background: var(--surface-2); border-radius: 12px; padding: .5rem .6rem; display: grid; grid-template-columns: auto 1fr; column-gap: .4rem; align-items: center; min-width: 0; }
.stats li svg { grid-row: span 2; width: 1.15em; height: 1.15em; color: var(--c); }
:root[data-theme="dark"] .stats li svg { filter: brightness(1.7); }
.stats li span { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.stats li b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats li.is-orient { background: color-mix(in srgb, var(--heather) 10%, var(--surface-2)); }
.card-route { margin: 0; display: flex; gap: .45em; font-size: .85rem; color: var(--ink-2); }
.card-route svg { margin-top: .2em; color: var(--c); }
.card-foot { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.card-open { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--c); font-size: .92rem; }
:root[data-theme="dark"] .card-open { filter: brightness(1.6); }
.card-open svg { transition: transform .25s var(--ease); }
.card:hover .card-open svg { transform: translateX(4px); }

/* Votos */
.vote { position: relative; z-index: 2; display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.vote button {
  display: inline-flex; align-items: center; gap: .4em; cursor: pointer; font: 600 .86rem var(--sans);
  padding: .5em .9em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.vote button:hover { border-color: var(--c); }
.vote button:active { transform: scale(.96); }
.vote-like svg { color: #e0566b; }
.vote-like.on { background: #e0566b; border-color: #e0566b; color: #fff; }
.vote-like.on svg { color: #fff; fill: #fff; }
.vote-like.pop svg { animation: pop .5s var(--ease); }
.vote-fav svg { color: #c99420; }
.vote-fav.on { background: var(--gold); border-color: var(--gold); color: #3a2a00; }
.vote-fav.on svg { color: #3a2a00; fill: #3a2a00; }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.6); } 100% { transform: scale(1); } }

/* Paneles */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.panel { background: var(--surface); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2 { font: 700 1.6rem var(--serif); margin: 0; }
.empty { color: var(--ink-2); background: var(--surface-2); border-radius: 14px; padding: 1rem; margin: 0; }
.fav-card {
  display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; text-decoration: none;
  border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--gold) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  margin-bottom: .7rem;
}
.fav-card img { height: 86px; }
.fav-card small { display: flex; align-items: center; gap: .3em; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #a37813; }
.fav-card small svg { fill: currentColor; }
.fav-card b { display: block; font: 700 1.1rem/1.2 var(--serif); margin: .15rem 0; }
.fav-card span { font-size: .85rem; color: var(--ink-2); }
.ranking { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.ranking li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: .8rem; padding: .6rem .8rem; border-radius: 14px; background: var(--surface-2); }
.rk-pos { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 1rem var(--serif); background: var(--c); color: #fff; }
.rk-main b { font-size: .95rem; }
.rk-main small { display: block; color: var(--ink-2); font-size: .78rem; margin-top: .15rem; }
.rk-bar { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 10%, transparent); margin-top: .35rem; overflow: hidden; }
.rk-bar span { display: block; height: 100%; background: var(--c); border-radius: 6px; transition: width .5s var(--ease); }
.rk-pts { font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.share { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.share-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.share .btn-primary { --c: var(--heather); }
.field { display: grid; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field input, .import textarea, .check-add input {
  font: 500 1rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: .65em .85em; width: 100%;
}
.field input:focus, .import textarea:focus, .check-add input:focus { outline: none; border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.import summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.import textarea { margin: .5rem 0; resize: vertical; font-size: .9rem; }
.imp-chip { display: inline-flex; align-items: center; gap: .2rem; background: var(--surface-2); border-radius: 999px; padding: .1em .2em .1em .6em; font-weight: 600; color: var(--ink); }
.imp-chip button { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .35em; color: var(--ink-2); }

.plan-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.sunbar { display: flex; gap: .8rem; align-items: center; margin: 1rem 0; padding: .9rem 1rem; border-radius: 16px; background: linear-gradient(100deg, color-mix(in srgb, var(--gold) 26%, var(--surface)), color-mix(in srgb, var(--heather) 16%, var(--surface))); }
.sunbar svg { width: 30px; height: 30px; color: #c78a10; }
.sunbar b { display: block; }
.sunbar span { font-size: .9rem; color: var(--ink-2); }
.plan-results { display: grid; gap: .55rem; }
.plan-row { display: grid; grid-template-columns: 10px 1fr auto; gap: .8rem; align-items: center; text-decoration: none; padding: .7rem .9rem; border-radius: 14px; background: var(--surface-2); transition: transform .2s var(--ease); }
.plan-row:hover { transform: translateX(3px); }
.plan-dot { width: 10px; height: 38px; border-radius: 6px; background: var(--c); }
.plan-main small { display: block; font-size: .78rem; color: var(--ink-2); }
.luz { display: inline-block; font-size: .74rem; font-weight: 700; padding: .3em .7em; border-radius: 999px; white-space: nowrap; }
.luz.ok { background: color-mix(in srgb, var(--highland) 18%, transparent); color: var(--highland); }
.luz.info { background: color-mix(in srgb, var(--loch) 18%, transparent); color: var(--loch); }
.luz.warn { background: color-mix(in srgb, var(--gold) 30%, transparent); color: #8a5e00; }
.luz.bad { background: color-mix(in srgb, #c2483a 20%, transparent); color: #b23a2c; }
:root[data-theme="dark"] .luz.ok { color: #7fd1a2; } :root[data-theme="dark"] .luz.info { color: #8cc6ea; } :root[data-theme="dark"] .luz.warn { color: #f3d27a; } :root[data-theme="dark"] .luz.bad { color: #ff9c8f; }

.site-footer { color: var(--ink-2); font-size: .88rem; }
.footer-inner { width: min(1240px, 100%); margin: 0 auto; padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3rem; }
.footer-inner p { max-width: 90ch; }
.site-footer summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.site-footer ul { columns: 2; column-gap: 2rem; padding-left: 1.1rem; }
.site-footer li { break-inside: avoid; margin-bottom: .3rem; }
.hint { font-size: .82rem; }

/* =========================================================
   Presentación
   ========================================================= */
.deck { position: fixed; inset: 0; color: #fff; background: #0a0f0d; z-index: 40; }
.deck-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.12); z-index: 8; }
.deck-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), var(--gold)); transition: width .6s var(--ease); }
.auto-bar { position: absolute; top: 4px; left: 0; height: 2px; width: 0; background: rgba(255,255,255,.75); z-index: 8; }
.auto-bar.run { animation: autobar var(--auto) linear forwards; }
@keyframes autobar { from { width: 0; } to { width: 100%; } }
.deck-top { position: absolute; top: 4px; left: 0; right: 0; z-index: 7; display: flex; align-items: center; gap: .8rem; padding: .9rem clamp(.8rem, 2vw, 1.4rem); pointer-events: none; }
.deck-top > * { pointer-events: auto; }
.chip-btn {
  display: inline-flex; align-items: center; gap: .4em; height: 40px; padding: 0 .9em; border-radius: 999px; cursor: pointer;
  font: 600 .9rem var(--sans); color: #fff; text-decoration: none; background: rgba(10,15,13,.45);
  border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s;
}
.chip-btn svg { width: 1.2em; height: 1.2em; }
.chip-btn:hover { background: rgba(10,15,13,.7); }
.chip-btn[aria-pressed="true"] { background: var(--c); border-color: rgba(255,255,255,.5); }
#btn-play .i-pause { display: none; }
.playing #btn-play .i-play { display: none; }
.playing #btn-play .i-pause { display: inline; }
.deck-title { flex: 1; display: flex; align-items: center; gap: .6rem; min-width: 0; font-weight: 600; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
#deck-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { background: var(--c); padding: .3em .75em; border-radius: 999px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.deck-tools { display: flex; align-items: center; gap: .45rem; }
.deck-counter { font: 700 .9rem var(--sans); font-variant-numeric: tabular-nums; padding: .45em .8em; border-radius: 999px; background: rgba(10,15,13,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s linear .8s; }
.slide.active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .8s var(--ease), visibility 0s; }
.slide.instant, .slide.instant * { transition: none !important; }
.slide-bg { position: absolute; inset: 0; overflow: hidden; background: #1a2620; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14) translate3d(2%, 1%, 0); transition: transform 14s cubic-bezier(.25,.1,.25,1); }
.slide.active .slide-bg img { transform: scale(1.02) translate3d(0, 0, 0); }
.slide.before .slide-bg img { transform: scale(1.06) translate3d(-2%, 0, 0); }
.slide-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,13,11,.86) 0%, rgba(8,13,11,.55) 40%, rgba(8,13,11,.05) 72%),
    linear-gradient(0deg, rgba(8,13,11,.92) 0%, rgba(8,13,11,.35) calc(var(--tl-h) + 160px), rgba(8,13,11,0) 62%),
    linear-gradient(180deg, rgba(8,13,11,.6) 0%, rgba(8,13,11,0) 140px);
}
.slide-inner {
  position: absolute; left: 0; right: 0; top: 76px; bottom: calc(var(--tl-h) + 1.6rem);
  padding: 0 clamp(1.2rem, 6vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 2rem; align-items: end; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.slide-inner::-webkit-scrollbar { display: none; }
.map-open .slide-inner { padding-right: calc(min(440px, 40vw) + 1.5rem); grid-template-columns: minmax(0, 1fr); }
.map-open .slide-inner .info-card { display: none; }
.slide-main > *, .slide-inner > .info-card { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.active .slide-main > *, .slide.active .slide-inner > .info-card { opacity: 1; transform: none; }
.slide.active .slide-main > :nth-child(2) { transition-delay: .07s; }
.slide.active .slide-main > :nth-child(3) { transition-delay: .14s; }
.slide.active .slide-main > :nth-child(4) { transition-delay: .21s; }
.slide.active .slide-main > :nth-child(n+5) { transition-delay: .28s; }
.slide.active .slide-inner > .info-card { transition-delay: .3s; }
.kicker { display: inline-flex; align-items: center; gap: .7em; margin: 0 0 .7rem; font: 700 .78rem var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.kicker::before { content: ''; width: 32px; height: 3px; border-radius: 2px; background: var(--gold); }
.slide-title { font: 800 clamp(2.6rem, 6.6vw, 5.8rem)/.98 var(--serif); margin: 0 0 .5rem; letter-spacing: -.025em; text-shadow: 0 2px 30px rgba(0,0,0,.45); font-variation-settings: 'opsz' 144; }
.slide-tag { font: italic 500 clamp(1.05rem, 2vw, 1.4rem) var(--serif); margin: 0 0 1rem; opacity: .92; }
.tags.glass { margin-bottom: .9rem; }
.tags.glass li { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tags.glass li.no { background: rgba(176,85,59,.45); }
.stats.glass { max-width: 640px; margin-bottom: .9rem; }
.stats.glass li { background: rgba(10,15,13,.5); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stats.glass li svg { color: var(--gold); filter: none; }
.stats.glass li span { color: rgba(255,255,255,.7); }
.stats.glass li b { color: #fff; font-size: .95rem; }
.stats.glass li.is-orient { background: rgba(125,79,158,.35); }
.cover-note { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: .92rem; opacity: .92; }
.cover-note svg { width: 1.3em; height: 1.3em; color: var(--gold); }
.slide .orient-badge { background: rgba(180,138,208,.3); color: #ecdcf7; }

.facts { display: flex; flex-wrap: wrap; gap: .7rem; margin: .4rem 0 1rem; max-width: 760px; }
.fact {
  flex: 1 1 220px; max-width: 360px; display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 16px;
  background: rgba(10,15,13,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.fact.hl { background: color-mix(in srgb, var(--c) 45%, rgba(10,15,13,.6)); }
.fact-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--c); flex: none; }
.fact.hl .fact-ico { background: var(--gold); color: #3a2a00; }
.fact-ico svg { width: 20px; height: 20px; }
.fact small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; font-weight: 700; opacity: .75; }
.fact strong { display: block; font-size: .98rem; line-height: 1.3; font-weight: 600; }
.fact em { display: block; font-style: normal; font-size: 1.2rem; font-weight: 700; color: #ffe39a; margin-top: .1rem; }

.alts { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.alts-q { flex-basis: 100%; margin: 0; font-weight: 700; }
.alts-q small { font-weight: 500; opacity: .75; margin-left: .4rem; }
.alt {
  position: relative; margin: 0; padding: 0; width: 200px; border-radius: 14px; overflow: hidden; text-align: left;
  background: rgba(10,15,13,.6); border: 2px solid rgba(255,255,255,.18); color: #fff; transition: border-color .2s, transform .2s;
}
button.alt { cursor: pointer; }
button.alt:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.5); }
.alt.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226,179,60,.35); }
.alt img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.alt-cap { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem .7rem; font-size: .9rem; }
.alt-cap span { color: #ffe39a; font-weight: 700; white-space: nowrap; }
.alt-check { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.7); }
.alt-check svg { opacity: 0; width: 16px; height: 16px; }
.alt.on .alt-check { background: var(--gold); border-color: var(--gold); color: #3a2a00; }
.alt.on .alt-check svg { opacity: 1; }
.alt-credit { position: absolute; right: 6px; top: 6px; max-width: calc(100% - 44px); font-size: .62rem; color: rgba(255,255,255,.88); background: rgba(0,0,0,.55); padding: .1em .45em; border-radius: 4px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alt-or { font: italic 600 1.3rem var(--serif); opacity: .85; }
.slide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.slide .vote button { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.slide .vote-like svg { color: #ff8a9a; }
.slide .vote-like.on { background: #e0566b; border-color: #e0566b; }
.slide .vote-like.on svg { color: #fff; }
.slide .vote-fav svg { color: var(--gold); }
.slide .vote-fav.on { background: var(--gold); color: #3a2a00; }
.slide .vote-fav.on svg { color: #3a2a00; }

.info-card {
  align-self: end; border-radius: 20px; padding: 1.1rem 1.2rem; display: grid; gap: .9rem;
  background: rgba(14,20,17,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.info-row { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; }
.info-row > svg { width: 24px; height: 24px; color: var(--gold); margin-top: .1rem; }
.info-card small { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.info-card p { margin: .2rem 0 0; font-size: .93rem; line-height: 1.5; }
.cover-card ol { margin: .3rem 0 0; padding-left: 1.2rem; font-size: .88rem; display: grid; gap: .25rem; }
.fine-light { margin: 0; font-size: .78rem; opacity: .75; }

.credit {
  position: absolute; right: 1rem; bottom: calc(var(--tl-h) + .45rem); z-index: 2; font-size: .68rem; color: rgba(255,255,255,.7);
  text-decoration: none; background: rgba(0,0,0,.35); padding: .2em .6em; border-radius: 6px; max-width: 50vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.credit:hover { color: #fff; }
.map-open .credit { right: calc(min(440px, 40vw) + 1rem); }

.nav-arrow {
  position: absolute; top: 50%; z-index: 5; width: 54px; height: 54px; margin-top: calc(var(--tl-h) / -2 - 27px);
  border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(10,15,13,.35); color: #fff;
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .2s, opacity .2s, transform .2s;
}
.nav-arrow svg { width: 26px; height: 26px; }
.nav-arrow:hover:not(:disabled) { background: var(--c); transform: scale(1.07); }
.nav-arrow:disabled { opacity: .15; cursor: default; }
.nav-arrow.prev { left: .8rem; }
.nav-arrow.next { right: .8rem; }
.map-open .nav-arrow.next { right: calc(min(440px, 40vw) + .8rem); }

/* Línea de tiempo con miniaturas */
.timeline {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--tl-h); z-index: 6;
  background: rgba(8,12,10,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,.08);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.timeline ol { list-style: none; margin: 0 auto; padding: 0 1.2rem; height: 100%; display: flex; align-items: center; width: max-content; min-width: 100%; justify-content: center; }
.tl-step button {
  display: flex; align-items: center; gap: .65rem; background: none; border: 0; color: #fff; cursor: pointer; text-align: left;
  padding: .35rem .8rem .35rem .35rem; border-radius: 16px; opacity: .55; transition: opacity .25s, background .25s;
}
.tl-step button:hover { opacity: 1; background: rgba(255,255,255,.07); }
.tl-thumb { position: relative; width: 64px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; border: 2px solid rgba(255,255,255,.25); transition: border-color .3s, transform .3s var(--ease); }
.tl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl-thumb i { position: absolute; left: 3px; top: 3px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; font: 700 .68rem var(--sans); font-style: normal; background: rgba(0,0,0,.6); }
.tl-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.tl-text b { font-size: .9rem; }
.tl-text small { font-size: .74rem; opacity: .75; font-variant-numeric: tabular-nums; }
.tl-step.is-done button { opacity: .8; }
.tl-step.is-active button { opacity: 1; background: rgba(255,255,255,.1); }
.tl-step.is-active .tl-thumb { border-color: var(--gold); transform: scale(1.06); }
.tl-step.is-active .tl-thumb i { background: var(--gold); color: #3a2a00; }
.tl-leg { display: flex; align-items: center; flex: 1 1 30px; min-width: 56px; max-width: 120px; position: relative; padding: 0 .1rem; }
.tl-leg::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(255,255,255,.28); }
.tl-leg.is-done::before { border-top-style: solid; border-color: var(--gold); }
.tl-leg span { position: relative; margin: 0 auto; display: inline-flex; align-items: center; gap: .3em; font-size: .7rem; font-weight: 700; background: #121a16; padding: .15em .55em; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); white-space: nowrap; }
.tl-leg.empty span { display: none; }

/* Mapa */
.map-drawer {
  position: absolute; z-index: 6; right: 0; top: 0; bottom: var(--tl-h); width: min(440px, 40vw);
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink); box-shadow: -20px 0 50px rgba(0,0,0,.35);
  animation: drawer .45s var(--ease);
}
@keyframes drawer { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 4.6rem 1rem .8rem; }
.map-head b { display: block; font: 700 1.2rem var(--serif); }
.map-head small { color: var(--ink-2); font-size: .8rem; }
.map-box { position: relative; flex: 1 1 50%; min-height: 220px; margin: 0 1rem; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.map { position: absolute; inset: 0; }
.map-fallback { position: absolute; inset: 0; overflow: auto; padding-top: .6rem; }
.map-fallback .svg-map { width: 100%; height: auto; }
.map-list { list-style: none; margin: .8rem 0 0; padding: 0 1rem; overflow: auto; flex: 1 1 40%; display: grid; gap: .35rem; align-content: start; }
.map-list li { display: flex; align-items: center; gap: .4rem; border-radius: 12px; transition: background .2s; }
.map-list li.on { background: color-mix(in srgb, var(--c) 16%, transparent); }
.map-list button { flex: 1; display: flex; align-items: center; gap: .7rem; text-align: left; background: none; border: 0; cursor: pointer; padding: .45rem .5rem; color: var(--ink); }
.map-list i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 .78rem var(--sans); font-style: normal; flex: none; }
.map-list b { display: block; font-size: .92rem; }
.map-list small { color: var(--ink-2); font-size: .76rem; }
.map-list a { font-size: .76rem; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: .3rem .5rem; border-radius: 8px; white-space: nowrap; }
.map-list a:hover { color: var(--ink); background: var(--surface-2); }
.mk-wrap { background: none; border: 0; }
.mk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 .85rem var(--sans); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.leaflet-marker-icon.on .mk { background: var(--gold); color: #3a2a00; transform: scale(1.3); }
.leaflet-container { font-family: var(--sans); background: var(--surface-2); }

/* SVG de ruta */
.svg-map { display: block; }
.svg-route-bg { fill: none; stroke: color-mix(in srgb, var(--ink) 12%, transparent); stroke-width: 9; }
.svg-route { fill: none; stroke: var(--c); stroke-width: 3.5; }
.svg-stop circle { fill: var(--c); stroke: var(--surface); stroke-width: 3; }
.svg-stop.on circle { fill: var(--gold); }
.svg-num { fill: #fff; font: 700 11px var(--sans); text-anchor: middle; }
.svg-stop.on .svg-num { fill: #3a2a00; }
.svg-lab { fill: var(--ink); font: 600 13px var(--sans); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }

/* =========================================================
   Páginas (comparador / preparar)
   ========================================================= */
.page { min-height: 100vh; padding-top: 64px; }
.page-head { width: min(1240px, 100%); margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) 1.6rem; }
.page-body { width: min(1240px, 100%); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem) 4rem; display: grid; gap: 1.6rem; }

.cmp-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.pick { background: var(--surface); border-radius: 18px; padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .35rem; }
.pick small { color: var(--ink-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.pick b { font: 700 1.1rem/1.2 var(--serif); }
.pick-ops { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0; }
.pick-ops a { text-decoration: none; font-size: .8rem; font-weight: 700; color: #fff; background: var(--c); padding: .3em .75em; border-radius: 999px; }
.pick .fine { margin: auto 0 0; }

.cmp-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.cmp-grid { display: grid; grid-template-columns: minmax(150px, 190px) repeat(3, minmax(210px, 1fr)); min-width: 820px; }
.cg-corner { padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; border-bottom: 1px solid var(--line); }
.legend { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--ink-2); font-weight: 600; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend i.pdf { background: var(--highland); }
.legend i.or { background: var(--heather); }
.cg-head { position: relative; display: block; height: 170px; overflow: hidden; text-decoration: none; color: #fff; border-bottom: 4px solid var(--c); }
.cg-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.72)); }
.cg-head b { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: .8rem; font: 700 1.15rem/1.15 var(--serif); }
.cg-head:hover img { transform: scale(1.06); }
.cg-head .card-favbadge { padding: .35em; }
.cg-head.is-fav { border-bottom-color: var(--gold); }
.cg-label { padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; justify-content: center; gap: .15rem; }
.cg-label b { font-size: .92rem; }
.src { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.src.pdf { color: var(--highland); }
.src.or { color: var(--heather); }
:root[data-theme="dark"] .src.pdf { color: #7fd1a2; } :root[data-theme="dark"] .src.or { color: var(--thistle); }
.cg-cell { position: relative; padding: .9rem 1rem; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: .4rem; }
.cg-cell.win { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.cg-val { font-size: .95rem; font-weight: 600; }
.cg-val small { display: block; font-weight: 500; font-size: .76rem; color: var(--ink-2); margin-top: .15rem; }
.cg-val .yes, .cg-val .no { font-size: 1.05rem; }
.crown { align-self: flex-start; display: inline-flex; align-items: center; gap: .3em; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6d4c00; background: var(--gold); padding: .2em .6em; border-radius: 999px; }
.crown svg { fill: currentColor; stroke: none; width: 1.1em; height: 1.1em; }
.cbar { position: relative; height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.cbar span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 8px; background: var(--c); transition: width .7s var(--ease); }
.mini-list { margin: 0; padding-left: 1.1rem; font-weight: 500; }
.cg-cell .vote button { font-size: .78rem; padding: .4em .7em; }

.cmp-day { position: relative; display: grid; gap: .7rem; padding-top: 1.4rem; }
.day-axis { position: relative; height: 16px; margin-left: 120px; }
.day-axis span { position: absolute; transform: translateX(-50%); font-size: .7rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.day-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; }
.day-row > b { font-size: .9rem; }
.day-row > b small { display: block; font-weight: 500; color: var(--ink-2); font-size: .76rem; }
.day-track { position: relative; height: 34px; border-radius: 10px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 1px, transparent 1px 100%); background-color: var(--surface-2); }
.seg { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; overflow: hidden; display: flex; align-items: center; }
.seg.coche { background: repeating-linear-gradient(135deg, var(--stone) 0 6px, color-mix(in srgb, var(--stone) 75%, transparent) 6px 12px); }
.seg.act { background: var(--c); }
.seg i { font-style: normal; font-size: .68rem; font-weight: 700; color: #fff; padding: 0 .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sunset { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 2px; background: #e0742c; box-shadow: 0 0 0 2px var(--surface); }
.day-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .8rem; color: var(--ink-2); margin-left: 120px; }
.day-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.day-legend .seg { position: static; display: inline-block; width: 22px; height: 12px; --c: var(--highland); }
.sunset-i { display: inline-block; width: 3px; height: 14px; background: #e0742c; border-radius: 2px; }

/* Checklist */
.check-progress { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; background: var(--surface); border-radius: 18px; padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.check-progress .bar { height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.check-progress .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--highland), var(--moss)); transition: width .5s var(--ease); }
.checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.check-group { margin: 0; border: 0; background: var(--surface); border-radius: 18px; padding: 1rem 1.1rem 1.1rem; box-shadow: var(--shadow); min-width: 0; }
.check-group legend { float: left; width: 100%; font: 700 1.15rem var(--serif); margin-bottom: .5rem; padding: 0; }
.check { display: grid; grid-template-columns: 24px 1fr auto; gap: .6rem; align-items: start; padding: .45rem .3rem; border-radius: 10px; cursor: pointer; transition: background .2s; clear: both; }
.check:hover { background: var(--surface-2); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; transition: background .2s, border-color .2s; margin-top: .05rem; }
.check .box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--ease); stroke-width: 3; }
.check.on .box { background: var(--highland); border-color: var(--highland); }
.check.on .box svg { opacity: 1; transform: none; }
.check.on .txt { color: var(--ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-2) 60%, transparent); }
.check input:focus-visible + .box { outline: 3px solid var(--gold); outline-offset: 2px; }
.check .txt { font-size: .93rem; }
.check-del { border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 1.1rem; line-height: 1; padding: 0 .3rem; }
.check-add { display: flex; gap: .6rem; flex-wrap: wrap; }
.check-add input { flex: 1 1 260px; width: auto; }
.tip-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }

/* Aviso flotante */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 90; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: .92rem; padding: .75em 1.2em; border-radius: 999px;
  box-shadow: var(--shadow-lg); transition: opacity .3s, transform .35s var(--ease); max-width: calc(100vw - 2rem); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.in-deck .toast { bottom: calc(var(--tl-h) + 1rem); }

.print-view { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .slide-inner { grid-template-columns: minmax(0, 1fr); align-content: start; align-content: safe end; }
  .slide-inner > .info-card:not(.cover-card) { max-width: 760px; }
  .cover-card { display: none; }
  .cmp-pick { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --tl-h: 84px; }
  .topnav { height: 58px; gap: .5rem; }
  /* backdrop-filter convertiría la barra en el bloque contenedor de .nav-links (fixed abajo) */
  .topnav.solid, body:not(.at-home) .topnav { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg) 96%, transparent); }
  .brand em { display: none; }
  .nav-links { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; justify-content: space-around; padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line); color: var(--ink); z-index: 50; }
  .nav-links a { flex: 1; text-align: center; font-size: .85rem; }
  body.in-deck .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
  .main-pad, .site-footer { padding-bottom: 4rem; }
  .page { padding-bottom: 4rem; }
  .cards { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: 5.5rem; }
  .hero-facts { font-size: .85rem; gap: .4rem 1rem; }
  .scroll-cue { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plan-fields { grid-template-columns: 1fr; }
  .plan-row { grid-template-columns: 8px 1fr; }
  .plan-row .luz { grid-column: 2; justify-self: start; }
  .site-footer ul { columns: 1; }
  .cmp-pick, .checklist { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .deck-top { padding: .6rem .6rem; gap: .4rem; }
  .chip-btn { height: 36px; padding: 0 .7em; }
  .deck-tools { gap: .3rem; }
  .slide-inner { top: 60px; padding: 0 1rem; bottom: calc(var(--tl-h) + 4.4rem); gap: .8rem; }
  .slide-title { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .slide-shade { background: linear-gradient(0deg, rgba(8,13,11,.96) 0%, rgba(8,13,11,.8) 50%, rgba(8,13,11,.15) 85%), linear-gradient(180deg, rgba(8,13,11,.6) 0%, rgba(8,13,11,0) 110px); }
  .facts { gap: .45rem; margin-bottom: .7rem; }
  .fact { flex: 1 1 100%; max-width: none; padding: .55rem .75rem; }
  .fact-ico { width: 32px; height: 32px; }
  .fact strong { font-size: .9rem; }
  .fact em { font-size: 1.02rem; }
  .stats.glass li b { font-size: .85rem; }
  .info-card { padding: .9rem 1rem; gap: .7rem; }
  .info-card p { font-size: .86rem; }
  .alt { width: calc(50% - 1.2rem); }
  .alts:not(.choose) .alt { width: 55%; }
  .alt-cap { flex-direction: column; gap: 0; font-size: .8rem; }
  .vote button span { display: none; }
  .vote button.on span { display: inline; }
  .nav-arrow { top: auto; bottom: calc(var(--tl-h) + .7rem); margin-top: 0; width: 44px; height: 44px; }
  .nav-arrow svg { width: 22px; height: 22px; }
  .nav-arrow.prev { left: auto; right: 4.1rem; }
  .nav-arrow.next { right: 1rem; }
  .credit { right: auto; left: 1rem; bottom: calc(var(--tl-h) + .4rem); max-width: calc(100vw - 9.5rem); }
  .tl-thumb { width: 48px; height: 36px; }
  .tl-text small { display: none; }
  .tl-text b { font-size: .8rem; }
  .tl-leg { min-width: 46px; }
  .timeline ol { justify-content: flex-start; }
  .map-drawer { top: auto; left: 0; width: auto; height: 68vh; bottom: var(--tl-h); border-radius: 22px 22px 0 0; animation-name: sheet; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .map-head { padding-top: 1rem; }
  .map-open .slide-inner { padding-right: 1rem; }
  .map-open .nav-arrow.next { right: 1rem; }
  .map-open .credit { right: auto; }
  .day-axis, .day-legend { margin-left: 70px; }
  .day-row { grid-template-columns: 60px 1fr; }
  .day-row > b small { display: none; }
  .seg i { display: none; }
}
@media (max-height: 700px) and (min-width: 721px) {
  .slide-title { font-size: clamp(2.4rem, 5vw, 3.6rem); }
  .info-card p { font-size: .86rem; }
  .stats.glass { grid-template-columns: repeat(6, 1fr); max-width: none; }
}

@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-slide, .slide-bg img, .slide.active .slide-bg img, .slide.before .slide-bg img { transform: none !important; }
}

/* =========================================================
   Impresión
   ========================================================= */
@media print {
  @page { size: A4; margin: 14mm; }
  body.printing > *:not(#print-view) { display: none !important; }
  body.printing { background: #fff; color: #111; overflow: visible; }
  body.printing .print-view { display: block; font: 10.5pt/1.45 var(--sans); color: #111; --c: #2f6b4f; --ink: #111; --surface: #fff; }
  .pv-head { border-bottom: 3px solid #2f6b4f; padding-bottom: 6pt; margin-bottom: 10pt; }
  .pv-head p { margin: 0; font-size: 9pt; letter-spacing: .12em; text-transform: uppercase; color: #555; }
  .pv-head h1 { font: 700 22pt/1.1 var(--serif); margin: 2pt 0; }
  .pv-head .pv-tag { font: italic 12pt var(--serif); text-transform: none; letter-spacing: 0; color: #2f6b4f; }
  .pv-top { display: grid; grid-template-columns: 42% 1fr; gap: 12pt; align-items: start; }
  .pv-photo { width: 100%; height: 150pt; object-fit: cover; border-radius: 6pt; }
  .pv-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .pv-table th { text-align: left; width: 30%; color: #555; font-weight: 600; padding: 3pt 6pt 3pt 0; vertical-align: top; }
  .pv-table td { padding: 3pt 0; border-bottom: 1px solid #e5e5e5; }
  .pv-map { margin: 10pt 0; border: 1px solid #ddd; border-radius: 6pt; padding: 4pt; break-inside: avoid; }
  .pv-map .svg-map { width: 100%; height: auto; max-height: 220pt; }
  .print-view h2 { font: 700 14pt var(--serif); margin: 12pt 0 6pt; border-bottom: 1px solid #ddd; padding-bottom: 3pt; }
  .pv-steps { list-style: none; padding: 0; margin: 0; }
  .pv-steps li { display: grid; grid-template-columns: 82pt 1fr; gap: 10pt; padding: 6pt 0; border-bottom: 1px dashed #ddd; break-inside: avoid; }
  .pv-time { font-weight: 700; color: #2f6b4f; font-variant-numeric: tabular-nums; }
  .pv-step h3 { font-size: 11.5pt; margin: 0 0 2pt; }
  .pv-step p { margin: 1pt 0; }
  .pv-or { color: #444; font-size: 9pt; }
  .pv-pdf { margin: 0; padding-left: 14pt; }
  .pv-foot { margin-top: 12pt; font-size: 8pt; color: #666; }
}
