/* Cadencia · estilos */
:root {
  --bg: #f4f5f2; --bg2: #eceee9; --surface: #fff; --ink: #0f1214; --ink2: #3b4248; --muted: #6b737a; --line: #dfe2dd; --line2: #cfd4cd;
  --acc: #0c8a6e; --acc-ink: #fff; --acc-soft: #dcf1ea; --coral: #e4572e; --indigo: #4058d6; --amber: #c98a12;
  --s0: #0c8a6e; --s1: #e4572e; --s2: #4058d6; --s3: #c98a12;
  --r: 14px; --r-sm: 9px; --shadow: 0 1px 2px rgba(15,18,20,.05), 0 8px 24px -12px rgba(15,18,20,.18);
  --f-d: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; --f-b: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif; --f-m: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.08; letter-spacing: -.005em; }
h1, h2 { font-family: var(--f-d); font-weight: 700; text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); letter-spacing: -.01em; line-height: .98; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.mono, .score, .price b { font-family: var(--f-m); font-feature-settings: "tnum"; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2.5px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.wrap.narrow { max-width: 820px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.i.big { width: 44px; height: 44px; color: var(--acc); }
.kicker { font: 600 .74rem/1.3 var(--f-m); text-transform: uppercase; letter-spacing: .08em; color: var(--acc); margin: 0 0 .7em; }
.lead { font-size: 1.15rem; color: var(--ink2); max-width: 62ch; }
.sec-note { font-size: .86rem; color: var(--muted); }
.empty-note { color: var(--muted); }
mark.pending { background: #ffe58a; color: #3a2c00; padding: 0 4px; border-radius: 4px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .96rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-acc { background: var(--acc); color: var(--acc-ink); }
.btn-acc:hover { filter: brightness(1.07); }
.btn-line { background: transparent; border-color: var(--line2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--acc); text-decoration: none; }
.link-arrow:hover .i { transform: translateX(3px); }
.link-arrow .i { transition: transform .15s; }

/* Cabecera */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.logo-mark svg { width: 26px; height: 26px; fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.logo-word { font: 700 1.5rem/1 var(--f-d); text-transform: uppercase; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink2); }
.nav a:hover { background: var(--bg2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg2); }
.hdr-act { display: flex; align-items: center; gap: 6px; }
.ibtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.ibtn .i { width: 20px; height: 20px; }
.menu-btn { display: none; }
.cmp-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: .9rem; }
.cmp-pill[hidden] { display: none; }
.cmp-pill b { background: var(--acc); color: var(--acc-ink); border-radius: 99px; min-width: 22px; height: 22px; display: grid; place-items: center; font: 600 .78rem var(--f-m); }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .hdr-act { margin-left: auto; }
  .cmp-pill span { display: none; }
}

/* Migas y cabeceras de página */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pg-head { padding: 40px 0 28px; }
.pg-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.byline { font-size: .86rem; color: var(--muted); font-family: var(--f-m); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.hero-contours { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--line2); stroke-width: 1.2; opacity: .8; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 5.6rem); margin-bottom: .25em; }
.hero h1 span { color: var(--acc); }
.hero-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line2); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 560px; box-shadow: var(--shadow); margin-top: 24px; }
.hero-search:focus-within { border-color: var(--acc); }
.hero-search > .i { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1rem; height: 44px; }
.hero-art { position: relative; }
.hero-bike { width: 100%; height: auto; }
.hero-chip { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); font-size: .85rem; color: var(--muted); }
.hero-chip b { font-family: var(--f-m); color: var(--ink); }
.hero-chip .i { color: var(--acc); }
.hero-chip.c1 { left: 2%; top: 4%; } .hero-chip.c2 { right: 2%; bottom: 14%; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 16px; } .hero-art { max-width: 460px; margin: 0 auto; width: 100%; } .hero { padding-top: 32px; } }
@media (max-width: 520px) { .hero-search .btn { padding: 0 14px; } .hero-chip { font-size: .76rem; padding: 6px 9px; } }

