/* Rumbo — cine nocturno / papel de mapa. Tokens en :root, modo oscuro diseñado (no invertido). */
:root {
  color-scheme: light;
  --bg: #F5F1E8;
  --surface: #FFFDF8;
  --surface-2: #EDE6D6;
  --text: #14181F;
  --soft: #566070;
  --border: #DDD5C4;
  --primary: #B45309;
  --on-primary: #FFFFFF;
  --plane: #C2410C;
  --car: #0F766E;
  --glass: rgba(255, 253, 248, .82);
  --shadow: 0 18px 50px -18px rgba(20, 24, 31, .28);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0E14;
  --surface: #111822;
  --surface-2: #18212D;
  --text: #EAF0F6;
  --soft: #98A6B8;
  --border: #243042;
  --primary: #FFB454;
  --on-primary: #1B1203;
  --plane: #FFB454;
  --car: #4FD1C5;
  --glass: rgba(12, 17, 25, .74);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
}
body.is-app { overflow: hidden; height: 100dvh; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
code { font: 600 .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--car); box-shadow: 0 0 0 0 var(--car); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--car) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 700 .95rem/1 var(--font-body); padding: 15px 22px; border-radius: 14px; border: 1px solid transparent;
  text-decoration: none; transition: transform .16s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 28px -10px var(--primary); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px var(--primary); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }

.icon-btn, .glass-btn {
  display: inline-grid; place-items: center; cursor: pointer; color: var(--text);
  transition: transform .16s var(--ease), background-color .2s; -webkit-tap-highlight-color: transparent;
}
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.icon-btn:active, .glass-btn:active { transform: scale(.95); }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
body.is-app .site-header { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--text); color: var(--bg); transform: rotate(45deg); }
.brand-mark svg { transform: rotate(-45deg) rotate(0deg); }
.brand-name { font: 400 1.7rem/1 var(--font-display); letter-spacing: .01em; }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--soft); padding: 8px 12px; border-radius: 10px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  max-width: 1320px; margin: 0 auto; padding: clamp(28px, 5vh, 64px) clamp(16px, 4vw, 48px) clamp(48px, 8vh, 96px);
}
.hero h1 {
  font: 400 clamp(2.9rem, 6.4vw, 5.6rem)/.95 var(--font-display); letter-spacing: -.015em; margin: 18px 0 20px; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--primary); }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--soft); max-width: 52ch; margin-bottom: 28px; }
