/* =============================================================
   Herramientas Cargadas — hoja de estilos
   Concepto: banco de taller. Fondo cemento claro, tinta grafito,
   el color de cada marca como código y barras de carga tipo LED.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  color-scheme: light;
  --bg: #eceeed;
  --surface: #ffffff;
  --surface-2: #f6f7f6;
  --ink: #14181b;
  --ink-2: #2a3136;
  --muted: #59636a;
  --line: #d5dadb;
  --line-2: #e4e7e8;
  --accent: #2643e0;
  --accent-ink: #ffffff;
  --volt: #e4ff4f;
  --ok: #1c7547;
  --ok-bg: #e3f2e9;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --amazon: #ffb000;
  --amazon-ink: #14181b;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --r: 10px;
  --r-sm: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 0 rgba(20, 24, 27, .04), 0 8px 24px -16px rgba(20, 24, 27, .25);
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 750; font-stretch: 108%; }
h3 { font-size: 1.12rem; font-weight: 700; }
::selection { background: var(--volt); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
table { border-collapse: collapse; width: 100%; }
.ico { flex: none; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--volt); color: var(--ink); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.centro { text-align: center; margin-top: 1.2rem; }
.eyebrow { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 64ch; }
.lede-sm { color: var(--ink-2); max-width: 70ch; }
.fuente { font-size: .82rem; color: var(--muted); margin-top: .8rem; }
.nota-precio { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.seccion { margin-top: clamp(40px, 6vw, 72px); }
.sec-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.sec-cab + .rejilla + .sec-cab { margin-top: 2.4rem; }

/* =============================================================
   4. Componentes
   ============================================================= */
