/* ==========================================================================
   RutaVolt · styles.css
   Índice
     01. Tokens (colores, tipografía, espaciado)
     02. Base y reset
     03. Layout (contenedor, secciones, rejillas)
     04. Cabecera y navegación
     05. Botones, chips, insignias
     06. Hero
     07. Tarjeta de producto
     08. Bloques de la home (categorías, ranking, método, guías)
     09. Ficha de producto (galería, resumen, specs, radar, editorial, reseñas)
     10. Comparador
     11. Páginas de categoría y filtros
     12. Guías y páginas de texto
     13. Bandeja de comparación flotante
     14. Pie de página y aviso de afiliados
     15. Utilidades y animaciones
     16. Responsive
   ========================================================================== */

/* 01. Tokens ------------------------------------------------------------- */
:root {
  --ink: #0b0f14;
  --ink-2: #1a2029;
  --ink-soft: #4a5463;
  --muted: #6b7482;
  --line: #e4e2dc;
  --line-2: #d6d3cb;
  --paper: #f6f5f1;
  --card: #ffffff;
  --accent: #c6f432;          /* lima eléctrico */
  --accent-ink: #0b0f14;
  --accent-deep: #6f9a00;
  --blue: #3b5bfd;
  --orange: #e8590c;
  --green: #0ca678;
  --purple: #ae3ec9;
  --red: #e03131;
  --star: #f59f00;

  --s1: #3b5bfd;  --s2: #e8590c;  --s3: #0ca678;  --s4: #ae3ec9;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(11,15,20,.06), 0 1px 1px rgba(11,15,20,.04);
  --shadow: 0 10px 30px -12px rgba(11,15,20,.18), 0 2px 6px rgba(11,15,20,.05);
  --shadow-lg: 0 30px 60px -20px rgba(11,15,20,.28);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* 02. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }
a { color: inherit; text-decoration-color: rgba(11,15,20,.25); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; }

