/* Revueltapp — tokens de color, tipografía y forma (fuente única para web y app).
   Oscuro = el diseño entregado. Claro = derivado: los acentos bajan de luminosidad
   para mantener ≥ 3:1 sobre fondo claro (≥ 4,5:1 en texto). El verde ácido original
   sobrevive en claro como halo de las calles exploradas y tinte de los botones. */

:root {
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --weight-heading: 500;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* Claro: por defecto, o forzado en cualquier elemento con data-theme="light" */
:root, [data-theme="light"] {
  color-scheme: light;
  /* claro */
  --bg: #F3F5F2;
  --bg-2: #E9EDEA;
  --surface: #FFFFFF;
  --surface-2: #F6F8F6;
  --border: #D3DAD6;
  --border-strong: #B9C3BF;
  --text: #0D1418;
  --muted: #5C6A72;
  --text-soft: #34424A;
  --explored-new: #2F6A00;

  --explored: #3F7F00;          /* calle explorada / texto verde */
  --explored-glow: #C4FF4D;     /* halo bajo la calle explorada */
  --explored-tint: rgba(150, 214, 30, .16);
  --route: #008378;
  --route-tint: rgba(0, 131, 120, .10);
  --gold: #9A6700;
  --gold-marker: #F2B230;       /* relleno de marcadores (con borde oscuro) */
  --gold-tint: rgba(242, 178, 48, .16);

  --map-bg: #EEF1EC;
  --map-water: #D5E3E6;
  --map-pending: #BCC6CA;
  --map-block: #E4E8E3;

  --shadow-1: 0 0 0 1px var(--border);
  --shadow-2: 0 0 0 1px var(--border), 0 8px 24px rgba(13, 20, 24, .08);
}

/* Oscuro: según el sistema (salvo que se fuerce claro) o forzado con data-theme="dark" */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #070B0E;
  --bg-2: #0B1014;
  --surface: #151D23;
  --surface-2: #11161A;
  --border: #24303A;
  --border-strong: #34414A;
  --text: #F3F6F4;
  --muted: #8B9AA3;
  --text-soft: #C9D2D6;
  --explored-new: #E2FF9E;
  --explored: #C4FF4D;
  --explored-glow: rgba(196, 255, 77, .35);
  --explored-tint: rgba(196, 255, 77, .08);
  --route: #42E8D5;
  --route-tint: rgba(66, 232, 213, .10);
  --gold: #FFC857;
  --gold-marker: #FFC857;
  --gold-tint: rgba(255, 200, 87, .10);
  --map-bg: #0B1014;
  --map-water: #0F1B22;
  --map-pending: #34414A;
  --map-block: #0E1418;
  --shadow-1: 0 0 0 1px var(--border);
  --shadow-2: 0 0 0 1px var(--border), 0 12px 32px rgba(0, 0, 0, .5);
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070B0E;
  --bg-2: #0B1014;
  --surface: #151D23;
  --surface-2: #11161A;
  --border: #24303A;
  --border-strong: #34414A;
  --text: #F3F6F4;
  --muted: #8B9AA3;
  --text-soft: #C9D2D6;
  --explored-new: #E2FF9E;
  --explored: #C4FF4D;
  --explored-glow: rgba(196, 255, 77, .35);
  --explored-tint: rgba(196, 255, 77, .08);
  --route: #42E8D5;
  --route-tint: rgba(66, 232, 213, .10);
  --gold: #FFC857;
  --gold-marker: #FFC857;
  --gold-tint: rgba(255, 200, 87, .10);
  --map-bg: #0B1014;
  --map-water: #0F1B22;
  --map-pending: #34414A;
  --map-block: #0E1418;
  --shadow-1: 0 0 0 1px var(--border);
  --shadow-2: 0 0 0 1px var(--border), 0 12px 32px rgba(0, 0, 0, .5);
}