/* Botones */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.15rem; border-radius: var(--r-sm);
  font-weight: 650; font-size: .95rem; text-decoration: none; line-height: 1.15;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s;
}
.btn { background: var(--ink); color: #fff; }
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost[aria-pressed="true"] { background: var(--volt); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn-amazon { background: var(--amazon); color: var(--amazon-ink); }
.btn-amazon:hover { background: #ffc233; color: var(--amazon-ink); }
.btn-sm { min-height: 38px; padding: .45rem .8rem; font-size: .86rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1.02rem; }
.btn-ancho { width: 100%; }
.btn-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; color: var(--accent); text-decoration: none; }
.btn-link:hover { text-decoration: underline; }

/* Chips */
.chip-marca {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.chip-marca::before { content: ""; width: .7rem; height: .7rem; border-radius: 2px; background: var(--c); }
.tipo, .vendidos { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.vendidos { color: var(--ok); }
.chip-btn {
  padding: .45rem .85rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.chip-btn.activo { background: var(--ink); color: #fff; box-shadow: none; }

/* Estrellas */
.stars { display: inline-flex; gap: 2px; }
.st { width: 14px; height: 14px; background: var(--line);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.st.on { background: #f2a900; }
.st.half { background: linear-gradient(90deg, #f2a900 50%, var(--line) 50%); }

/* Precio */
.precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; }
.precio-act { font-family: var(--display); font-weight: 800; font-size: 1.35rem; font-stretch: 108%; font-variant-numeric: tabular-nums; }
.precio-lg .precio-act { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); }
.precio-pvp { color: var(--muted); font-size: .9rem; }
.dto { background: var(--bad); color: #fff; font-weight: 700; font-size: .78rem; padding: .1rem .4rem; border-radius: 4px; }

/* Barra LED */
.led { display: inline-flex; gap: 3px; }
.led i { width: 10px; height: 14px; border-radius: 2px; background: var(--line); }
.led i.on { background: var(--c); }

/* Tarjeta de producto */
.rejilla { display: grid; gap: 18px; grid-template-columns: 1fr; }
.tarjeta {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.tarjeta::before { content: ""; height: 4px; background: var(--c); }
.tarjeta:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tarjeta-img { position: relative; display: block; aspect-ratio: 1; background: #fff; padding: 14px; }
.tarjeta-img img { width: 100%; height: 100%; object-fit: contain; }
.badge-dto { position: absolute; top: 10px; left: 10px; background: var(--bad); color: #fff; font-weight: 700; font-size: .78rem; padding: .15rem .45rem; border-radius: 4px; }
.tarjeta-cuerpo { display: flex; flex-direction: column; gap: .45rem; padding: 14px 16px 16px; border-top: 1px solid var(--line-2); flex: 1; }
.tarjeta-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.tarjeta h3 { font-size: 1.05rem; }
.tarjeta h3 a { text-decoration: none; }
.tarjeta h3 a:hover { color: var(--accent); }
.tarjeta-dest { font-size: .86rem; color: var(--ink-2); }
.tarjeta-val { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.tarjeta-nota { font-size: .85rem; color: var(--muted); }
.tarjeta-nota b { color: var(--ink); font-family: var(--mono); }
.tarjeta-ahorro { font-size: .85rem; font-weight: 650; color: var(--ok); }
.tarjeta-acc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.tarjeta-acc .btn-amazon { flex: 1 1 auto; }

/* Bloques */
.bloque { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); }
.bloque > h2 { margin-bottom: 1rem; }
.bloque > p + p { margin-top: .9rem; }

/* Pros / contras */
.pc { display: grid; gap: 18px; grid-template-columns: 1fr; background: none; border: 0; padding: 0; }
.pc-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.pc-col h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.pc-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.pc-col li { display: flex; gap: .55rem; align-items: flex-start; }
.pc-col li svg, .pc-col h3 svg { width: 18px; height: 18px; margin-top: .2rem; }
.pc-pro h3, .pc-pro li svg { color: var(--ok); }
.pc-contra h3, .pc-contra li svg { color: var(--bad); }
.pc-pro { border-top: 4px solid var(--ok); }
.pc-contra { border-top: 4px solid var(--bad); }

/* Tablas comparativas */
.tabla-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cmp { min-width: 640px; font-size: .92rem; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--surface-2); border-bottom: 2px solid var(--line); vertical-align: bottom; }
.cmp thead th[style] { box-shadow: inset 0 -3px 0 var(--c); }
.cmp thead th small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; margin-top: .2rem; }
.cmp thead th a { text-decoration: none; }
.cmp tbody th { font-weight: 600; white-space: nowrap; color: var(--ink-2); position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cmp tbody th svg { display: inline-block; vertical-align: -4px; margin-right: .3rem; width: 18px; height: 18px; color: var(--muted); }
.cmp td a { display: block; text-decoration: none; font-weight: 550; }
.cmp td a:hover { color: var(--accent); }
.cmp td b { display: block; font-family: var(--mono); font-size: .88rem; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.cmp td.mejor { background: var(--ok-bg); }
.cmp td.mejor::after { content: "Mejor"; display: block; margin-top: .3rem; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ok); }
.fila-total td.mejor::after { content: none; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.fila-total th, .fila-total td { background: var(--surface-2); }
.fila-total td b { font-family: var(--display); font-size: 1.2rem; font-weight: 800; }
.fila-total td span { display: block; font-size: .78rem; color: var(--muted); }
.fila-total td.mejor { background: var(--ok-bg); }
.fila-total td.mejor span { color: var(--ok); font-weight: 650; }
.cmp-guia td { color: var(--ink-2); }
.cmp .cmp-acc td { background: var(--surface-2); }
.cmp .cmp-acc .btn { width: 100%; }

/* Tabla de especificaciones */
.specs { font-size: .93rem; }
.specs th, .specs td { padding: 10px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.specs th { width: 46%; color: var(--muted); font-weight: 500; padding-right: 1rem; }
.specs td { font-weight: 600; font-variant-numeric: tabular-nums; }
.specs .grupo th { padding-top: 1.3rem; color: var(--ink); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--ink); width: auto; }
.specs tr.grupo:first-child th { padding-top: 0; }

/* Radar */
.radar-wrap { display: grid; place-items: center; }
.radar { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-label { font-family: var(--sans); font-size: 12.5px; font-weight: 600; fill: var(--ink-2); }
.radar-val { font-family: var(--mono); font-size: 12px; font-weight: 600; fill: var(--muted); }
.radar-area { fill-opacity: .16; stroke-width: 2.2; stroke-linejoin: round; }
.radar-dot { stroke: #fff; stroke-width: 1.5; }
.leyenda { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-top: .6rem; font-weight: 600; font-size: .9rem; }
.leyenda li { display: inline-flex; align-items: center; gap: .4rem; }
.leyenda li::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--c); }

/* Avisos */
.aviso-bateria, .aviso-compat {
  display: flex; gap: .6rem; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm);
  background: #fff6db; border: 1px solid #f0d58a; font-size: .9rem;
}
.aviso-bateria svg, .aviso-compat svg { width: 18px; height: 18px; color: #8a5a00; margin-top: .15rem; }
.aviso-bateria a { font-weight: 650; }
.aviso-compat { margin-top: .9rem; }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 650; list-style-position: inside; }
.faq details[open] summary { border-bottom: 1px solid var(--line-2); }
.faq details p { padding: 12px 16px 16px; color: var(--ink-2); }

.lista { padding-left: 1.2rem; display: grid; gap: .45rem; }

/* =============================================================
   5. Estructura: cabecera, migas, pie, bandeja
   ============================================================= */
.aviso-afiliados { background: var(--ink-2); color: #c9d0d4; font-size: .74rem; text-align: center; padding: 6px var(--gutter); }
.cabecera { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.cabecera-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-pack {
  position: relative; flex: none; display: inline-grid; place-items: center; width: 38px; height: 26px;
  border-radius: 6px; background: var(--volt); color: var(--ink);
}
.logo-pack svg { width: 16px; height: 16px; }
.logo-pack::after { content: ""; position: absolute; right: -5px; top: 8px; width: 4px; height: 10px; border-radius: 0 2px 2px 0; background: var(--volt); }
.logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo-nom { font-family: var(--display); font-weight: 700; font-size: 1.05rem; font-stretch: 108%; letter-spacing: -0.01em; white-space: nowrap; }
.logo-nom b { color: var(--volt); font-weight: 900; margin-left: .15rem; }
.logo-sub { font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; color: #9aa4a9; margin-top: .2rem; white-space: nowrap; }
.hero-lema { font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: var(--volt); margin-bottom: 1rem; }
.pie-lema { font-family: var(--display); font-weight: 700; color: #fff; margin-bottom: .5rem; }
.nav-toggle { display: inline-flex; align-items: center; gap: .4rem; color: #fff; padding: .5rem; font-weight: 600; font-size: .9rem; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav {
  position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column;
  background: var(--ink); padding: .5rem var(--gutter) 1rem; border-top: 1px solid #2c3439;
}
.nav.abierto { display: flex; }
.nav a { color: #d9dfe2; text-decoration: none; padding: .7rem 0; font-weight: 550; border-bottom: 1px solid #252c31; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--volt); }

.migas { font-size: .82rem; color: var(--muted); padding-top: 18px; padding-bottom: 4px; }
.migas a { text-decoration: none; }
.migas a:hover { color: var(--accent); text-decoration: underline; }
.migas span { margin-inline: .25rem; }
.migas [aria-current] { margin: 0; color: var(--ink-2); }

.pie { margin-top: clamp(56px, 8vw, 96px); background: var(--ink); color: #c4ccd0; padding-block: 48px 28px; font-size: .9rem; }
.pie-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.pie h2 { font-family: var(--mono); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: .7rem; }
.pie-grid a { display: block; text-decoration: none; padding: .2rem 0; }
.pie-grid a:hover { color: var(--volt); }
.pie .logo { color: #fff; margin-bottom: .8rem; }
.pie-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid #2c3439; font-size: .8rem; display: grid; gap: .5rem; color: #9aa4a9; }
.pie-legal strong { color: #e1e6e8; }

.bandeja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); color: #fff; box-shadow: 0 -8px 24px rgba(0,0,0,.18); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bandeja-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.bandeja-txt { font-weight: 600; font-size: .92rem; }
.bandeja-acc { display: flex; align-items: center; gap: .8rem; }
.bandeja .btn { background: var(--volt); color: var(--ink); }
.bandeja .btn-link { color: #cfd6da; }

/* =============================================================
   6. Secciones
   ============================================================= */
/* Hero */
.hero { background: var(--ink); color: #fff; padding-block: clamp(40px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(#20272c 1px, transparent 1px), linear-gradient(90deg, #20272c 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-grid { position: relative; display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
/* Titular en dos líneas fijas: el tamaño se calcula sobre el ancho de su columna (cqi) para que "¿Con qué marca" siempre quepa */
.hero-txt { container-type: inline-size; min-width: 0; }
.hero h1 { font-size: clamp(1.9rem, 10.3cqi, 5rem); font-stretch: 122%; line-height: .98; letter-spacing: -0.025em; margin: .7rem 0 1.1rem; text-wrap: nowrap; }
.hero-tit span { display: block; white-space: nowrap; }
.hero .eyebrow { color: var(--volt); }
.hero .lede { color: #c9d0d4; }
.hero-acc { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero .btn { background: var(--volt); color: var(--ink); }
.hero .btn:hover { background: #fff; }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-panel { background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.panel-cab { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; padding-bottom: .8rem; border-bottom: 2px solid var(--ink); margin-bottom: .4rem; }
.panel-cab span { font-family: var(--display); font-weight: 800; font-size: 1.1rem; font-stretch: 110%; }
.panel-cab small { color: var(--muted); font-size: .78rem; }
.ranking { list-style: none; padding: 0; }
.ranking a { display: grid; grid-template-columns: 26px 1fr auto; grid-template-areas: "pos marca precio" "pos barra barra"; gap: .3rem .7rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.ranking li:last-child a { border-bottom: 0; }
.rk-pos { grid-area: pos; font-family: var(--mono); font-weight: 600; color: var(--muted); }
.rk-marca { grid-area: marca; font-weight: 750; }
.rk-marca small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; }
.rk-barra { grid-area: barra; height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.rk-barra i { display: block; height: 100%; background: var(--c); border-radius: 99px; }
.ranking b { grid-area: precio; font-family: var(--display); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ranking a:hover .rk-marca { color: var(--accent); }

/* Claves */
.claves { display: grid; gap: 18px; grid-template-columns: 1fr; }
.clave { border-top: 3px solid var(--ink); padding-top: 1rem; }
.clave-n { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.clave h2 { font-size: 1.25rem; margin: .4rem 0 .5rem; }
.clave p { color: var(--ink-2); }

/* Tarjetas de marca y categoría */
.marca-card {
  position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 0 20px 20px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.marca-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mc-band { height: 8px; margin: 0 -20px 14px; background: var(--c); }
.mc-nombre { font-family: var(--display); font-weight: 800; font-size: 1.6rem; font-stretch: 115%; line-height: 1; }
.mc-sis { font-family: var(--mono); font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mc-lema { color: var(--ink-2); font-size: .92rem; margin-top: .3rem; }
.mc-datos { display: flex; gap: 1.4rem; margin-top: auto; padding-top: .9rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.mc-datos small { display: block; font-weight: 400; font-size: .74rem; color: var(--muted); }
.marca-card-lg .mc-nombre { font-size: 2rem; }

.cat-card {
  display: flex; flex-direction: column; gap: .3rem; padding: 22px; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); transition: transform .25s var(--ease-out), box-shadow .25s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: var(--volt); margin-bottom: .5rem; }
.cat-ico svg { width: 26px; height: 26px; }
.cat-tit { font-family: var(--display); font-weight: 800; font-size: 1.25rem; font-stretch: 110%; }
.cat-sub { color: var(--muted); font-size: .88rem; }

.guias-strip { display: grid; gap: 18px; grid-template-columns: 1fr; }
.guias-strip a {
  display: flex; flex-direction: column; gap: .35rem; padding: 22px; text-decoration: none; border-radius: var(--r);
  background: var(--ink); color: #fff; transition: background-color .2s;
}
.guias-strip a:hover { background: var(--accent); }
.guias-strip .eyebrow { color: var(--volt); }
.guias-strip strong { font-family: var(--display); font-size: 1.3rem; font-stretch: 110%; line-height: 1.15; }
.guias-strip span:last-child { color: #c9d0d4; font-size: .92rem; }

.confianza { border-left: 4px solid var(--volt); padding-left: 1.2rem; }
.confianza h2 { margin-bottom: .6rem; }
.confianza p { color: var(--ink-2); max-width: 75ch; margin-bottom: .6rem; }

/* Cabecera de página */
.cab-pagina { padding-top: clamp(28px, 4vw, 48px); display: grid; gap: .8rem; }
.cab-pagina h1 { max-width: 22ch; }

/* Ficha */
.ficha { padding-top: 12px; }
.ficha-top { display: grid; gap: 28px; grid-template-columns: 1fr; }
.galeria-main { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; place-items: center; }
.galeria-main img { width: 100%; height: 100%; object-fit: contain; }
.galeria-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px; }
.thumb { flex: none; width: 70px; height: 70px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.activa { box-shadow: 0 0 0 2px var(--c); border-color: transparent; }
.ficha-resumen { display: flex; flex-direction: column; gap: .8rem; }
.ficha-resumen h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.ficha-sub { color: var(--muted); font-size: .88rem; }
.ficha-desc { color: var(--ink-2); font-size: 1.05rem; }
.ficha-acc { display: flex; flex-wrap: wrap; gap: .6rem; }
.ficha-acc .btn-amazon { flex: 1 1 220px; }
.ficha-nota { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; padding: 14px 16px; background: var(--ink); color: #fff; border-radius: var(--r); }
.ficha-nota-num { font-family: var(--display); font-weight: 900; font-size: 2.4rem; font-stretch: 115%; color: var(--volt); line-height: 1; }
.ficha-nota small { color: #9aa4a9; }
.ficha-dest { margin-left: auto; font-weight: 700; padding: .25rem .6rem; border-radius: 4px; background: var(--c); color: #fff; font-size: .82rem; }
.ficha-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 36px; }
.ficha-main, .ficha-side { display: grid; gap: 24px; align-content: start; min-width: 0; }
.ficha-main .bloque p + p { margin-top: .9rem; }
.ideal { margin-top: 1.2rem; padding: 14px 16px; background: var(--surface-2); border-left: 4px solid var(--c); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.resumen-op { font-size: 1.02rem; color: var(--ink-2); }
.opiniones { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 1.1rem; }
.opinion { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); }
.op-cab { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin-bottom: .35rem; }
.opinion p { color: var(--ink-2); font-size: .94rem; }
.op-fecha { display: block; margin-top: .4rem; font-size: .76rem; color: var(--muted); }
.pack-mini { border-top: 4px solid var(--c); }
.pack-mini ul { list-style: none; padding: 0; }
.pack-mini li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line-2); }
.pack-mini li a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 550; }
.pack-mini li a svg { width: 18px; height: 18px; color: var(--muted); }
.pack-mini li.actual a { color: var(--c); font-weight: 750; }
.pack-mini li b { font-family: var(--mono); font-size: .88rem; }
.pack-total { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem 0 .2rem; font-weight: 700; }
.pack-total b { font-family: var(--display); font-size: 1.4rem; font-weight: 800; }
.pack-mini .btn { margin-top: .8rem; }
.rivales { margin-top: 36px; background: none; border: 0; padding: 0; }
.cta-final { display: flex; justify-content: center; margin-top: 40px; }

/* Calculadora */
.calc { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 28px; align-items: start; }
.calc-form { display: grid; gap: 18px; }
.calc-form fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--surface); }
.calc-form legend { font-family: var(--display); font-weight: 750; font-size: 1.05rem; padding: 0 .4rem; }
.calc-tools { display: grid; gap: 10px; }
.tool-check { position: relative; display: block; cursor: pointer; }
.tool-check input { position: absolute; opacity: 0; }
.tool-check span {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: .7rem; padding: 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); transition: border-color .2s, background-color .2s;
}
.tool-check span svg { width: 26px; height: 26px; }
.tool-check small { font-family: var(--mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; }
.tool-check input:checked + span { border-color: var(--ink); background: var(--volt); }
.tool-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-bat { display: grid; gap: 8px; }
.calc-bat label { display: flex; align-items: center; gap: .6rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-weight: 550; }
.calc-bat label[style] span::before { content: ""; display: inline-block; width: .65rem; height: .65rem; border-radius: 2px; background: var(--c); margin-right: .5rem; }
.calc-bat input { accent-color: var(--ink); width: 18px; height: 18px; }
.calc-bat label:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.calc-res { min-width: 0; }
.calc-res-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1rem; }
.calc-resumen { color: var(--muted); font-size: .92rem; }
.calc-lista { list-style: none; padding: 0; display: grid; gap: 14px; }
.calc-item { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: var(--r); padding: 16px 18px; }
.calc-item.ganador { box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.ci-cab { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; }
.ci-pos { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-family: var(--mono); font-weight: 600; }
.ganador .ci-pos { background: var(--volt); }
.ci-marca { font-family: var(--display); font-weight: 800; font-size: 1.3rem; font-stretch: 112%; text-decoration: none; }
.ci-marca small { display: block; font-family: var(--sans); font-weight: 400; font-size: .76rem; color: var(--muted); font-stretch: 100%; }
.ci-total { font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-variant-numeric: tabular-nums; text-align: right; }
.ci-total small { display: block; font-family: var(--sans); font-size: .76rem; font-weight: 600; color: var(--muted); }
.ganador .ci-total small { color: var(--ok); }
.ci-items { list-style: none; padding: 0; margin-top: .8rem; display: grid; gap: .1rem; font-size: .9rem; }
.ci-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-top: 1px dashed var(--line); }
.ci-items li.tachado { color: var(--muted); }
.ci-items li.tachado span { text-decoration: line-through; }
.ci-items a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.ci-items a:hover { color: var(--accent); }
.ci-items svg { width: 16px; height: 16px; color: var(--muted); }
.ci-items span { font-family: var(--mono); font-size: .86rem; white-space: nowrap; }
.ci-acc { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.ci-ahorro { margin-top: .6rem; font-size: .88rem; color: var(--ok); font-weight: 650; }
.explica h3 { margin-bottom: .4rem; }
.explica p { color: var(--ink-2); font-size: .95rem; }

/* Comparador */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-top: 24px; }
.tab { flex: none; padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 650; font-size: .9rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.cmp-selector { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.sel-marca { cursor: pointer; }
.sel-marca input { position: absolute; opacity: 0; }
.sel-marca span { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 650; font-size: .9rem; }
.sel-marca span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.sel-marca input:checked + span { box-shadow: inset 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.sel-marca input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmp-cuerpo { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
.cmp-tabla { min-width: 0; }
.cmp-vacio { padding: 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); }
.cmp td .cmp-img { width: 72px; height: 72px; object-fit: contain; background: #fff; margin-bottom: .4rem; }

/* Categorías */
.orden-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.4rem; font-size: .9rem; color: var(--muted); }

/* Marca */
.marca-hero { background: var(--ink); color: #fff; padding-block: clamp(36px, 6vw, 72px); border-bottom: 8px solid var(--c); }
.marca-hero-in { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: end; }
.marca-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); font-stretch: 120%; }
.marca-hero h1 span { display: block; font-size: .42em; font-stretch: 105%; color: #c9d0d4; font-weight: 600; margin-top: .3rem; }
.marca-hero .eyebrow { color: var(--volt); margin-bottom: .6rem; }
.marca-hero .lede { color: #c9d0d4; margin-top: 1rem; }
.marca-total { background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 18px 20px; display: grid; gap: .2rem; justify-self: start; }
.marca-total small { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.marca-total b { font-family: var(--display); font-weight: 900; font-size: 2.4rem; font-stretch: 112%; line-height: 1.05; }
.marca-total span { font-size: .85rem; color: var(--muted); }
.marca-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
.marca-grid > div > h2 { margin-bottom: 1rem; }
.marca-grid aside { display: grid; gap: 20px; }
.pack-cta { margin-top: 20px; }

/* Guías y textos */
.guia { max-width: 920px; }
.guia .bloque { margin-top: 24px; }
.guia .bloque h3 { margin: 1.4rem 0 .5rem; }
.guia .bloque p { color: var(--ink-2); }
.veredicto { margin-top: 28px; background: var(--ink); color: #fff; border-radius: var(--r); padding: clamp(20px, 3vw, 30px); }
.veredicto h2 { color: var(--volt); margin-bottom: 1rem; }
.veredicto ul { list-style: none; padding: 0; display: grid; gap: .8rem; }
.veredicto li { padding-left: 1rem; border-left: 4px solid var(--c); color: #d6dcdf; }
.veredicto b { color: #fff; }
.veredicto a { color: var(--volt); }
.texto { max-width: 780px; padding-top: 32px; }
.texto h1 { margin-bottom: 1rem; }
.texto h2 { margin: 2rem 0 .6rem; font-size: 1.35rem; }
.texto p, .texto li { color: var(--ink-2); }
.texto p + p { margin-top: .8rem; }
.guias-lista a { min-height: 160px; }

/* =============================================================
   7. Efectos
   ============================================================= */
@view-transition { navigation: auto; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .rejilla-2, .rejilla-3, .rejilla-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-check span { grid-template-columns: 1fr; text-align: left; align-items: start; }
  .calc-bat { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .pie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .claves { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guias-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guias-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ficha-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .marca-hero-in { grid-template-columns: 1fr auto; }
  .marca-total { justify-self: end; }
}
@media (min-width: 960px) {
  .rejilla-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rejilla-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
  .ficha-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .ficha-side { position: sticky; top: 84px; }
  .calc { grid-template-columns: 360px minmax(0, 1fr); }
  .calc-tools { grid-template-columns: 1fr; }
  .tool-check span { grid-template-columns: 28px 1fr auto; align-items: center; }
  .calc-bat { grid-template-columns: 1fr; }
  .calc-form { position: sticky; top: 84px; }
  .cmp-cuerpo { grid-template-columns: minmax(0, 1fr) 380px; }
  .cmp-radar { position: sticky; top: 84px; }
  .marca-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .pie-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  /* Menú completo solo cuando cabe en una línea junto al logotipo */
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; flex-wrap: nowrap; gap: .1rem; padding: 0; border: 0; background: none; }
  .nav a { padding: .45rem .6rem; border: 0; border-radius: var(--r-sm); font-size: .92rem; white-space: nowrap; }
  .nav a[aria-current="page"] { background: #232b30; }
  .ficha-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
}

/* =============================================================
   9. Movimiento reducido (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}