/* Ilustraciones de bici */
.bike-svg { display: block; width: 100%; height: auto; overflow: visible; }
.bike-svg .tyre { fill: none; stroke: var(--ink); }
.bike-svg .rim { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.bike-svg .hub { fill: var(--ink); }
.bike-svg .frame { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.bike-svg .frame.thick { stroke-width: 9; }
.bike-svg .fork { fill: none; stroke: var(--ink2); stroke-width: 9; stroke-linecap: round; }
.bike-svg .bar, .bike-svg .saddle { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.bike-svg .battery { fill: var(--acc); }
.bike-svg .motor { fill: var(--acc); stroke: var(--ink); stroke-width: 3; }
.bike-svg .motor.hidden { display: none; }
.bike-svg .joint { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.bike-svg .shock { stroke: var(--coral); stroke-width: 8; stroke-linecap: round; }
.bike-svg .rack, .bike-svg .fender { fill: none; stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
.bike-svg .lamp { stroke: var(--amber); stroke-width: 6; stroke-linecap: round; }
.bike-svg .ground { stroke: var(--line2); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }

/* Herramientas destacadas */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: -1px; padding-top: 40px; }
.tool { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.tool:hover { transform: translateY(-3px); border-color: var(--acc); }
.tool-map { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tool-map .kicker, .tool-map .link-arrow { color: var(--acc); }
.tool.tool-map p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.tool h2 { font-size: 1.9rem; }
.tool p { font-size: .97rem; color: var(--ink2); }
.tool-vis svg { width: 100%; height: auto; display: block; }
.tv-contours ellipse { fill: none; stroke: color-mix(in srgb, var(--bg) 28%, transparent); stroke-width: 1.3; }
.tv-route { fill: none; stroke: var(--acc); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 9; }
.tv-pin { fill: var(--coral); stroke: var(--ink); stroke-width: 3; }
@media (max-width: 980px) { .tools { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tool { grid-template-columns: 1fr; } .tool-vis { max-width: 220px; } }

/* Secciones */
.home-sec { padding-top: 64px; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 0 0 20px; flex-wrap: wrap; }
.sec-h h2 { margin: 0; }
.sec-h.mt { margin-top: 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

/* Tarjeta de bici */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.grid.one { grid-template-columns: 1fr; }
.bike { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.bike:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line2); }
.bike[hidden] { display: none; }
.bike-art { display: block; padding: 22px 26px 10px; background: radial-gradient(120% 90% at 50% 100%, var(--bg2), transparent 70%); border-bottom: 1px solid var(--line); }
.bike-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.bike-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kat { font: 600 .72rem var(--f-m); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.bike h3 { font-size: 1.25rem; margin-bottom: 6px; }
.bike h3 a { text-decoration: none; }
.bike h3 a:hover { color: var(--acc); }
.bike-sum { font-size: .93rem; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kchips { list-style: none; padding: 0; margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.kchips li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px; background: var(--bg2); font: 500 .8rem var(--f-m); }
.kchips .i { color: var(--acc); width: 15px; height: 15px; }
.bike-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cmp-btn { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line2); background: transparent; font-size: .85rem; font-weight: 600; cursor: pointer; flex: none; }
.cmp-btn .i { width: 16px; height: 16px; }
.cmp-btn:hover { border-color: var(--acc); color: var(--acc); }
[data-cmp-add][aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }

/* Puntuación */
.score { --p: 0; display: inline-grid; place-items: center; min-width: 46px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--ink); background: linear-gradient(90deg, var(--acc-soft) calc(var(--p) * 1%), var(--bg2) 0); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); }
.score.na { color: var(--muted); border-color: var(--line); }
.score.sm { min-width: 40px; height: 26px; font-size: .8rem; }
.score.lg { min-width: 78px; height: 58px; font-size: 1.6rem; border-radius: 12px; }

/* Precio */
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price b { font-size: 1.35rem; font-weight: 600; }
.price s { color: var(--muted); font-size: .9rem; }
.price small { color: var(--muted); font-size: .74rem; margin-top: 3px; max-width: 30ch; }
.price .price-k { font: 600 .66rem var(--f-m); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.price.sm b { font-size: 1.1rem; }
.price.sm small { display: none; }
.price .nodata { color: var(--muted); }

/* Categorías */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.cat-card:hover { border-color: var(--acc); transform: translateY(-2px); }
.cat-art { padding: 6px 8px 10px; }
.cat-card b { font: 700 1.15rem var(--f-d); text-transform: uppercase; }
.cat-card small { color: var(--muted); font-size: .82rem; }

/* Duelos */
.duel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.duel { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.duel:hover { border-color: var(--acc); }
.duel-arts { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.duel-arts i { font: 700 1rem var(--f-d); text-transform: uppercase; color: var(--coral); font-style: normal; }
.duel b { font-size: 1rem; line-height: 1.3; } .duel em { font-style: normal; color: var(--coral); }
.duel-stats { display: flex; gap: 12px; flex-wrap: wrap; font: 500 .78rem var(--f-m); color: var(--muted); }

/* Listas de guías */
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-list li a { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-list li a:hover b { color: var(--acc); }
.guide-list .kicker { margin: 0; font-size: .68rem; }
.empty-box { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--line2); border-radius: var(--r); margin-bottom: 40px; background: var(--surface); }
.empty-box p { color: var(--ink2); max-width: 54ch; margin: 0 auto; }
.empty-box.sm { padding: 22px; margin: 0; text-align: left; display: flex; gap: 14px; align-items: center; }
.empty-box.sm p { margin: 0; font-size: .93rem; }
.empty-box.sm .i.big { width: 34px; height: 34px; }
.trust { margin-top: 64px; }
.trust > div { padding: 36px; border-radius: var(--r); background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); }
.trust p { max-width: 70ch; color: var(--ink2); }

/* Ficha */
.ficha { padding: 28px 0 40px; }
.f-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.gallery { position: sticky; top: 84px; }
.g-main { background: radial-gradient(120% 90% at 50% 100%, var(--bg2), var(--surface) 70%); border: 1px solid var(--line); border-radius: var(--r); padding: 40px 36px 24px; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.g-main img { width: 100%; height: 100%; object-fit: contain; }
.g-note { font-size: .82rem; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; }
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.g-thumbs button { width: 72px; height: 54px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); padding: 2px; cursor: pointer; flex: none; }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.f-buy h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.f-lead { font-size: 1.1rem; color: var(--ink2); }
.f-score { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0; }
.f-score div { display: flex; flex-direction: column; font-size: .88rem; color: var(--muted); }
.f-score div b { color: var(--ink); font-size: 1rem; }
.f-keys { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.f-keys li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.f-keys span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.f-keys b { font: 600 .98rem var(--f-m); overflow-wrap: anywhere; }
.f-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; }
.f-avail { font-size: .84rem; color: var(--muted); display: flex; gap: 6px; }
.f-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; margin-top: 56px; align-items: start; }
.f-side { position: sticky; top: 84px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.h-sm { font: 700 1.05rem/1.2 var(--f-b); text-transform: none; letter-spacing: 0; margin-bottom: 12px; }
.f-sec { margin-bottom: 44px; }
.f-sec > p { color: var(--ink2); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc-col { border-radius: var(--r); padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.pc-col h3 { display: flex; align-items: center; gap: 6px; }
.pros h3 { color: var(--acc); } .cons h3 { color: var(--coral); }
.pc-col ul { margin: 0; padding-left: 18px; font-size: .95rem; color: var(--ink2); }
.pc-col li { margin-bottom: 6px; }
.fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fit > div { background: var(--surface); padding: 16px 18px; }
.fit span { font: 600 .7rem var(--f-m); text-transform: uppercase; letter-spacing: .07em; color: var(--acc); }
.fit p { margin: 6px 0 0; font-size: .93rem; color: var(--ink2); }
.st-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.spec-table, .simple, .w-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table th, .spec-table td, .simple th, .simple td, .w-table th, .w-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tbody:last-child tr:last-child > *, .simple tr:last-child > * { border-bottom: 0; }
.spec-table th[scope="row"] { font-weight: 500; color: var(--muted); width: 36%; }
.spec-table td { font-weight: 500; }
.st-g th { background: var(--bg2); font: 600 .72rem var(--f-m); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.nodata { color: var(--muted); }
.st-note { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.st-src { text-align: right !important; white-space: nowrap; width: 1%; }
.srcref { display: inline-block; font: 600 .66rem/1 var(--f-m); text-transform: uppercase; letter-spacing: .05em; padding: 4px 6px; border-radius: 5px; text-decoration: none; border: 1px solid; }
.srcref.t-oficial { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.srcref.t-prensa { color: var(--indigo); border-color: color-mix(in srgb, var(--indigo) 40%, transparent); }
.srcref.t-prueba { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.srcref.t-tienda { color: var(--coral); border-color: color-mix(in srgb, var(--coral) 40%, transparent); }
.srcref.t-none { color: var(--muted); border-color: var(--line); }
.sources { font-size: .82rem; color: var(--muted); padding-left: 0; list-style: none; margin-top: 14px; display: grid; gap: 6px; }
.sources a { color: var(--ink2); }
.sources li:target { background: var(--acc-soft); border-radius: 6px; }
.links { padding: 0; list-style: none; } .links a { display: inline-flex; gap: 6px; align-items: center; color: var(--acc); font-weight: 600; text-decoration: none; padding: 4px 0; }
.f-cta-band { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r); background: var(--ink); color: var(--bg); flex-wrap: wrap; }
.f-cta-band span { font-size: .9rem; opacity: .8; }
.axis-list { list-style: none; padding: 0; margin: 10px 0; }
.axis-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.similar { margin-top: 24px; }
@media (max-width: 980px) {
  .f-top, .f-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery, .f-side { position: static; }
  .f-grid { margin-top: 36px; }
  .f-side { order: -1; }
}
@media (max-width: 640px) {
  .f-keys { grid-template-columns: 1fr 1fr; }
  .pc, .fit { grid-template-columns: 1fr; }
  .f-ctas .btn { flex: 1 1 100%; }
  .g-main { padding: 24px 18px 12px; }
  .spec-table th, .spec-table td { padding: 10px 12px; }
}

/* Radar */
.radar { width: 100%; height: auto; display: block; overflow: visible; }
.r-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.r-axis { stroke: var(--line); stroke-width: 1; }
.r-lab { font: 600 10.5px var(--f-b); fill: var(--muted); }
.r-shape { stroke-width: 2.2; stroke-linejoin: round; }
.r-shape.s0 { fill: color-mix(in srgb, var(--s0) 22%, transparent); stroke: var(--s0); }
.r-shape.s1 { fill: color-mix(in srgb, var(--s1) 16%, transparent); stroke: var(--s1); }
.r-shape.s2 { fill: color-mix(in srgb, var(--s2) 14%, transparent); stroke: var(--s2); }
.r-shape.s3 { fill: color-mix(in srgb, var(--s3) 14%, transparent); stroke: var(--s3); }
.r-dot.s0 { fill: var(--s0); } .r-dot.s1 { fill: var(--s1); } .r-dot.s2 { fill: var(--s2); } .r-dot.s3 { fill: var(--s3); }
.tool-map .r-grid, .tool-map .r-axis { stroke: color-mix(in srgb, var(--bg) 25%, transparent); }
.tool-map .r-lab { fill: color-mix(in srgb, var(--bg) 65%, transparent); }
.tool-cmp .tool-vis { max-width: 220px; }

/* Filtros */
.filters, .rec-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; margin-bottom: 14px; }
.filters label, .rec-filters label, .override { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
select { appearance: none; -webkit-appearance: none; width: 100%; height: 44px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b737a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); cursor: pointer; }
select:focus { border-color: var(--acc); outline: none; }
.filter-count { font: 500 .85rem var(--f-m); color: var(--muted); margin: 0 0 16px; }
.list-sec { padding-bottom: 20px; }
.cat-guide { margin-top: 28px; color: var(--ink2); }
.cat-guide a { color: var(--acc); }

/* Guías */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; padding-bottom: 20px; }
.guide-card { display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .2s, transform .2s; }
.guide-card:hover { border-color: var(--acc); transform: translateY(-2px); }
.guide-card h2 { font-size: 1.55rem; }
.guide-card p { color: var(--ink2); font-size: .95rem; }
.guide-card .link-arrow { margin-top: auto; }
.guide-card.big { grid-column: 1 / -1; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.guide-card.big p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.guide-card.big h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose { padding-bottom: 40px; }
.prose p, .prose li { color: var(--ink2); }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose a { color: var(--acc); }
.prose a.btn { color: var(--acc-ink); }
.prose .st-wrap { margin: 16px 0 20px; }
.callout { padding: 16px 18px; border-left: 4px solid var(--amber); background: var(--surface); border-radius: 0 10px 10px 0; }
.rank { list-style: none; padding: 0; counter-reset: none; }
.rank > li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rank-h { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.rank-h a { text-decoration: none; font-size: 1.15rem; color: var(--ink) !important; flex: 1; }
.rank-n { font: 700 2rem/1 var(--f-d); color: var(--acc); width: 34px; }
.rank-pc { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.mini-rank { padding-left: 20px; } .mini-rank li { margin-bottom: 4px; } .mini-rank .mono { color: var(--muted); font-size: .85rem; }

/* Comparador */
.cmp { padding-bottom: 40px; }
.cmp-pick { margin-bottom: 20px; }
.cmp-pick-t { font: 600 .78rem var(--f-m); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.cmp-chips, .pill-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--surface); cursor: pointer; font-size: .9rem; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.pill-links { justify-content: center; margin-top: 14px; }
.pill-links a { padding: 8px 14px; border-radius: 999px; background: var(--acc-soft); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.cmp-empty { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line2); border-radius: var(--r); }
.cmp-empty[hidden], .cmp-view[hidden] { display: none; }
.cmp-top { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 20px; align-items: end; margin-bottom: 20px; }
.cmp-share { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); -webkit-overflow-scrolling: touch; }
.cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; font-size: .92rem; }
.cmp-table th, .cmp-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table tbody th { position: sticky; left: 0; background: var(--surface); font-weight: 500; color: var(--muted); width: 180px; min-width: 130px; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.cmp-table thead th { vertical-align: bottom; min-width: 170px; }
.cmp-table thead th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 2; box-shadow: 1px 0 0 var(--line); }
.cmp-head { display: flex; flex-direction: column; gap: 8px; }
.cmp-head .bike-svg { max-width: 160px; }
.cmp-head a { font-weight: 700; text-decoration: none; line-height: 1.25; }
.cmp-head a:hover { color: var(--acc); }
.cmp-head .sw { width: 100%; height: 4px; border-radius: 2px; }
.cmp-head .rm { align-self: flex-start; font-size: .8rem; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; text-decoration: underline; }
.cmp-table .g th { background: var(--bg2); font: 600 .72rem var(--f-m); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.cmp-table td.best { background: var(--acc-soft); font-weight: 700; }
.cmp-table td.best::after { content: " ★"; color: var(--acc); font-size: .8em; }
.cmp-table .buy td { border-bottom: 0; }
@media (max-width: 760px) { .cmp-top { grid-template-columns: 1fr; } .cmp-share { justify-content: flex-start; } .cmp-table tbody th { width: 120px; min-width: 112px; font-size: .82rem; } .cmp-table thead th { min-width: 150px; } }

/* Mapa */
.map-head { padding: 36px 0 20px; }
.map-head h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
.map-search { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1.5px solid var(--line2); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 760px; box-shadow: var(--shadow); }
.map-search:focus-within { border-color: var(--acc); }
.map-search > .i { color: var(--muted); }
.map-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 44px; font-size: 1rem; }
.map-search input::-webkit-search-cancel-button { display: none; }
.map-try { margin: 14px 0 0; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.map-try button { border: 1px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: .85rem; }
.map-try button:hover { border-color: var(--acc); color: var(--acc); }
.map-results-list { max-width: 760px; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.map-results-list[hidden] { display: none; }
.map-results-list button { display: block; width: 100%; text-align: left; padding: 11px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; font-size: .92rem; }
.map-results-list button:hover { background: var(--bg2); }
.map-results-list small { color: var(--muted); display: block; }
.map-msg { padding: 12px 16px; font-size: .9rem; color: var(--ink2); }
.map-app { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 32px; }
.map-col { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.map-box { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map { height: min(62vh, 560px); min-height: 340px; background: var(--bg2); }
.map-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 500; background: var(--ink); color: var(--bg); padding: 7px 14px; border-radius: 99px; font-size: .82rem; pointer-events: none; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.map-hint[hidden] { display: none; }
.leaflet-container { font: inherit; }
.leaflet-control-layers, .leaflet-bar a { color: #0f1214; }
.terrain[hidden] { display: none; }
.terrain-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.terrain-h .h-sm { margin: 0; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 600 .74rem var(--f-m); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.terrain > p { font-size: .93rem; color: var(--ink2); margin: 10px 0; }
.tstats { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tstats li { background: var(--bg2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.tstats span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tstats b { font: 600 1rem var(--f-m); }
.tfeat { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: .82rem; }
.tfeat span { padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink2); }
.override { margin-top: 4px; }
.rec-col { display: flex; flex-direction: column; gap: 14px; }
.rec-filters { margin: 0; grid-template-columns: repeat(2, 1fr); }
.rec-empty { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--line2); border-radius: var(--r); color: var(--ink2); }
.rec-empty h2 { font-size: 1.5rem; margin-top: 10px; }
.rec-ideal[hidden] { display: none; }
.rec-ideal { font-size: .92rem; color: var(--ink2); }
.rec-ideal b { color: var(--ink); }
.rec-ideal ul { margin: 8px 0 0; padding-left: 18px; }
.rec-list { display: flex; flex-direction: column; gap: 12px; }
.rec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: start; }
.rec.top { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.rec-art { padding-top: 6px; }
.rec h3 { font-size: 1.08rem; margin: 0 0 4px; } .rec h3 a { text-decoration: none; } .rec h3 a:hover { color: var(--acc); }
.rec-rank { font: 600 .7rem var(--f-m); color: var(--acc); text-transform: uppercase; letter-spacing: .06em; }
.rec-why { font-size: .88rem; color: var(--ink2); margin: 4px 0 8px; }
.rec-pct { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--acc) calc(var(--p) * 1%), var(--bg2) 0); position: relative; }
.rec-pct::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.rec-pct b { position: relative; font: 600 1rem var(--f-m); }
.rec-pct small { position: relative; display: block; font-size: .6rem; color: var(--muted); text-align: center; margin-top: -4px; }
.rec-pct-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rec details { grid-column: 1 / -1; font-size: .85rem; border-top: 1px dashed var(--line); padding-top: 8px; }
.rec summary { cursor: pointer; color: var(--acc); font-weight: 600; }
.bd { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .82rem; }
.bd td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
.bd td:not(:first-child) { text-align: right; font-family: var(--f-m); }
.rec-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rec-actions .btn { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.rec-actions .price { margin-right: auto; }
.rec-warn { font-size: .78rem; color: var(--amber); }
.how { padding: 40px 16px 56px; border-top: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0 24px; }
.how-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.how-grid p { font-size: .9rem; color: var(--ink2); margin: 0; }
.w-table td { font-family: var(--f-m); font-size: .85rem; }
.w-table td:first-child { font-family: var(--f-b); font-weight: 600; }
.w-table th { font-size: .8rem; color: var(--muted); }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line2); border-top-color: var(--acc); border-radius: 50%; animation: sp 0.8s linear infinite; vertical-align: -3px; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (max-width: 1000px) { .how-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .map-app { grid-template-columns: 1fr; }
  .map-col { position: static; }
  .map { height: 52vh; min-height: 300px; }
}
@media (max-width: 560px) {
  .map-search { flex-wrap: wrap; border-radius: 16px; padding: 8px; }
  .map-search > .i { display: none; }
  .map-search input { flex: 1 1 100%; padding: 0 8px; }
  .map-search .btn { flex: 1; }
  .tstats { grid-template-columns: 1fr 1fr; }
  .rec { grid-template-columns: 72px 1fr; }
  .rec-pct-wrap { grid-column: 2; grid-row: 1; justify-self: end; }
  .rec > div:nth-child(2) { grid-column: 1 / -1; }
  .how-grid { grid-template-columns: 1fr; }
}

/* Pie */
.ftr { margin-top: 72px; background: var(--ink); color: color-mix(in srgb, var(--bg) 80%, transparent); padding: 56px 0 28px; }
.ftr .logo-word { color: #f4f5f2; }
.ftr .logo-mark { background: #1b2126; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.ftr-brand p { font-size: .92rem; margin-top: 14px; max-width: 36ch; }
.ftr h4 { font: 600 .74rem var(--f-m); text-transform: uppercase; letter-spacing: .08em; color: #f4f5f2; margin-bottom: 12px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 7px; font-size: .92rem; }
.ftr a { text-decoration: none; } .ftr a:hover { color: #2fc9a3; }
.disclosure { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; max-width: 100ch; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 500 .78rem var(--f-m); opacity: .7; margin: 0; }
@media (max-width: 800px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }

/* Aviso flotante */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-size: .9rem; z-index: 999; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: var(--acc); font-weight: 600; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Fotos reales y botón de compra en tarjetas */
.bike-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.bike-art:has(.bike-photo) { background: #f3f3f3; padding: 8px; }
.g-main:has(img) { background: #f3f3f3; padding: 0; overflow: hidden; }
.g-thumbs button { background: #f3f3f3; }
.g-thumbs button[aria-current="true"] { outline: 2px solid var(--acc); }
.card-buy { margin-top: 12px; width: 100%; min-height: 42px; font-size: .9rem; }
.duel-arts .bike-photo, .cat-art .bike-photo { aspect-ratio: 4 / 3; }
.rec-art .bike-photo, .cmp-head .bike-photo, .duel-arts .bike-photo { background: #f3f3f3; border-radius: 8px; }
.rf-terrain { grid-column: 1 / -1; }
.rf-terrain select { border-color: var(--acc); border-width: 1.5px; font-weight: 600; }
.map-off { position: absolute; inset: 0; z-index: 600; display: grid; place-items: center; padding: 24px; text-align: center; background: color-mix(in srgb, var(--bg2) 94%, transparent); }
.map-off[hidden] { display: none; }
.map-off div { max-width: 40ch; font-size: .95rem; color: var(--ink2); }
.map-off b { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }

.urban-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: .85rem; color: var(--ink2); }
.urban-pick[hidden] { display: none; }
.urban-pick span { margin-right: 4px; font-weight: 600; }
.urban-pick button { border: 1.5px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: .85rem; }
.urban-pick button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.leaflet-image-layer { image-rendering: auto; }

/* Publicidad */
.ad-slot { margin: 28px 0; display: grid; gap: 6px; min-width: 0; }
.ad-label { font: 600 .64rem var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad-empty { min-height: 110px; place-items: center; align-content: center; border: 1px dashed var(--line2); border-radius: var(--r); background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--line) 60%, transparent) 10px 11px); }
.ad-empty span { font: 600 .66rem var(--f-m); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 3px 10px; border-radius: 6px; }
.ad-empty small { font: 500 .62rem var(--f-m); color: var(--muted); background: var(--bg); padding: 0 8px; border-radius: 4px; }
.ad-adsense { display: none; }
.ads-on .ad-adsense { display: grid; }
.ad-adsense ins { min-height: 90px; }
.ad-own a { display: grid; gap: 8px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; overflow: hidden; }
.ad-own img { width: 100%; height: auto; border-radius: 8px; display: block; }
.ad-html { overflow: hidden; }
.f-side .ad-slot { margin-top: 16px; }
.rec-col .ad-slot { margin: 6px 0 0; }

/* Aviso de cookies */
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.cookie[hidden] { display: none; }
.cookie-in { pointer-events: auto; max-width: 760px; width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.35); padding: 18px 20px; display: grid; gap: 14px; }
.cookie-txt b { font-size: 1rem; }
.cookie-txt p { margin: 4px 0 0; font-size: .9rem; color: var(--ink2); }
.cookie-txt a { color: var(--acc); }
.cookie-opts { display: grid; gap: 8px; }
.cookie-opts[hidden] { display: none; }
.cookie-opt { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.cookie-opt span { display: flex; flex-direction: column; }
.cookie-opt small { color: var(--muted); }
.cookie-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--acc); }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-btns [hidden] { display: none; }
@media (max-width: 560px) { .cookie-btns .btn { flex: 1 1 calc(50% - 8px); } }

/* ================= v2: interactivo ================= */
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { filter: brightness(1.15); }
.btn .i { width: 18px; height: 18px; }

/* Hero con foto */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-stats { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font: 700 2rem/1 var(--f-d); }
.hero-stats span { font-size: .8rem; color: var(--muted); }
a.hero-art { display: block; text-decoration: none; color: inherit; }
.hero-photo { display: block; width: 100%; height: auto; border-radius: 22px; background: #f3f3f3; box-shadow: 0 30px 60px -30px rgba(15,18,20,.45); transform: rotate(-1.2deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
a.hero-art:hover .hero-photo { transform: rotate(0) scale(1.015); }
.hero-tag { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 8px 10px 8px 16px; white-space: nowrap; box-shadow: var(--shadow); }
.hero-tag small { font: 600 .62rem var(--f-m); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.hero-tag b { font-size: .92rem; }
.hero-tag .score { background: var(--acc); color: var(--acc-ink); border: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-chip { animation: floaty 6s ease-in-out infinite; }
  .hero-chip.c2 { animation-delay: -3s; }
  @keyframes floaty { 50% { transform: translateY(-8px); } }
  .bike, .tool, .cat-card, .duel, .guide-card { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media (max-width: 520px) { .hero-tag { font-size: .8rem; } .hero-tag small { display: none; } .hero-stats { gap: 18px; } .hero-stats b { font-size: 1.6rem; } }

/* Test */
.quiz-sec { scroll-margin-top: 80px; }
.quiz-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; padding: 36px; border-radius: 24px; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.quiz-wrap::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 45%, transparent), transparent); pointer-events: none; }
.quiz-intro { position: relative; }
.quiz-intro h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.quiz-intro p:not(.kicker) { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.quiz { position: relative; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); min-height: 300px; }
section.wrap.narrow > .quiz { border: 1px solid var(--line); margin-bottom: 40px; }
.quiz h3 { font: 700 1.5rem/1.15 var(--f-d); text-transform: uppercase; margin: 0 0 16px; }
.quiz-prog { height: 6px; border-radius: 9px; background: var(--bg2); margin-bottom: 16px; overflow: hidden; }
.quiz-prog span { display: block; height: 100%; background: var(--acc); border-radius: 9px; transition: width .35s ease; }
.quiz-opts { display: grid; gap: 8px; }
.qopt { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--surface); cursor: pointer; font-size: 1rem; font-weight: 500; transition: border-color .15s, background .15s, transform .15s; }
.qopt:hover, .qopt:focus-visible { border-color: var(--acc); background: var(--acc-soft); transform: translateX(3px); }
.quiz-back { margin-top: 12px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 0; }
.quiz-res-h h3 { margin-bottom: 4px; }
.quiz-cards { display: grid; gap: 10px; margin: 16px 0; }
.qcard { position: relative; display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.qcard:hover { border-color: var(--acc); transform: translateY(-2px); }
.qcard.top { border-color: var(--acc); background: var(--acc-soft); }
.qbadge { position: absolute; top: -10px; left: 12px; background: var(--acc); color: var(--acc-ink); font: 600 .66rem var(--f-m); text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; }
.qcard-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qcard-b small { color: var(--muted); font-size: .82rem; }
.qwhy { font-size: .78rem; color: var(--acc); font-weight: 600; }
.qpct { --p: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--acc) calc(var(--p) * 1%), var(--bg2) 0); position: relative; }
.qpct::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.qcard.top .qpct::before { background: var(--acc-soft); }
.qpct b { position: relative; font: 600 .9rem var(--f-m); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #f3f3f3; }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb svg { padding: 6px; }
@media (max-width: 860px) { .quiz-wrap { grid-template-columns: 1fr; padding: 22px 16px; gap: 16px; } .quiz { padding: 18px; } }
@media (max-width: 480px) { .qcard { grid-template-columns: 70px 1fr; } .qpct { position: absolute; right: 10px; top: 10px; width: 46px; height: 46px; } .qcard-b { padding-right: 50px; } }

/* Teaser ahorro */
.ahorro-teaser { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 32px; border-radius: 20px; text-decoration: none; background: linear-gradient(120deg, var(--acc-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); flex-wrap: wrap; }
.ahorro-teaser h2 { margin: 0 0 4px; }
.ahorro-teaser p:not(.kicker) { margin: 0; color: var(--ink2); max-width: 60ch; }

/* Calculadora de ahorro */
.ahorro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 40px; }
.ah-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ah-form input, .ah-form select { width: 100%; min-width: 0; }
.ah-form label { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ah-form label[hidden] { display: none; }
.ah-form .full { grid-column: 1 / -1; }
.ah-form input { height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); padding: 0 12px; font: 600 1rem var(--f-m); color: var(--ink); text-transform: none; }
.ah-form input:focus { border-color: var(--acc); outline: none; }
.ah-out { position: sticky; top: 84px; }
.ah-big { display: flex; flex-direction: column; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.ah-big span { font: 600 .72rem var(--f-m); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ah-big b { font: 700 clamp(2.6rem, 7vw, 4rem)/1 var(--f-d); }
.ah-big b.pos { color: var(--acc); }
.ah-stats { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.ah-stats li { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.ah-stats b { font-family: var(--f-m); }
.ah-pay { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; background: var(--bg2); border-radius: 14px; padding: 12px; }
.ah-pay p { margin: 0; font-size: .92rem; }
.ah-pay .btn { grid-column: 1 / -1; }
@media (max-width: 860px) { .ahorro { grid-template-columns: 1fr; } .ah-out { position: static; } }

/* Autonomía en ficha */
.autonomia { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.au-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0 16px; }
.au-grid fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.au-grid legend, .au-range > span { font: 600 .72rem var(--f-m); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; padding: 0; }
.au-range { grid-column: 1 / -1; display: flex; flex-direction: column; }
.au-range b { color: var(--ink); }
.au-range input { width: 100%; accent-color: var(--acc); height: 28px; }
.seg { display: flex; background: var(--bg2); border-radius: 10px; padding: 3px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 8px 6px; border-radius: 8px; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink2); transition: background .15s; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--acc); }
.au-out { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; }
.au-out > span { font: 600 .72rem var(--f-m); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); grid-column: 1 / -1; }
.au-out b { font: 700 2.6rem/1 var(--f-d); }
.au-out b small { font-size: 1.1rem; }
.au-bar { --p: 50; height: 10px; border-radius: 9px; background: var(--bg2); overflow: hidden; }
.au-bar i { display: block; height: 100%; width: calc(var(--p) * 1%); background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 60%, var(--amber))); border-radius: 9px; transition: width .3s ease; }
@media (max-width: 560px) { .au-grid { grid-template-columns: 1fr; } }

/* Buscador instantáneo */
.qs { position: fixed; inset: 0; z-index: 1200; background: rgba(10,12,14,.5); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.qs[hidden] { display: none; }
.qs-box { width: 100%; max-width: 640px; background: var(--surface); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; }
.qs-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.qs-in > .i { color: var(--muted); }
.qs-in input { flex: 1; min-width: 0; height: 58px; border: 0; outline: none; background: transparent; font-size: 1.05rem; }
.qs-x { border: 1px solid var(--line2); background: var(--bg2); border-radius: 6px; font: 600 .7rem var(--f-m); padding: 4px 7px; cursor: pointer; color: var(--muted); }
.qs-list { max-height: min(60vh, 520px); overflow-y: auto; padding: 6px; }
.qs-list a { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; text-decoration: none; }
.qs-list a:hover, .qs-list a:focus { background: var(--bg2); outline: none; }
.qs-list a span:not(.thumb) { display: flex; flex-direction: column; min-width: 0; }
.qs-list small { color: var(--muted); font-size: .8rem; }
.qs-list em { font: 600 .9rem var(--f-m); font-style: normal; white-space: nowrap; }
.qs-empty { padding: 20px; text-align: center; color: var(--muted); margin: 0; }
html.qs-open { overflow: hidden; }

/* Bandeja del comparador */
.cmp-tray { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 900; width: max-content; max-width: calc(100% - 24px); }
.cmp-tray[hidden] { display: none; }
.tray-in { display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 8px 8px 8px 10px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.5); }
.tray-bikes { display: flex; gap: 6px; }
.tray-b { position: relative; width: 52px; }
.tray-b .thumb { border-radius: 50%; aspect-ratio: 1; border: 2px solid var(--acc); }
.tray-b button { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--coral); color: #fff; font-size: .8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.tray-slot { width: 52px; aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--bg) 35%, transparent); display: grid; place-items: center; opacity: .7; }
.tray-t { font-size: .85rem; white-space: nowrap; }
.has-cookie .cmp-tray { display: none; }
@media (max-width: 560px) { .tray-t { display: none; } .tray-b, .tray-slot { width: 42px; } .tray-in { gap: 8px; } }

/* Barra de compra fija (móvil) */
.buybar { display: none; }
@media (max-width: 900px) {
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; gap: 10px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.25); transform: translateY(110%); transition: transform .3s ease; }
  .buybar.on { transform: none; }
  .bb-art { width: 54px; flex: none; border-radius: 8px; overflow: hidden; background: #f3f3f3; }
  .bb-art .bike-photo, .bb-art .bike-svg { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; }
  .bb-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .bb-t b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bb-t small { color: var(--muted); font-size: .74rem; }
  .buybar .btn { min-height: 42px; padding: 0 14px; font-size: .88rem; }
  html.has-buybar .cmp-tray { display: none; }
}

html.has-tray body { padding-bottom: 96px; }
@media (max-width: 900px) { html.has-buybar body { padding-bottom: 80px; } }

/* Selector de idioma */
.lang { position: relative; }
.lang-btn { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; font: 600 .78rem var(--f-m); }
.flag { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; display: block; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; text-decoration: none; font-size: .95rem; }
.lang-menu a:hover { background: var(--bg2); }
.lang-menu a[aria-current] { background: var(--acc-soft); font-weight: 600; }
@media (max-width: 560px) { .lang-btn span { display: none; } .lang-btn { padding: 0; width: 40px; justify-content: center; } }
@media (max-width: 420px) {
  .hdr-in { gap: 10px; }
  .hdr-act { gap: 4px; }
  .hdr-act .ibtn { width: 36px; height: 36px; }
  .logo { gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-word { font-size: 1.25rem; }
}
.hero-grid > * { min-width: 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .hero-tag { white-space: normal; max-width: calc(100% - 16px); } .hero h1 { overflow-wrap: anywhere; hyphens: auto; } }
/* Categorías con foto real */
.cat-card { padding: 10px 10px 14px; overflow: hidden; }
.cat-card .cat-art { display: block; padding: 0; margin-bottom: 8px; border-radius: calc(var(--r) - 6px); background: #f3f3f3; overflow: hidden; }
.cat-card .cat-art .bike-photo { aspect-ratio: 4 / 3; object-fit: contain; padding: 6px; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.cat-card:hover .cat-art .bike-photo { transform: scale(1.06); }
.cat-card .cat-art .bike-svg { padding: 10px; }
.cat-card b, .cat-card small { padding: 0 6px; }
.cat-card b { font-size: clamp(.92rem, 1.25vw, 1.08rem); line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
