/* TimeVolt · hoja de estilos
   Concepto: hoja técnica de taller. Superficies limpias, datos en monoespaciada,
   naranja de reflectante como único acento y cuatro colores de serie para los gráficos. */

:root {
  --bg: #edf1f0;
  --surface: #ffffff;
  --surface-2: #e4eae9;
  --ink: #0e1b1c;
  --muted: #53666a;
  --line: #d3dcdb;
  --accent: #d4410b;
  --accent-ink: #ffffff;
  --good: #1c7a4d;
  --bad: #a8412a;
  --s1: #d4410b;
  --s2: #0e7c7b;
  --s3: #3f55d6;
  --s4: #a67c00;
  --shadow: 0 1px 2px rgba(14, 27, 28, .06), 0 8px 24px rgba(14, 27, 28, .06);

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1214; --surface: #121d20; --surface-2: #1a292d; --ink: #e7efee; --muted: #94a8aa;
    --line: #24363a; --accent: #ff6b35; --accent-ink: #0a1214; --good: #55c78f; --bad: #ff8a6b;
    --s1: #ff7a45; --s2: #3cc4bf; --s3: #8c9bff; --s4: #e8b93a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1214; --surface: #121d20; --surface-2: #1a292d; --ink: #e7efee; --muted: #94a8aa;
  --line: #24363a; --accent: #ff6b35; --accent-ink: #0a1214; --good: #55c78f; --bad: #ff8a6b;
  --s1: #ff7a45; --s2: #3cc4bf; --s3: #8c9bff; --s4: #e8b93a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.eyebrow { font: 600 .72rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 62ch; margin-top: 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--surface); padding: .5rem .8rem; }

.wrap {
  width: 100%; max-width: calc(var(--max) + 64px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.more { font: 600 .9rem var(--font-body); color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ── Cabecera ── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.3rem var(--font-display); text-decoration: none; letter-spacing: -.02em; }
.logo svg { color: var(--accent); }
.nav { display: flex; gap: .2rem; align-items: center; }
.nav a { text-decoration: none; padding: .5rem .75rem; border-radius: var(--r-sm); font-weight: 550; font-size: .95rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav a.nav-cta { background: var(--accent); color: var(--accent-ink); }
.nav a.nav-cta:hover { background: var(--accent); filter: brightness(1.08); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: .45rem .65rem; font: 600 .9rem var(--font-body); cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: .6rem max(16px, env(safe-area-inset-left, 0px)) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .6rem; }
}

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.1rem; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 650 .95rem var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-buy { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .btn-buy:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn-lg { min-height: 52px; padding-inline: 1.6rem; font-size: 1.02rem; }
.btn-sm { min-height: 36px; padding: .35rem .8rem; font-size: .85rem; }
.link-btn { background: none; border: 0; color: var(--muted); font: 500 .8rem var(--font-body); cursor: pointer; text-decoration: underline; padding: .2rem; }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero-text > * + * { margin-top: 1.2rem; }
.hero-text .lead { margin-top: 1.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; box-shadow: var(--shadow); min-width: 0; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* ── Radar ── */
.radar { width: 100%; max-width: 440px; height: auto; display: block; margin-inline: auto; overflow: visible; }
.rd-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.rd-ring:last-of-type { stroke: var(--muted); stroke-opacity: .5; }
.rd-axis { stroke: var(--line); stroke-width: 1; }
.rd-label { fill: var(--ink); font: 600 13px var(--font-body); }
.rd-tick { fill: var(--muted); font: 10px var(--font-mono); }
.rd-shape { fill: var(--c); fill-opacity: .13; stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; }
.rd-dot { fill: var(--c); stroke: var(--surface); stroke-width: 1.5; }
.legend { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: center; font-size: .88rem; }
.legend li { display: flex; align-items: center; gap: .45rem; }
.legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }

/* ── Rejillas y tarjetas ── */
.grid { display: grid; gap: 1.2rem; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.guides { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.card-media { display: block; position: relative; background: var(--surface-2); aspect-ratio: 16 / 10; max-width: 100%; }
.card-media img { background: #fff; object-fit: contain !important; }
.deal-media img { background: #fff; object-fit: contain !important; }
.card-media img, .card-media .art { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip { position: absolute; left: .8rem; top: .8rem; background: var(--surface); color: var(--ink); font: 600 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 999px; }
.card-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-body .eyebrow { margin: 0; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .3rem 0; padding: .8rem 0; border-block: 1px dashed var(--line); }
.quick dt { font: .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.quick dd { margin: 0; font-weight: 600; font-size: .95rem; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.card-foot > div:first-child { display: flex; flex-direction: column; }
.price { font-size: 1.45rem; font-weight: 700; }
.price.big { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.score { display: inline-flex; align-items: baseline; gap: 1px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); padding: .15rem .5rem; font-family: var(--font-mono); }
.score b { font-size: 1.15rem; }
.score span { font-size: .72rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .3rem; }
.actions .btn { flex: 1 1 140px; }

.art { color: var(--ink); }
.art-shadow { fill: var(--ink); opacity: .08; }
.art-wheel circle:not(.hub) { fill: none; stroke: var(--ink); stroke-width: 9; }
.art-wheel .hub { fill: var(--ink); }
.art-frame line { stroke: var(--hue); stroke-width: 7; stroke-linecap: round; }
.art-batt { fill: var(--ink); }
.art-motor { fill: var(--surface); stroke: var(--ink); stroke-width: 4; }
.art-rack { fill: none; stroke: var(--muted); stroke-width: 5; stroke-linecap: round; }

.cat-tile, .guide-tile { display: flex; flex-direction: column; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3rem; text-decoration: none; transition: border-color .15s, transform .15s; min-width: 0; }
.cat-tile:hover, .guide-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-tile p, .guide-tile p:not(.eyebrow) { color: var(--muted); font-size: .94rem; }
.cat-n { font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.guide-tile .eyebrow { margin: 0; }
.guide-tile .more { margin-top: auto; }

.method { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; border-top: 1px solid var(--line); }
.method p { color: var(--muted); max-width: 60ch; margin-top: .9rem; }
.axes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.axes li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem 1rem; font: 600 .9rem var(--font-mono); }
@media (max-width: 760px) { .method { grid-template-columns: 1fr; } }

.empty { border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 2.2rem 1.5rem; text-align: center; color: var(--muted); }
.empty .eyebrow { color: var(--muted); }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-link { text-decoration: none; border: 1px solid var(--line); background: var(--surface); padding: .5rem 1rem; border-radius: 999px; font-weight: 550; }
.chip-link:hover { border-color: var(--accent); color: var(--accent); }

.page-head { padding-top: clamp(1.5rem, 4vw, 2.6rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .84rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-style: normal; opacity: .5; }

/* ── Ficha ── */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-block: 1rem 2rem; }
.gallery { min-width: 0; }
.g-main { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); aspect-ratio: 4 / 3; overflow: hidden; max-width: 100%; }
.g-main img, .g-main .art { width: 100%; height: 100%; object-fit: contain; display: block; }
.g-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.g-thumbs button { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 0; width: 72px; height: 72px; flex: none; cursor: pointer; overflow: hidden; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-note { margin-top: .6rem; }
.product-info { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.product-info .eyebrow { margin: 0; }
.product-info .lead { margin: 0; }
.rating-line { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.stars { letter-spacing: 2px; color: var(--line); font-size: 1.1rem; }
.stars .on { color: var(--s4); }
.stars .half { background: linear-gradient(90deg, var(--s4) 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.buy-box { display: flex; flex-direction: column; gap: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3rem; box-shadow: var(--shadow); }
.buy-box > div { display: flex; flex-direction: column; }
.score-row { display: flex; align-items: center; gap: 1rem; }
.big-score { padding: .3rem .8rem; }
.big-score b { font-size: 2rem; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.1rem, 3vw, 1.7rem); display: flex; flex-direction: column; gap: 1rem; }
.panel h2 { font-size: 1.35rem; }
.prose p { max-width: 62ch; color: var(--ink); }
.prose h3 { margin-top: .6rem; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .proscons { grid-template-columns: 1fr; } }
.pc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; }
.pc h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.pc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.pc li { position: relative; padding-left: 1.7rem; }
.pc li::before { position: absolute; left: 0; top: 0; font: 700 1rem var(--font-mono); }
.pros li::before { content: "+"; color: var(--good); }
.cons li::before { content: "−"; color: var(--bad); }
.pros h2 { color: var(--good); }
.cons h2 { color: var(--bad); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.spec-table, .cmp-table, .plain-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td, .cmp-table th, .cmp-table td, .plain-table th, .plain-table td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table th[scope="row"], .cmp-table th[scope="row"] { font-weight: 500; color: var(--muted); width: 38%; }
.spec-table td { font-weight: 550; }
.grp th { background: var(--surface-2); font: 600 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.notes { margin: 1rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.plain-table thead th { background: var(--surface-2); font: 600 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.hist { display: flex; flex-direction: column; gap: .5rem; }
.hist-row { display: grid; grid-template-columns: 2.2rem 1fr 3.4rem; align-items: center; gap: .7rem; font-size: .9rem; }
.hist-row .num { text-align: right; color: var(--muted); }
.hist-bar { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.hist-bar b { display: block; height: 100%; background: var(--s4); border-radius: 5px; }
.sources { margin: 0; padding-left: 1.1rem; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; border-block: 1px solid var(--line); }

/* ── Comparador ── */
.pickers { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.pick { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .92rem var(--font-body); cursor: pointer; min-height: 44px; }
.pick.on { border-color: var(--ink); }
.pick i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.pick i.plus { width: auto; height: auto; font: 700 1rem var(--font-mono); color: var(--muted); }
.cmp-top { margin-bottom: 1.2rem; }
.verdict { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.verdict li { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: .8rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.verdict li:last-child { border: 0; }
.verdict b { font-weight: 650; min-width: 0; }
@media (max-width: 520px) { .verdict li { grid-template-columns: 1fr auto; } .verdict li > span:first-child { grid-column: 1 / -1; } }
.cmp-table { min-width: 560px; }
.cmp-table thead th { vertical-align: bottom; background: var(--surface); position: sticky; top: 0; }
.col-head { display: table-cell; min-width: 170px; }
.col-head > * { display: block; }
.col-head a { font: 650 1rem var(--font-display); text-decoration: none; margin-bottom: .2rem; }
.col-head .price { font-size: 1.1rem; margin-bottom: .5rem; }
.col-head .btn { margin-bottom: .3rem; }
.dot { width: 22px; height: 5px; border-radius: 3px; margin-bottom: .5rem; }
.cmp-table th[scope="row"] { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 130px; }
.cmp-table td.best { background: color-mix(in srgb, var(--good) 12%, transparent); font-weight: 700; }
.cmp-table td em { display: block; font: 600 .62rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--good); font-style: normal; }
.cmp-table small { color: var(--muted); }
.cmp-table .total td, .cmp-table .total th { border-top: 2px solid var(--ink); font-weight: 700; }
.cmp-table .corner { min-width: 130px; }
.cmp-scroll { margin-bottom: 1rem; }

/* ── Ofertas ── */
.deals { display: flex; flex-direction: column; gap: 1rem; }
.deal { display: grid; grid-template-columns: 170px 1fr auto; gap: 1.4rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.3rem 1rem 1rem; }
.deal-media { display: block; background: var(--surface-2); border-radius: var(--r-sm); aspect-ratio: 16 / 10; overflow: hidden; max-width: 100%; }
.deal-media .art, .deal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-main { min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.deal-main h3 a { text-decoration: none; }
.deal-buy { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { font: 600 .66rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: .22rem .55rem; border-radius: 4px; }
.note-box { margin-top: 1.6rem; padding: 1.2rem 1.4rem; border-left: 3px solid var(--accent); background: var(--surface); }
.note-box p { color: var(--muted); margin-top: .4rem; max-width: 70ch; }
@media (max-width: 720px) {
  .deal { grid-template-columns: 1fr; padding: 1rem; }
  .deal-buy { align-items: stretch; }
}

/* ── Artículos ── */
.article { max-width: 820px; padding-block: clamp(1.5rem, 4vw, 3rem) 4rem; }
.article > * + * { margin-top: 1rem; }
.article h1 { margin-top: .4rem; }
.article h2 { margin-top: 2.4rem; }
.article h3 { margin-top: 1.4rem; }
.article p, .article li { max-width: 68ch; }
.article ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.article .grid { max-width: none; margin-top: 1.2rem; }
.article .table-scroll { margin-top: 1rem; }
.article .eyebrow { margin-bottom: 0; }

/* ── Bandeja de comparación ── */
.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 0 max(12px, env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.tray-in { pointer-events: auto; max-width: 760px; margin-inline: auto; background: var(--ink); color: var(--bg); border-radius: var(--r-md); padding: .7rem .8rem .7rem 1.1rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.tray-count { font-size: .9rem; white-space: nowrap; }
.tray-names { flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem; font-size: .82rem; opacity: .8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tray-names i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tray-names em { width: 6px; flex: none; }
.tray .btn-primary { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 560px) { .tray-names { display: none; } .tray-in { justify-content: space-between; } }

/* ── Pie ── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 3rem; padding-bottom: 6rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem; }
.foot h4 { font: 600 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.disclosure { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .84rem; color: var(--muted); max-width: 90ch; }
.foot > div { min-width: 0; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cat-tile, .guide-tile { transition: none; }
  .btn:hover, .cat-tile:hover, .guide-tile:hover { transform: none; }
}

/* ── Asistente ── */
.asist { display: grid; gap: 1.1rem; max-width: 820px; }
.q { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 1rem 1.2rem 1.2rem; margin: 0; }
.q legend { font: 650 1.05rem var(--font-display); display: flex; align-items: center; gap: .6rem; padding: 0 .3rem; }
.q-n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem; }
.opts { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-weight: 550; }
.opt input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.asist-error { color: var(--bad); font-weight: 600; }
.asist-result { display: grid; gap: 1.2rem; margin-top: 2.2rem; max-width: 980px; }
.asist-result:empty { display: none; }
.rec { display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem; }
.rec-top { border-color: var(--accent); box-shadow: var(--shadow); }
.rec-media img, .rec-media svg { width: 100%; height: auto; border-radius: var(--r-sm); background: #fff; }
.rec-body { display: flex; flex-direction: column; gap: .6rem; }
.rec-body h3 a { text-decoration: none; }
.match { display: flex; align-items: center; gap: .6rem; }
.match-bar { flex: 1; max-width: 260px; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.match-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.why, .warn { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.why li::marker { content: '✓  '; color: var(--good); }
.warn li::marker { content: '⚠  '; color: var(--bad); }
.rec-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-top: .3rem; }
.rec-foot .price { font-size: 1.4rem; font-weight: 700; display: block; }
.center { text-align: center; }
@media (max-width: 640px) { .rec { grid-template-columns: 1fr; } }

/* ── Precio real ── */
.price-table tr.best td { font-weight: 650; }
.spark { width: 100%; max-width: 560px; height: auto; }
.rec-body .badge { align-self: flex-start; }
.asist > .btn { justify-self: start; }

/* Tablas de las páginas legales */
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line, #ddd); vertical-align: top; }
.legal-table th { font-weight: 600; }
.legal-table code { white-space: nowrap; }
@media (max-width: 560px) { .legal-table { display: block; overflow-x: auto; } }

/* ───────── Asistente VIU (chat) ───────── */
.viu { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; font-family: var(--font-body); transition: bottom .2s; }
.viu.viu-lift { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.viu-bubble { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .7rem 1.1rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 650 .95rem var(--font-body); cursor: pointer; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); }
.viu-bubble:hover { filter: brightness(1.05); }
.viu-bubble:focus-visible, .viu button:focus-visible, .viu textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.viu.is-open .viu-bubble { display: none; }
.viu-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 60px rgba(0, 0, 0, .28); overflow: hidden; }
.viu-panel[hidden] { display: none; }
.viu-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; background: var(--ink); color: var(--bg); }
.viu-head b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.viu-head small { display: block; opacity: .75; font-size: .8rem; }
.viu-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.viu-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg); }
.viu-msg { max-width: 88%; padding: .6rem .85rem; border-radius: 14px; font-size: .93rem; line-height: 1.45; overflow-wrap: anywhere; }
.viu-msg p { margin: 0 0 .5rem; } .viu-msg p:last-child { margin: 0; }
.viu-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.viu-user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.viu-msg a { color: var(--accent); font-weight: 600; }
.viu-typing { opacity: .6; animation: viu-pulse 1.2s infinite; }
@keyframes viu-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .viu-typing { animation: none; } .viu { transition: none; } }
.viu-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 1rem 0; background: var(--bg); }
.viu-quick[hidden] { display: none; }
.viu-quick button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .4rem .75rem; font: 500 .82rem var(--font-body); cursor: pointer; }
.viu-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--surface); }
.viu-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 400 .95rem var(--font-body); }
.viu-form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; }
.viu-note { margin: 0; padding: 0 .9rem .7rem; font-size: .72rem; line-height: 1.35; color: var(--muted); background: var(--surface); }
.viu-note a { color: inherit; }
.viu .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .viu-bubble span:not(.viu-face) { display: none; }
  .viu-bubble { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .viu.is-open { left: 8px; right: 8px; bottom: 8px; }
  .viu-panel { width: 100%; height: calc(100dvh - 16px); }
}
.viu-msg ul { margin: 0 0 .5rem; padding-left: 1.1rem; } .viu-msg li { margin: .15rem 0; }
.viu-teaser { display: flex; align-items: flex-start; gap: .25rem; max-width: 260px; margin: 0 0 .6rem auto; padding: .7rem .5rem .7rem .9rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); animation: viu-in .3s ease-out; }
.viu-teaser[hidden], .viu.is-open .viu-teaser { display: none; }
.viu-teaser-open { flex: 1; border: 0; background: none; color: inherit; text-align: left; font: 600 .92rem var(--font-body); cursor: pointer; padding: 0; }
.viu-teaser-x { flex: none; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; border-radius: 50%; }
@keyframes viu-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .viu-teaser { animation: none; } }
.viu { display: flex; flex-direction: column; align-items: flex-end; }
.viu-id { display: flex; align-items: center; gap: .65rem; }
.viu-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.viu-bubble .viu-bolt { flex: none; }
.viu-bubble:hover .viu-bolt { transform: scale(1.12) rotate(-6deg); transition: transform .2s; }
@media (max-width: 560px) { .viu-bubble .viu-bolt { width: 28px; height: 28px; } }
/* Personaje Volt */
.viu-face { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-left: -.55rem; }
.viu-bubble { padding-left: .9rem; }
.viu-avatar { background: #fff; width: 42px; height: 42px; }
.viu-bubble:hover .viu-volt { transform: rotate(-8deg) scale(1.08); transition: transform .2s; }
@keyframes viu-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.viu-teaser:not([hidden]) ~ .viu-bubble .viu-volt { animation: viu-hop 1s ease-in-out 3; }
@media (prefers-reduced-motion: reduce) { .viu-teaser:not([hidden]) ~ .viu-bubble .viu-volt { animation: none; } }
@media (max-width: 560px) {
  .viu-bubble { background: #fff; border: 2px solid var(--accent); padding: 0; }
  .viu-face { margin: 0; width: 100%; height: 100%; background: none; }
  .viu-face .viu-volt { width: 36px; height: 42px; }
}
/* Volt robot (opción A) */
.viu-face { width: 44px; height: 44px; }
.viu-avatar { width: 44px; height: 44px; overflow: hidden; }
@media (max-width: 560px) { .viu-bubble { width: 62px; height: 62px; } .viu-face .viu-volt { width: 46px; height: 51px; } }

/* ───────── Accesorios ───────── */
.acc-cats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.acc-cat { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.acc-cat:hover { border-color: var(--accent); }
.acc-cat .acc-icon { color: var(--accent); }
.acc-cat b { font-family: var(--font-display); font-size: 1.1rem; }
.acc-cat span { color: var(--muted); font-size: .9rem; }
.acc-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; background: var(--surface-2); color: var(--accent); }
.acc-note { font-size: .88rem; background: var(--surface-2); border-radius: var(--r-sm); padding: .5rem .7rem; margin: 0; }
.acc-head { display: flex; gap: 1rem; align-items: center; } .acc-head .acc-icon { color: var(--accent); flex: none; }
.acc-tips { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-md); padding: 1rem 1.3rem; }
.acc-tips h2 { font-size: 1.2rem; margin-bottom: .5rem; } .acc-tips li { margin: .3rem 0; }
.acc-group { font-size: 1.15rem; margin: 1.6rem 0 .8rem; padding-left: .6rem; border-left: 4px solid var(--accent); }
.acc-group:first-of-type { margin-top: .6rem; }
.article .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .9rem; }
.article .acc-card .acc-media { aspect-ratio: 16 / 6; }
.article .acc-card .card-body { padding: .9rem; gap: .5rem; }
.article .acc-card h3 { font-size: 1rem; }

/* Fotos de categorías de accesorios */
.acc-cat.has-photo { padding: 0 0 1.1rem; overflow: hidden; }
.acc-cat.has-photo > b, .acc-cat.has-photo > span { padding: 0 1.1rem; }
.acc-cat-img { margin: 0 0 .5rem; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.acc-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.acc-cat:hover .acc-cat-img img { transform: scale(1.04); }
.acc-cat-img.no-photo { display: none; }
.acc-banner { margin: 1.2rem 0 0; border-radius: var(--r-md); overflow: hidden; position: relative; aspect-ratio: 21 / 7; background: var(--surface-2); }
.acc-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-banner figcaption { position: absolute; right: .5rem; bottom: .4rem; font-size: .72rem; color: #fff; background: rgba(0,0,0,.45); padding: .1rem .45rem; border-radius: 4px; }
.acc-banner.no-photo { display: none; }
@media (max-width: 600px) { .acc-banner { aspect-ratio: 16 / 8; } }

/* Ilustración de bici y caja de Amazon */
.card-media, .g-main.art-main { position: relative; }
.art-tag { position: absolute; right: .6rem; bottom: .5rem; font-size: .7rem; letter-spacing: .04em; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: .1rem .45rem; border-radius: 4px; }
.amz-box { margin-top: .9rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-md); display: grid; gap: .7rem; }
.amz-box p { margin: 0; }
.amz-box .btn { justify-self: start; }
.bike-card .actions { flex-direction: column; } .bike-card .actions .btn { width: 100%; flex: none; }