.t-plane { color: var(--plane); } .t-car { color: var(--car); }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; } .hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; } .hero-copy > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.dropzone {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; padding: 22px;
  border: 1.5px dashed color-mix(in srgb, var(--primary) 55%, var(--border)); border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow);
  transition: border-color .2s, background-color .2s, transform .25s var(--ease);
}
.dropzone.is-drag { border-style: solid; border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); transform: scale(1.012); }
.dz-ic { color: var(--primary); grid-row: span 2; }
.dz-text { display: flex; flex-direction: column; }
.dz-text strong { font-size: 1.05rem; }
.dz-text span { color: var(--soft); font-size: .92rem; }
.dz-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.form-msg { min-height: 1.4em; margin-top: 12px; font-weight: 600; font-size: .92rem; color: var(--soft); }
.form-msg.is-error { color: #D14343; } [data-theme="dark"] .form-msg.is-error { color: #FF8A8A; }
.micro { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--soft); margin-top: 6px; }
.micro svg { color: var(--car); flex: none; }
.micro-link a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; animation: fade 1.2s .2s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.art-svg { width: 100%; height: 100%; overflow: visible; }
.globe-lines { stroke: color-mix(in srgb, var(--text) 16%, transparent); stroke-width: 1; }
.route { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.route-plane { stroke: var(--plane); stroke-dasharray: 3 9; animation: march 3s linear infinite; }
.route-plane.r2 { animation-duration: 4s; }
.route-car { stroke: var(--car); stroke-dasharray: 2 7; animation: march 5s linear infinite reverse; }
@keyframes march { to { stroke-dashoffset: -96; } }
.pt circle:first-child { fill: var(--text); }
.pt .ring { fill: none; stroke: var(--primary); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ringp 2.8s var(--ease) infinite; }
.pt .ring.r2 { animation-delay: .9s; } .pt .ring.r3 { animation-delay: 1.8s; }
@keyframes ringp { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.fly { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.art-card {
  position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.art-card .k { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.art-card .v { font: 400 2rem/1 var(--font-display); }
.art-card-a { top: 8%; left: -2%; } .art-card-b { bottom: 10%; right: -2%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Secciones ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px); border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head h2 { font: 400 clamp(2rem, 4.4vw, 3.4rem)/1.05 var(--font-display); margin-top: 12px; text-wrap: balance; }
.section-head .sub { color: var(--soft); margin-top: 14px; max-width: 62ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 2px solid var(--text); }
.steps .n { position: absolute; top: -17px; left: 0; background: var(--bg); padding-right: 12px; font: italic 400 1.5rem/1 var(--font-display); color: var(--primary); }
.steps h3 { font: 700 1.1rem/1.3 var(--font-body); margin-bottom: 8px; }
.steps p { color: var(--soft); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); margin-bottom: 22px; flex-wrap: wrap; }
.tab { cursor: pointer; border: 0; background: transparent; color: var(--soft); font: 700 .92rem/1 var(--font-body); padding: 11px 18px; border-radius: 10px; transition: background-color .2s, color .2s, transform .16s var(--ease); }
.tab:active { transform: scale(.97); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(20px, 3vw, 36px); animation: rise .45s var(--ease) both; }
.how { list-style: none; counter-reset: h; margin: 0; padding: 0; display: grid; gap: 18px; }
.how li { counter-increment: h; position: relative; padding-left: 52px; }
.how li::before { content: counter(h); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font-weight: 700; font-size: .9rem; }
.how em { font-style: normal; font-weight: 600; background: var(--surface-2); padding: .05em .45em; border-radius: 6px; white-space: nowrap; }
.note { margin-top: 18px; padding: 16px 20px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); color: var(--text); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trio article { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.trio h3 { font: 400 1.7rem/1.1 var(--font-display); margin-bottom: 10px; }
.trio p { color: var(--soft); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 700; position: relative; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--soft); max-width: 70ch; animation: rise .35s var(--ease) both; }

.site-footer { max-width: 1120px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 120px; color: var(--soft); font-size: .86rem; border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.site-footer a { text-underline-offset: 3px; }

.mobile-cta { display: none; }

/* ---------- App (mapa + HUD) ---------- */
#app { position: fixed; inset: 0; background: var(--bg); }
#map { position: absolute; inset: 0; }
.maplibregl-ctrl-attrib { font-size: 10px; }

.glass-btn, .dd-btn, .dd-menu, .date-card, .mini-stats, .player, .summary, .toast {
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent); box-shadow: var(--shadow);
}
.app-top { position: absolute; z-index: 5; top: max(14px, env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.app-top > * { pointer-events: auto; }
.glass-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 10px; border-radius: 14px; font: 700 .9rem var(--font-body); }
.glass-btn.icon-only { width: 44px; padding: 0; justify-content: center; }
.app-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* Desplegables propios */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border-radius: 14px; color: var(--text); font: 600 .88rem var(--font-body); cursor: pointer; transition: transform .16s var(--ease), border-color .2s, background-color .2s; -webkit-tap-highlight-color: transparent; }
.dd-btn:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.dd-btn:active { transform: scale(.97); }
.dd.is-open .dd-btn { border-color: var(--primary); }
.dd-ic { display: grid; color: var(--primary); }
.dd-chev { color: var(--soft); transition: transform .25s var(--ease); }
.dd.is-open .dd-chev { transform: rotate(180deg); }
.dd-menu { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; min-width: 260px; margin: 0; padding: 6px; list-style: none; border-radius: 18px; transform-origin: top right; animation: ddIn .18s var(--ease) both; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
.dd-menu li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 12px; cursor: pointer; color: var(--text); transition: background-color .12s; }
.dd-menu li.is-active { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.dd-t { display: flex; flex-direction: column; min-width: 0; }
.dd-t b { font-size: .9rem; font-weight: 700; }
.dd-t small { font-size: .76rem; color: var(--soft); font-weight: 500; }
.dd-ck { color: var(--primary); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease); display: grid; }
.dd-menu li[aria-selected="true"] .dd-ck { opacity: 1; transform: none; }

.hud { position: absolute; z-index: 4; top: calc(max(14px, env(safe-area-inset-top)) + 58px); left: 14px; display: grid; gap: 10px; pointer-events: none; }
.date-card { padding: 14px 18px 14px; border-radius: 20px; min-width: 230px; max-width: min(360px, calc(100vw - 28px)); }
.mode-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); transition: color .25s; }
.mode-chip.plane { color: var(--plane); } .mode-chip.car { color: var(--car); }
.date-big { font: 400 clamp(1.9rem, 4vw, 2.7rem)/1.05 var(--font-display); margin-top: 4px; font-variant-numeric: tabular-nums; }
.place { color: var(--soft); font-weight: 600; font-size: .92rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-stats { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 4px 20px; padding: 12px 18px; border-radius: 18px; width: max-content; max-width: calc(100vw - 28px); }
.mini-stats div { display: flex; flex-direction: column; }
.mini-stats dt { display: flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.mini-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.c-plane { color: var(--plane); } .c-car { color: var(--car); }

.player { position: absolute; z-index: 6; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(760px, calc(100vw - 28px)); padding: 12px 16px; border-radius: 22px; }
.player-row { display: flex; align-items: center; gap: 10px; }
.pbtn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; transition: transform .16s var(--ease), background-color .2s; -webkit-tap-highlight-color: transparent; }
.pbtn:hover { background: var(--surface-2); } .pbtn:active { transform: scale(.92); }
.pbtn-main { width: 52px; height: 52px; background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 22px -8px var(--primary); }
.pbtn-main:hover { background: var(--primary); filter: brightness(1.06); }
.scrub { flex: 1; min-width: 0; padding-top: 4px; }
.scrub-dates { display: flex; justify-content: space-between; font-size: .72rem; color: var(--soft); font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.speed { flex: none; min-width: 48px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); font: 700 .85rem var(--font-body); cursor: pointer; transition: transform .16s var(--ease); }
.speed:active { transform: scale(.95); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; --p: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(to right, var(--primary) var(--p), color-mix(in srgb, var(--soft) 35%, transparent) var(--p)); }
input[type=range]::-moz-range-track { height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--soft) 35%, transparent); }
input[type=range]::-moz-range-progress { height: 5px; border-radius: 5px; background: var(--primary); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6.5px; border-radius: 50%; background: var(--text); border: 3px solid var(--primary); transition: transform .16s var(--ease); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 3px solid var(--primary); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }

/* Marcadores del mapa */
.vehicle { width: 34px; height: 34px; pointer-events: none; transition: opacity .25s; }
.vehicle.is-hidden { opacity: 0; }
.vehicle .v-in { display: grid; place-items: center; width: 100%; height: 100%; will-change: transform; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.vehicle.plane { color: var(--plane); } .vehicle.car { color: var(--car); }
.vehicle .v-in svg { width: 100%; height: 100%; stroke: var(--bg); stroke-width: .8; paint-order: stroke; }
.stop-pin { pointer-events: none; display: flex; flex-direction: column; align-items: center; animation: pinIn .5s var(--ease) both; }
.stop-pin .tag { padding: 6px 12px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: center; white-space: nowrap; }
.stop-pin b { display: block; font-size: .85rem; color: var(--text); }
.stop-pin small { display: block; font-size: .72rem; color: var(--soft); font-weight: 600; }
.stop-pin .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg); margin-top: 6px; position: relative; }
.stop-pin .pulse::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--primary); animation: ringp 2s var(--ease) infinite; }
.stop-pin.is-out { opacity: 0; transition: opacity .25s; animation: none; }
@keyframes pinIn { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

/* Resumen final */
.summary { position: absolute; z-index: 8; left: 50%; top: 50%; width: min(520px, calc(100vw - 28px)); transform: translate(-50%, -50%); padding: clamp(22px, 4vw, 34px); border-radius: 28px; animation: pop .55s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
.summary h2 { font: 400 clamp(2rem, 6vw, 2.8rem)/1.05 var(--font-display); margin: 8px 0 18px; }
.sum-grid { margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sum-grid > div { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.sum-grid dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.sum-grid dd { margin: 2px 0 0; font: 400 1.9rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.sum-grid dd small { font: 600 .8rem var(--font-body); color: var(--soft); }
.sum-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.toast { position: absolute; z-index: 9; left: 50%; top: 84px; transform: translateX(-50%); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: .9rem; max-width: calc(100vw - 28px); text-align: center; animation: rise .4s var(--ease) both; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; order: -1; margin-bottom: -20px; }
  .art-card-a { left: 0; } .art-card-b { right: 0; }
  .steps, .trio { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 767px) {
  .hero { padding-top: 12px; }
  .hero-art { max-width: 150px; margin: 0 0 -4px; justify-self: start; }
  .art-card { display: none; }
  .dropzone { grid-template-columns: 1fr; text-align: left; }
  .dz-ic { display: none; }
  .dz-actions .btn-primary { display: none; }       /* en móvil el CTA fijo hace esto */
  .dz-actions .btn-ghost { flex: 1; }
  .mobile-cta { display: block; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
  body.is-app .mobile-cta { display: none; }
  .glass-btn span { display: none; } .glass-btn { padding: 0 10px; }
  .app-top { flex-wrap: wrap; }
  .app-filters { gap: 6px; }
  .dd-btn { height: 40px; padding: 0 10px; font-size: .8rem; gap: 6px; }
  .dd-menu { min-width: min(260px, calc(100vw - 28px)); }
  .app-filters .dd:first-child .dd-menu { right: auto; left: 0; }
  .glass-btn { height: 40px; } .glass-btn.icon-only { width: 40px; }
  .hud { top: calc(max(14px, env(safe-area-inset-top)) + 54px); }
  .date-card { min-width: 0; padding: 10px 14px; }
  .mini-stats { padding: 8px 14px; gap: 2px 14px; }
  .speed { min-width: 42px; }
  .pbtn { width: 38px; height: 38px; } .pbtn-main { width: 48px; height: 48px; }
  .player { padding: 10px 12px; }
  .scrub-dates { display: none; }
}
@media (max-width: 420px) { .dd-val { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.dd-menu { background: color-mix(in srgb, var(--surface) 96%, transparent); }