/* Estilo del mapa de Revueltapp (clases que emite citybuilder/tools/mapa_svg.py) */
.revuelta-map { display: block; width: 100%; height: 100%; }
.revuelta-map .m-bg { fill: var(--map-bg); }
.revuelta-map .m-water { vector-effect: non-scaling-stroke; fill: none; stroke: var(--map-water); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.revuelta-map .m-pending { vector-effect: non-scaling-stroke; fill: none; stroke: var(--map-pending); stroke-width: 1.3; stroke-linecap: round; }
.revuelta-map .m-explored-glow { vector-effect: non-scaling-stroke; fill: none; stroke: var(--explored-glow); stroke-width: 6; stroke-linecap: round; opacity: .5; }
.revuelta-map .m-explored { vector-effect: non-scaling-stroke; fill: none; stroke: var(--explored); stroke-width: 2.2; stroke-linecap: round; }
.revuelta-map .m-route { vector-effect: non-scaling-stroke; fill: none; stroke: var(--route); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.revuelta-map .m-coin { fill: var(--gold-marker); stroke: var(--map-bg); stroke-width: 3; }
.revuelta-map .m-cp circle { fill: var(--map-bg); stroke: var(--route); stroke-width: 4; }
.revuelta-map .m-cp text { fill: var(--route); font: 600 18px var(--font); }
.revuelta-map .m-me-halo { fill: var(--route); opacity: .22; }
.revuelta-map .m-me-dot { fill: var(--surface); stroke: var(--route); stroke-width: 5; }

/* Revueltapp — web (diseño «Revueltapp Web» de Claude Design). Va tras design/tokens.css */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --bg-page: var(--bg-2); --lime: #C4FF4D; --ink: #0B1014; }
:root, [data-theme="light"] { --bg-page: #F3F5F2; --card: #FFFFFF; --ring: #DDE3E0; --band: #E9EEEB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg-page: #0B1014; --card: #151D23; --ring: #1F2A31; --band: #10181D; } }
[data-theme="dark"] { --bg-page: #0B1014; --card: #151D23; --ring: #1F2A31; --band: #10181D; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg-page); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-x: hidden; }
a { color: var(--route); text-decoration: none; }
::selection { background: rgba(196, 255, 77, .3); }
:focus-visible { outline: 2px solid var(--route); outline-offset: 2px; border-radius: 6px; }
h1, h2 { font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.ico { width: 1.2em; height: 1.2em; flex: none; display: inline-block; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; }
.g { color: var(--explored); } .t { color: var(--route); } .o { color: var(--gold); } .m { color: var(--muted); }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--route); }
.eyebrow.gold { color: var(--gold); }

/* mapas */
.rvmap { position: absolute; inset: 0; }
.rvmap svg { display: block; width: 100%; height: 100%; }
.w-bg { fill: var(--map-bg); } .w-river { stroke: var(--map-water); } .w-pend { stroke: var(--map-pending); }
.w-exp { stroke: var(--explored); } .w-new { stroke: var(--explored-new); } .w-under { stroke: var(--map-bg); } .w-route { stroke: var(--route); }
.w-coin { fill: var(--gold-marker); stroke: var(--map-bg); }
.w-cp circle { fill: var(--map-bg); stroke: var(--route); } .w-cp text { fill: var(--route); font-family: var(--font); }
.w-cp-ok circle { fill: var(--explored); stroke: var(--explored); } .w-cp-ok text { fill: var(--map-bg); }
.w-halo { fill: var(--route); fill-opacity: .16; } .w-car { fill: #F3F6F4; stroke: var(--route); } .w-car-arrow { fill: #0B1014; }
.w-draw { animation: rv-draw 9s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.w-glow { animation: rv-glow 3.5s ease-in-out infinite; }
@keyframes rv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rv-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rv-glow { 0%, 100% { opacity: .25; } 50% { opacity: .6; } }

/* navegación */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg-page) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--ring); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; font-weight: 500; }
.brand .appicon { width: 34px; height: 34px; }
.nav { display: flex; gap: 24px; font-size: 14px; margin-left: auto; }
.nav a { color: var(--muted); } .nav a:hover { color: var(--text); }
.tools { display: flex; gap: 6px; align-items: center; }
.lang { display: flex; font-size: 13px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.lang a { padding: 6px 9px; color: var(--muted); } .lang a[aria-current] { color: var(--text); background: var(--card); }
.theme { width: 36px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.theme .ico { width: 18px; height: 18px; }
.theme [data-show] { display: none; }
html:not([data-theme]) .theme [data-show="auto"], html[data-theme="light"] .theme [data-show="light"], html[data-theme="dark"] .theme [data-show="dark"] { display: block; }
.btn-nav { height: 40px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--explored); color: var(--explored); display: flex; align-items: center; font-size: 14px; font-weight: 500; white-space: nowrap; }
.btn-nav:hover { background: var(--explored-tint); }

/* botones */
.btn { height: 60px; padding: 0 24px; border-radius: 16px; display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: var(--text); border: 1px solid var(--border-strong); }
.btn:hover { border-color: var(--muted); }
.btn .ico { width: 22px; height: 22px; }
.btn-p { border: 1.5px solid var(--explored); background: var(--explored-tint); color: var(--explored); }
.btn-p:hover { background: color-mix(in srgb, var(--explored) 20%, transparent); border-color: var(--explored); }
.btn-p small { display: block; font-size: 11px; opacity: .8; font-weight: 500; }
.btn-p .stack { display: flex; flex-direction: column; line-height: 1.1; }
.btn-t { border: 1.5px solid var(--route); color: var(--route); height: 52px; }
.btn-t:hover { background: var(--route-tint); border-color: var(--route); }

/* hero */
.hero { position: relative; min-height: 880px; display: flex; flex-direction: column; }
.hero > .rvmap { opacity: .85; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg-page) 92%, transparent) 0%, color-mix(in srgb, var(--bg-page) 55%, transparent) 38%, color-mix(in srgb, var(--bg-page) 35%, transparent) 60%, var(--bg-page) 100%); }
.hero-in { position: relative; padding-top: 88px; display: flex; flex-direction: column; gap: 28px; width: 100%; }
.pulse { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.pulse i { width: 8px; height: 8px; border-radius: 4px; background: var(--explored); box-shadow: 0 0 10px var(--explored); }
.hero h1 { font-size: clamp(64px, 11vw, 176px); line-height: .86; letter-spacing: -.05em; }
.hero h1 span { color: var(--explored); }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.hero-row p { max-width: 520px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--text-soft); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.phone-wrap { position: relative; margin: 56px auto 0; padding: 0 32px 64px; display: flex; justify-content: center; width: 100%; max-width: 1320px; }
.scaler { width: 100%; position: relative; container-type: inline-size; filter: drop-shadow(0 40px 80px rgba(0, 0, 0, .45)); }
.scaler > .inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.phone-scaler { max-width: 980px; aspect-ratio: 876 / 417; }
.phone-scaler > .inner { width: 876px; height: 417px; transform: scale(calc(100cqw / 876px)); transform: scale(tan(atan2(100cqw, 876px))); }
.bezel { width: 876px; height: 417px; padding: 12px; border-radius: 66px; background: #1A2127; box-shadow: 0 0 0 1px #2A343C; }
.pscreen { position: relative; width: 852px; height: 393px; border-radius: 54px; overflow: hidden; background: var(--map-bg); color: var(--text); }
.pscreen .side-fade { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, color-mix(in srgb, var(--map-bg) 75%, transparent) 80%); }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--map-bg) 88%, transparent); }
.chip.city { left: 59px; top: 14px; padding: 10px 14px; border-radius: 14px; gap: 12px; }
.chip.city b { font-size: 18px; font-weight: 500; } .chip.city span { font-size: 13px; color: var(--explored); }
.chip.newst { left: 59px; bottom: 27px; padding: 8px 14px; border-radius: 20px; font-size: 13px; gap: 8px; }
.chip.newst i { width: 8px; height: 8px; border-radius: 4px; background: var(--explored); box-shadow: 0 0 8px var(--explored); }
.panel { position: absolute; right: 59px; top: 14px; bottom: 27px; width: 248px; border-radius: 20px; background: color-mix(in srgb, var(--card) 95%, transparent); box-shadow: 0 0 0 1px var(--border); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.panel .head { display: flex; align-items: center; gap: 14px; }
.panel .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.panel .nums b { display: block; font-size: 18px; font-weight: 500; } .panel .nums span { font-size: 10px; color: var(--muted); }
.panel .sug { font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.panel .go { height: 52px; border-radius: 14px; border: 1.5px solid var(--explored); background: var(--explored-tint); color: var(--explored); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 500; }
.island { position: absolute; left: 11px; top: 133px; width: 37px; height: 126px; border-radius: 20px; background: #000; }
.ring-t { fill: var(--text); font: 500 15px var(--font); }

/* marquesinas */
.band { background: var(--lime); color: var(--ink); padding: 22px 0; overflow: hidden; transform: rotate(-1.2deg); margin: 0 -40px; box-shadow: 0 0 60px rgba(196, 255, 77, .25); }
.marq { display: flex; width: max-content; animation: rv-marq 28s linear infinite; }
.marq.rev { animation-direction: reverse; animation-duration: 40s; }
.marq > div { display: flex; align-items: center; flex: none; }
.band .marq > div { gap: 36px; padding-right: 36px; }
.band .marq span { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; text-transform: uppercase; }
.band .marq i { width: 12px; height: 12px; transform: rotate(45deg); background: var(--ink); flex: none; }
.cities { padding: 28px 0; overflow: hidden; box-shadow: 0 1px 0 var(--ring), 0 -1px 0 var(--ring); }
.cities .marq > div { gap: 48px; padding-right: 48px; }
.cities .marq span { font-size: clamp(64px, 8vw, 120px); font-weight: 500; letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--explored); line-height: 1.05; }
.cities .marq i { width: 14px; height: 14px; transform: rotate(45deg); background: var(--gold-marker); flex: none; }

/* cifras */
.stats { padding-top: 120px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.stats b { display: block; font-size: clamp(56px, 6vw, 88px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.stats span { display: block; margin-top: 8px; font-size: 16px; color: var(--muted); max-width: 280px; }

/* secciones */
.sec { padding-top: 80px; padding-bottom: 80px; }
.h2 { font-size: clamp(40px, 4.6vw, 68px); line-height: .95; letter-spacing: -.04em; }
.h2-xl { font-size: clamp(44px, 5.4vw, 80px); line-height: .95; letter-spacing: -.04em; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 500px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 24px; }
.head-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.head-row p { max-width: 420px; font-size: 17px; color: var(--muted); }
.mapcard { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--ring), 0 40px 80px rgba(0, 0, 0, .3); }
.done-chip { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: color-mix(in srgb, var(--map-bg) 90%, transparent); box-shadow: 0 0 0 1px var(--gold); color: var(--gold); font-size: 15px; }
.scrub { display: flex; flex-direction: column; gap: 12px; max-width: 500px; }
.scrub .row { display: flex; justify-content: space-between; align-items: baseline; }
.scrub .row b { font-size: 44px; font-weight: 500; letter-spacing: -.03em; color: var(--explored); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 38%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--explored) var(--p), var(--border-strong) var(--p)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--explored) var(--p), var(--border-strong) var(--p)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 9px; background: var(--explored); border: 0; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 9px; background: var(--explored); border: 0; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 3px; border-radius: 2px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.step { border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--ring); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.step:hover { box-shadow: 0 0 0 1px var(--route); }
.step .pic { position: relative; aspect-ratio: 4 / 3; }
.step .n { position: absolute; left: 20px; top: 16px; font-size: 72px; font-weight: 500; letter-spacing: -.05em; color: #F3F6F4; text-shadow: 0 4px 30px rgba(11, 16, 20, .9); }
.step .pct { position: absolute; right: 16px; bottom: 16px; padding: 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--map-bg) 88%, transparent); font-size: 14px; color: var(--explored); }
.step .txt { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.step .txt b { font-size: 22px; font-weight: 500; } .step .txt span { font-size: 15px; color: var(--muted); }

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.mode { position: relative; min-height: 520px; border-radius: 28px; overflow: hidden; background: var(--map-bg); box-shadow: 0 0 0 1px var(--ring); display: flex; flex-direction: column; justify-content: flex-end; transition: box-shadow .2s; }
.mode.on { box-shadow: 0 0 0 1.5px var(--route), 0 30px 60px rgba(0, 0, 0, .3); }
.mode .fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--map-bg) 95%, transparent) 78%); }
.mode .txt { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.mode .txt .ico { width: 32px; height: 32px; color: var(--route); }
.mode .txt b { font-size: clamp(44px, 4vw, 60px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.mode .txt p { font-size: 16px; line-height: 1.5; color: var(--text-soft); max-width: 320px; }
.mode .meta { display: flex; gap: 20px; font-size: 14px; color: var(--muted); margin-top: 4px; }

.car { margin-top: 60px; background: linear-gradient(180deg, var(--bg-page), var(--band) 20%, var(--band) 80%, var(--bg-page)); }
.car .split { padding-top: 120px; padding-bottom: 120px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 480px; }
.feats div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.feats .ico { width: 24px; height: 24px; color: var(--route); }
.fine { font-size: 12px; color: var(--muted); max-width: 480px; }
.cp-scaler { aspect-ratio: 832 / 512; }
.cp-scaler > .inner { width: 832px; height: 512px; transform: scale(calc(100cqw / 832px)); transform: scale(tan(atan2(100cqw, 832px))); }
.cp-frame { width: 832px; padding: 16px; border-radius: 28px; background: #11161A; box-shadow: 0 0 0 1px #232C33; }
.cp { position: relative; width: 800px; height: 480px; border-radius: 10px; overflow: hidden; background: var(--map-bg); color: var(--text); display: flex; }
.cp-side { width: 76px; flex: none; background: var(--surface-2); box-shadow: 1px 0 0 var(--border); display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 16px; z-index: 2; }
.cp-side .clock { font-size: 16px; font-weight: 500; }
.cp-side .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.cp-side .ic .ico { width: 22px; height: 22px; }
.cp-main { position: relative; flex: 1; }
.man { position: absolute; left: 14px; top: 14px; width: 300px; border-radius: 16px; background: color-mix(in srgb, var(--card) 97%, transparent); box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.man .a { padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.man .a .ico { width: 52px; height: 52px; }
.man .a b { display: block; font-size: 38px; font-weight: 500; line-height: 1; } .man .a span { font-size: 20px; }
.man .b { padding: 12px 18px; background: var(--surface-2); display: flex; justify-content: space-between; font-size: 18px; }
.cp-btns { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.cp-btns div { width: 48px; height: 48px; border-radius: 24px; background: color-mix(in srgb, var(--card) 94%, transparent); display: flex; align-items: center; justify-content: center; }
.cp-btns .ico { width: 22px; height: 22px; }

.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.badge { border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--ring); padding: 26px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.badge .c { width: 80px; height: 80px; border-radius: 40px; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--card), 0 0 0 7px var(--border); }
.badge .c .ico { width: 34px; height: 34px; }
.badge b { font-size: 15px; font-weight: 500; color: var(--text); } .badge span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.moment { position: relative; border-radius: 32px; overflow: hidden; min-height: 440px; display: flex; align-items: center; box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent); margin-top: 56px; }
.moment .fade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--map-bg) 96%, transparent) 0%, color-mix(in srgb, var(--map-bg) 70%, transparent) 45%, color-mix(in srgb, var(--map-bg) 10%, transparent) 80%); }
.moment .txt { position: relative; padding: 56px; display: flex; flex-direction: column; gap: 14px; }
.moment .big { font-size: clamp(96px, 13vw, 200px); font-weight: 500; line-height: .85; letter-spacing: -.06em; color: var(--explored); text-shadow: 0 0 60px rgba(196, 255, 77, .35); }
.moment p { font-size: clamp(18px, 2vw, 24px); max-width: 520px; line-height: 1.4; }

.friends { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 8px; }
.friend { border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--ring); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.friend .ico { width: 28px; height: 28px; color: var(--route); } .friend b { font-size: 19px; font-weight: 500; } .friend span { font-size: 15px; color: var(--muted); }

.final { position: relative; overflow: hidden; }
.final > .rvmap { opacity: .5; }
.final .fade { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, color-mix(in srgb, var(--bg-page) 60%, transparent), var(--bg-page) 75%); }
.final .wrap { position: relative; padding-top: 140px; padding-bottom: 140px; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.final .appicon { width: 96px; height: 96px; }
.final h2 { font-size: clamp(56px, 8vw, 128px); line-height: .9; letter-spacing: -.05em; }
.final p { font-size: 19px; color: var(--text-soft); max-width: 520px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--ring); font-size: 14px; color: var(--text-soft); }
.pills .ico { color: var(--route); }
.notify { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.notify > span { font-size: 14px; color: var(--muted); }

/* pie */
footer { box-shadow: 0 -1px 0 var(--ring); }
footer .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
footer .brand { font-size: 15px; } footer .brand .appicon { width: 28px; height: 28px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); } footer a:hover { color: var(--text); }
footer .osm { flex-basis: 100%; }

/* páginas legales */
.doc { max-width: 760px; padding: 72px 32px 104px; margin: 0 auto; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -.03em; margin-bottom: 12px; line-height: 1; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--text-soft); font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; } .doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); font-weight: 500; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.doc td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-soft); }
.doc td:first-child { color: var(--text); white-space: nowrap; }
.doc .btn { height: 52px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .tools { margin-left: auto; }
  .hero { min-height: 0; }
  .feats { grid-template-columns: 1fr; }
  .moment .txt { padding: 32px; }
}
@media (max-width: 520px) {
  .wrap, .phone-wrap { padding-left: 16px; padding-right: 16px; }
  .btn-nav { display: none; }
  .brand > span { display: none; }
  .cta .btn { width: 100%; }
  .mode { min-height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marq, .w-draw, .w-glow { animation: none; }
}

[hidden] { display: none !important; }