/* 03. Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { color: var(--ink-soft); max-width: 60ch; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent-deep); border-radius: 2px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dark { background: var(--ink); color: #e9ecef; }
.dark .eyebrow { color: #9aa3ad; }
.dark .eyebrow::before { background: var(--accent); }
.breadcrumbs { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; opacity: .5; }

/* 04. Cabecera ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,245,241,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem/1 var(--font-display); letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.brand b { color: var(--accent-deep); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(11,15,20,.06); }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { background: var(--ink); color: #fff; padding: 10px 16px; }
.nav-links a.nav-cta svg { width: 16px; height: 16px; }
.nav-count { display: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; align-items: center; justify-content: center; }
.nav-count.on { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.disclosure-bar { background: var(--ink); color: #c9ced4; font-size: .78rem; text-align: center; padding: 7px var(--gutter); }
.disclosure-bar a { color: var(--accent); }

/* 05. Botones y chips ----------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; font: 600 .98rem/1 var(--font-body); text-decoration: none; transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s; white-space: nowrap; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-buy { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -10px rgba(111,154,0,.7); }
.btn-buy:hover { background: #b7e81f; box-shadow: 0 12px 26px -10px rgba(111,154,0,.85); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 9px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-compare[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(11,15,20,.06); color: var(--ink-soft); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.badge svg { width: 13px; height: 13px; }
.badge-accent { background: var(--accent); color: var(--accent-ink); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-sale { background: var(--red); color: #fff; }
.badge-sample { background: #fff4e6; color: #a8530a; border: 1px dashed #f0b67f; }
.stars { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.stars-row { display: inline-flex; gap: 1px; color: var(--star); }
.stars-row svg { width: 15px; height: 15px; }

/* 06. Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(198,244,50,.22), transparent 70%); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000 20%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 85%); z-index: -2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { color: #b8c0c9; font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 52ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 44px; flex-wrap: wrap; }
.hero-stat strong { display: block; font: 700 clamp(1.6rem, 3vw, 2.2rem)/1 var(--font-display); color: #fff; }
.hero-stat span { font-size: .85rem; color: #8e98a3; }
.hero-visual { position: relative; }
.hero-card { background: linear-gradient(160deg, #1b222c, #10151b); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-lg); }
.hero-card-img { position: relative; background: #fff; border-radius: var(--r-lg); aspect-ratio: 4/3; overflow: hidden; }
.hero-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.hero-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; }
.hero-card-meta h3 { color: #fff; margin: 0 0 4px; font-size: 1.05rem; }
.hero-card-meta p { margin: 0; color: #8e98a3; font-size: .85rem; }
.hero-meter { margin-top: 16px; display: grid; gap: 10px; }
.meter { display: grid; grid-template-columns: 86px 1fr 52px; align-items: center; gap: 10px; font-size: .8rem; color: #9aa3ad; }
.meter-track { height: 6px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--accent); border-radius: 99px; transform-origin: left; }
.meter b { color: #fff; text-align: right; font-weight: 600; }
.hero-float { position: absolute; left: -22px; top: 36px; background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-weight: 700; font-family: var(--font-display); }
.hero-float small { display: block; font: 500 .72rem/1.2 var(--font-body); opacity: .75; }

/* 07. Tarjeta de producto ------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-media { position: relative; aspect-ratio: 4/3; background: #fff; display: block; border-bottom: 1px solid var(--line); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .4s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.card-brand { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.25; margin: 0; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 2px; }
.card-spec { background: var(--paper); border-radius: 10px; padding: 8px 3px; text-align: center; min-width: 0; }
.card-spec strong { display: block; font: 700 .92rem/1.1 var(--font-display); white-space: nowrap; }
.card-spec span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.card-foot .btn, .card .btn-compare { position: relative; z-index: 2; }
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price-now { font: 700 1.3rem/1.1 var(--font-display); }
.price-old { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.price-na { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.price-note { font-size: .72rem; color: var(--muted); }
.card .btn-compare { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; padding: 0; border-radius: 12px; background: rgba(255,255,255,.92); border: 1px solid var(--line); color: var(--ink); }
.card .btn-compare svg { width: 18px; height: 18px; }
.card .btn-compare[aria-pressed="true"] { background: var(--ink); color: var(--accent); border-color: var(--ink); }

/* 08. Bloques home -------------------------------------------------------- */
.cat-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); text-decoration: none; min-height: 210px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); }
.cat-ico svg { width: 26px; height: 26px; }
.cat-card h3 { margin: 6px 0 0; }
.cat-card p { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.cat-card .cat-n { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 6px; }
.cat-card .cat-n svg { width: 15px; height: 15px; }
.rank { display: grid; gap: 14px; }
.rank-row { display: grid; grid-template-columns: 34px minmax(140px, 260px) 1fr 80px; align-items: center; gap: 16px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .2s; }
.rank-row:hover { border-color: var(--ink); }
.rank-pos { font: 700 1.1rem/1 var(--font-display); color: var(--muted); }
.rank-name { font-weight: 600; line-height: 1.25; font-size: .95rem; }
.rank-name small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.rank-bar { height: 12px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ink), #39424f); border-radius: 99px; }
.rank-row:first-child .rank-bar i { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.rank-val { font: 700 1.05rem/1 var(--font-display); text-align: right; }
.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.method-item { padding: 24px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.method-item .num { font: 700 .8rem/1 var(--font-display); color: var(--accent); letter-spacing: .1em; }
.method-item h3 { color: #fff; margin: 12px 0 8px; }
.method-item p { color: #a3acb6; font-size: .93rem; margin: 0; }
.guide-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card .chip { align-self: flex-start; }
.guide-card h3 { font-size: 1.3rem; margin: 0; }
.guide-card p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.guide-card .more { margin-top: auto; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.guide-card .more svg { width: 16px; height: 16px; }
.cta-band { border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px); background: var(--ink); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(198,244,50,.3), transparent); }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #a3acb6; margin: 0; }
.cta-band .btn { position: relative; z-index: 1; }

/* 09. Ficha ---------------------------------------------------------------- */
.product-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); padding: 28px 0 56px; align-items: start; }
.gallery { position: sticky; top: 88px; }
.gallery-main { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); aspect-ratio: 1/1; overflow: hidden; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav.prev { left: 14px; } .gallery-nav.next { right: 14px; }
.gallery-count { position: absolute; bottom: 14px; right: 14px; background: rgba(11,15,20,.75); color: #fff; font-size: .78rem; padding: 4px 10px; border-radius: 99px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 72px; height: 72px; border-radius: 12px; border: 2px solid transparent; background: #fff; padding: 4px; outline-offset: 0; box-shadow: inset 0 0 0 1px var(--line); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.summary .card-brand { margin-bottom: 8px; display: block; }
.summary h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.summary-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 18px; }
.summary-lead { color: var(--ink-soft); font-size: 1.05rem; }
.key-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.key-spec { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.key-spec svg { width: 20px; height: 20px; color: var(--accent-deep); }
.key-spec strong { display: block; font: 700 1.3rem/1.1 var(--font-display); margin-top: 8px; }
.key-spec span { font-size: .76rem; color: var(--muted); }
.buy-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; box-shadow: var(--shadow-sm); }
.buy-box-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.buy-box .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-box .btns .btn { flex: 1 1 180px; }
.verdict { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--accent-deep); background: #fbfdf2; border-radius: 0 var(--r) var(--r) 0; font-weight: 500; }
.verdict small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: #fff9db; border: 1px solid #ffe066; color: #5c4a00; font-size: .9rem; }
.notice svg { width: 20px; height: 20px; margin-top: 2px; }
.notice p { margin: 0; }
.tabs-nav { position: sticky; top: 68px; z-index: 20; background: rgba(246,245,241,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.tabs-nav ul::-webkit-scrollbar { display: none; }
.tabs-nav a { display: block; padding: 14px 14px; white-space: nowrap; text-decoration: none; font-weight: 500; color: var(--ink-soft); border-bottom: 2px solid transparent; font-size: .93rem; }
.tabs-nav a:hover, .tabs-nav a.active { color: var(--ink); border-bottom-color: var(--ink); }
.p-section { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.p-section:last-of-type { border-bottom: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.radar-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; }
.radar-svg { width: 100%; height: auto; max-width: 460px; margin: 0 auto; display: block; overflow: visible; }
.radar-svg .grid-ring { fill: none; stroke: var(--line); }
.radar-svg .grid-axis { stroke: var(--line); }
.radar-svg .lbl { font: 600 12px var(--font-body); fill: var(--ink-soft); }
.radar-svg .val { font: 700 11px var(--font-display); fill: var(--ink); }
.radar-svg .shape { fill-opacity: .18; stroke-width: 2.5; stroke-linejoin: round; }
.radar-svg .dot { stroke: #fff; stroke-width: 2; }
.radar-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.scores { display: grid; gap: 14px; }
.score-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 14px; align-items: center; }
.score-row span { font-weight: 500; font-size: .93rem; }
.score-track { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.score-track i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.score-row b { font: 700 1rem var(--font-display); text-align: right; }
.score-total { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--r-lg); background: var(--ink); color: #fff; margin-bottom: 20px; }
.score-total .big { font: 700 2.6rem/1 var(--font-display); color: var(--accent); }
.score-total p { margin: 0; color: #a3acb6; font-size: .9rem; }
.score-total strong { color: #fff; display: block; font-size: 1.05rem; }
.spec-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.spec-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec-group h3 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 18px; font-size: 1rem; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.spec-group h3 svg { width: 18px; height: 18px; color: var(--accent-deep); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table th, .spec-table td { padding: 11px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { font-weight: 500; color: var(--ink-soft); width: 52%; }
.spec-table td { font-weight: 600; }
.spec-table .na { color: var(--muted); font-weight: 400; }
.src-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.prose { font-size: 1.05rem; color: var(--ink-2); max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.2em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
.pc-col { border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--line); background: var(--card); }
.pc-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.pc-col h3 svg, .pc-col li svg { width: 18px; height: 18px; flex: none; }
.pc-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pc-col li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.pc-col li svg { margin-top: 3px; }
.pc-pros h3 svg, .pc-pros li svg { color: var(--green); }
.pc-cons h3 svg, .pc-cons li svg { color: var(--red); }
.ideal { margin-top: 18px; display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: var(--ink); color: #e9ecef; }
.ideal svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.ideal h3 { color: #fff; margin: 0 0 6px; font-size: 1.05rem; }
.ideal p { margin: 0; color: #b8c0c9; }
.reviews-head { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; margin-bottom: 26px; }
.rating-big { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; text-align: center; }
.rating-big strong { font: 700 3rem/1 var(--font-display); display: block; }
.rating-big .stars-row svg { width: 20px; height: 20px; }
.rating-big p { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.review-summary { background: #fbfdf2; border: 1px solid #e3efbd; border-radius: var(--r-lg); padding: 22px; }
.review-summary h3 { font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.review-summary h3 svg { width: 18px; height: 18px; color: var(--accent-deep); }
.review-summary p { margin: 0; color: var(--ink-2); }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-author { font-weight: 600; }
.review h4 { margin: 0; font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.review p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.review small { color: var(--muted); font-size: .78rem; display: inline-flex; gap: 6px; align-items: center; }
.review-verified svg { width: 14px; height: 14px; color: var(--green); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px var(--gutter); display: none; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(100%); transition: transform .3s var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy .name { font-weight: 600; font-size: .9rem; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 10. Comparador ----------------------------------------------------------- */
.cmp-hero { padding: 48px 0 24px; }
.cmp-hero p { color: var(--ink-soft); max-width: 62ch; font-size: 1.05rem; }
.picker { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-sm); }
.picker-top { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.picker-search { position: relative; flex: 1 1 280px; }
.picker-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.picker-search input { width: 100%; padding: 13px 14px 13px 42px; border: 1px solid var(--line-2); border-radius: 999px; font: inherit; background: var(--paper); }
.picker-search input:focus { outline: none; border-color: var(--ink); background: #fff; }
.picker-hint { font-size: .88rem; color: var(--muted); }
.picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pick { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; text-align: left; transition: border-color .15s, background .15s; }
.pick:hover { border-color: var(--ink-soft); }
.pick[aria-pressed="true"] { border-color: var(--ink); background: #fbfdf2; }
.pick img { width: 56px; height: 56px; object-fit: contain; }
.pick-name { font-size: .88rem; font-weight: 600; line-height: 1.25; }
.pick-name small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.pick-check { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--accent); display: none; place-items: center; }
.pick-check svg { width: 14px; height: 14px; }
.pick[aria-pressed="true"] .pick-check { display: grid; }
.cmp-empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.cmp-empty svg { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--line-2); }
.cmp-results { margin-top: 36px; }
.cmp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 28px; }
.legend { display: grid; gap: 10px; }
.legend-item { display: grid; grid-template-columns: 14px 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.legend-item i { width: 14px; height: 14px; border-radius: 4px; }
.legend-item img { width: 56px; height: 44px; object-fit: contain; }
.legend-item strong { font-size: .92rem; line-height: 1.25; }
.legend-item .total { font: 700 1.2rem var(--font-display); }
.winner-box { margin-top: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--ink); color: #c9ced4; font-size: .92rem; }
.winner-box strong { color: var(--accent); }
.winner-box ul { margin: 8px 0 0; padding-left: 18px; }
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; font-size: .93rem; }
.cmp-table th, .cmp-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp-table thead th { position: sticky; top: 0; background: #fff; z-index: 2; vertical-align: top; }
.cmp-table tbody th { text-align: left; font-weight: 500; color: var(--ink-soft); position: sticky; left: 0; background: #fff; z-index: 1; min-width: 150px; box-shadow: 1px 0 0 var(--line); }
.cmp-table thead th:first-child { left: 0; z-index: 3; box-shadow: 1px 0 0 var(--line); }
.cmp-table .grp th { background: #fbfaf7; font: 700 .76rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 12px 16px; text-align: left; }
.cmp-table td.best { background: #f4fbdc; font-weight: 700; }
.cmp-table td.best::after { content: " ★"; color: var(--accent-deep); font-size: .8em; }
.cmp-table .na { color: var(--muted); }
.cmp-head { display: grid; justify-items: center; gap: 8px; min-width: 150px; }
.cmp-head img { width: 110px; height: 90px; object-fit: contain; }
.cmp-head a.name { font-weight: 600; text-decoration: none; line-height: 1.25; font-size: .9rem; }
.cmp-head .bar { width: 36px; height: 4px; border-radius: 4px; }
.cmp-head .rm { background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; }

/* 11. Categoría y filtros --------------------------------------------------- */
.page-hero { padding: 40px 0 36px; }
.page-hero p { color: var(--ink-soft); max-width: 68ch; font-size: 1.06rem; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 24px; }
.filters label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.filters select { padding: 9px 34px 9px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b0f14' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font: inherit; font-size: .9rem; }
.filters .fchip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .88rem; font-weight: 500; }
.filters .fchip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters .count { margin-left: auto; font-size: .88rem; color: var(--muted); }
.empty-state { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-soft); background: rgba(255,255,255,.5); }
.empty-state h3 { margin-bottom: 6px; }

/* 12. Guías y páginas de texto ---------------------------------------------- */
.article-hero { padding: 40px 0 28px; max-width: 820px; }
.article-hero p.lead { font-size: 1.15rem; color: var(--ink-soft); }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .88rem; margin-top: 10px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; padding-bottom: 72px; }
.toc { position: sticky; top: 92px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; font-size: .9rem; }
.toc h4 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--ink); }
.pick-box { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px; margin: 24px 0; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); align-items: center; }
.pick-box .media { position: relative; background: #fff; border-radius: var(--r); aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); display: block; }
.pick-box .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pick-box h3 { margin: 6px 0 8px; font-size: 1.3rem; }
.pick-box p { font-size: .97rem; color: var(--ink-soft); margin-bottom: 12px; }
.pick-box .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pick-box .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--font-display); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }
.legal { max-width: 780px; padding: 40px 0 80px; }

/* 13. Bandeja de comparación ------------------------------------------------ */
.tray { position: fixed; left: 50%; bottom: 18px; z-index: 60; transform: translate(-50%, 160%); transition: transform .35s var(--ease); background: var(--ink); color: #fff; border-radius: 20px; padding: 12px 12px 12px 18px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-lg); max-width: calc(100% - 24px); }
.tray.show { transform: translate(-50%, 0); }
.tray:not(.show) { visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
.tray-label { font-size: .85rem; color: #a3acb6; white-space: nowrap; }
.tray-label b { color: #fff; }
.tray-slots { display: flex; gap: 10px; padding: 8px 8px 0 0; }
.tray-slot { position: relative; }
.tray-thumb { width: 46px; height: 46px; border-radius: 10px; background: #fff; overflow: hidden; }
.tray-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.tray-rm { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 12px; line-height: 1; display: grid; place-items: center; padding: 0; }
.tray .btn { padding: 11px 16px; }
.toast { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -20px); opacity: 0; transition: all .3s var(--ease); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .9rem; z-index: 70; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 14. Pie ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #9aa3ad; padding: 64px 0 28px; margin-top: 40px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: var(--accent); }
.site-footer .brand-mark { background: var(--accent); color: var(--ink); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9ced4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-disclosure { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; line-height: 1.6; color: #7d8792; }
.footer-disclosure p { margin: 0 0 8px; }

/* 15. Utilidades y animaciones ---------------------------------------------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card, .card-media img, .cat-card, .guide-card { transition: none; }
}

/* 16. Responsive ------------------------------------------------------------ */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .hero-float { left: auto; right: 12px; top: -16px; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .nav-links a.nav-cta { justify-content: center; margin-top: 6px; }
  .product-top { grid-template-columns: 1fr; padding-top: 16px; }
  .gallery { position: static; }
  .two-col, .cmp-top, .spec-groups { grid-template-columns: 1fr; }
  .reviews-head { grid-template-columns: 1fr; }
  .sticky-buy { display: flex; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .key-specs { grid-template-columns: repeat(2, 1fr); }
  .pc { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 26px 1fr 64px; gap: 10px; }
  .rank-bar { grid-column: 2 / 4; grid-row: 2; }
  .pick-box { grid-template-columns: 1fr; }
  .pick-box .media { max-width: 220px; }
  .score-row { grid-template-columns: 104px 1fr 36px; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tray { left: 12px; right: 12px; transform: translateY(160%); max-width: none; padding: 10px 10px 10px 14px; gap: 10px; }
  .tray.show { transform: none; }
  .tray-label { display: none; }
  .tray .btn { margin-left: auto; }
  .gallery-thumbs button { flex-basis: 60px; height: 60px; }
  .legend-item { grid-template-columns: 12px 44px 1fr auto; gap: 8px; }
  .legend-item img { width: 44px; }
  .hero-stats { gap: 20px 28px; }
  .section-head { margin-bottom: 22px; }
}
