/* =============================================================
   TecnoCompare — hoja de estilo unica
   1. Tokens          5. Componentes
   2. Reset y base    6. Secciones
   3. Utilidades      7. Comparador
   4. Tipografia      8. Responsive
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Tinta petroleo: un neutro elegido, con sesgo cian, no un negro generico. */
  --bg: #0c1518;
  --bg-2: #0f1a1e;
  --surface: #121f23;
  --surface-2: #17272c;
  --surface-3: #1e3238;
  --line: #22383e;
  --line-soft: #182a2f;

  --text: #e8f1f1;
  --muted: #8ba3a7;
  --muted-2: #6f8b90;

  /* Dos acentos con significado, no decoracion:
     ambar = juicio del editor y llamada a la accion (la aguja del cronografo)
     cian  = dato medido (specs, precios, cifras)                             */
  --judge: #f0a04b;
  --judge-dim: #c87f33;
  --judge-glow: rgba(240, 160, 75, .14);
  --data: #5fd0e0;
  --data-dim: #3ba3b3;
  --data-glow: rgba(95, 208, 224, .12);

  --accent: var(--judge);
  --accent-dim: var(--judge-dim);
  --accent-ink: #1a0f02;
  --accent-glow: var(--judge-glow);

  --warn: #f0a04b;
  --bad: #ff6b6b;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1220px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -12px rgba(0, 0, 0, .65);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 30px 60px -24px rgba(0, 0, 0, .8);

  /* Marcas de bisel: el divisor recurrente del sitio. */
  --tick: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 9px);
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  max-width: 100vw;
  background-image:
    radial-gradient(1000px 560px at 82% -12%, rgba(240, 160, 75, .07), transparent 60%),
    radial-gradient(900px 520px at 6% 2%, rgba(95, 208, 224, .06), transparent 58%);
  background-repeat: no-repeat;
}

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; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); font-variation-settings: "wdth" 112; text-wrap: balance; line-height: 1.08; letter-spacing: -0.015em; font-weight: 600; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

@view-transition { navigation: auto; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); font-size: .9rem; }
.empty {
  padding: 3rem 1.5rem; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface);
}
.center-cta { text-align: center; margin-top: 2.5rem; }

/* =============================================================
   4. Tipografia
   ============================================================= */
.kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9rem;
}
.lead { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: #cfdcdc; line-height: 1.6; }

.prose { max-width: 68ch; color: #c6d5d6; }
.prose-wide { max-width: 74ch; }
.prose p { margin-bottom: 1.15em; }
.prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 2.2em 0 .7em; color: var(--text);
  padding-top: .3em; border-top: 1px solid var(--line-soft);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 .5em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #f7b269; }
.prose ul, .prose ol { margin: 0 0 1.15em 1.2em; }
.prose li { margin-bottom: .4em; }

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- Cabecera ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12, 21, 24, .8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.16rem; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(240, 160, 75, .28); }
.brand-text { color: var(--text); }
.brand-text::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; background: var(--judge); vertical-align: .34em; }

.nav-switch { display: none; }
.nav-toggle { display: none; }
.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; min-width: 0; }
.nav > a, .nav-drop-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .8rem; border-radius: 9px; font-size: .92rem; font-weight: 500;
  color: var(--muted); transition: color .2s var(--ease-out), background .2s var(--ease-out);
}
.nav > a:hover, .nav-drop-btn:hover { color: var(--text); background: var(--surface-2); }
.nav > a.is-active { color: var(--accent); }

.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
  display: grid; padding: .4rem; gap: .1rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility .18s;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a { padding: .55rem .7rem; border-radius: 7px; font-size: .9rem; color: var(--muted); }
.nav-drop-menu a:hover { background: var(--surface-3); color: var(--text); }

.hdr-cmp {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border-radius: 999px; font-size: .87rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  transition: all .2s var(--ease-out); white-space: nowrap;
}
.hdr-cmp:hover { color: var(--text); border-color: var(--accent-dim); }
.hdr-cmp-num {
  display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--surface-3); color: var(--muted-2);
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
}
.hdr-cmp.has-items { color: var(--text); border-color: rgba(240, 160, 75, .38); }
.hdr-cmp.has-items .hdr-cmp-num { background: var(--accent); color: var(--accent-ink); }

/* --- Botones ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.15rem; border-radius: 11px; font-weight: 600; font-size: .93rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease-out), background .18s var(--ease-out),
              border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; opacity: .8; }

.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 22px -10px rgba(240, 160, 75, .5); }
.btn-primary:hover { background: #f7b269; box-shadow: 0 10px 30px -10px rgba(240, 160, 75, .68); }

.btn-outline { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent-dim); background: var(--surface-2); }

.btn-ghost { border-color: var(--line); color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--muted-2); }

.btn-lg { padding: .92rem 1.5rem; font-size: 1rem; border-radius: 13px; }
.btn-sm { padding: .55rem .85rem; font-size: .85rem; border-radius: 9px; }

.btn-cmp.is-on { background: var(--accent-glow); border-color: var(--accent-dim); color: var(--accent); }

/* --- Precio y valoracion ------------------------------------- */
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: .2rem; }
.price-now { font-family: var(--mono); font-size: 1.28rem; font-weight: 600; color: var(--data); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-lg .price-now { font-size: 2.1rem; }
.price-was { font-family: var(--mono); font-size: .92rem; color: var(--muted-2); }
.price-none { color: var(--muted); font-size: .95rem; }
.badge-off {
  font-family: var(--mono); font-size: .74rem; font-weight: 600; padding: .15rem .45rem;
  border-radius: 6px; background: rgba(255, 107, 107, .16); color: var(--bad);
}
.price-note { font-size: .78rem; color: var(--muted-2); margin-top: .45rem; line-height: 1.45; }

.stars { display: inline-flex; gap: 2px; }
.star { width: 13px; height: 13px; 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%); }
.star.full { background: var(--warn); }
.star.half { background: linear-gradient(90deg, var(--warn) 50%, var(--line) 50%); }

/* --- Tarjeta de producto ------------------------------------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(266px, 1fr)); gap: 1.1rem; }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  overflow: hidden; transition: border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.card:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow); }

.card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .5s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.045); }
.card-badge {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  padding: .2rem .5rem; border-radius: 6px; background: var(--bad); color: #2b0f0f;
}

.card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.05rem 1.15rem; flex: 1; }
.card-brand { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.card-title { font-size: 1.05rem; line-height: 1.25; }
.card-title a:hover { color: var(--accent); }
.card-tag { font-size: .82rem; color: var(--accent); line-height: 1.4; }

.card-rating { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.card-rating-num { font-family: var(--mono); color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.card-rating-count { color: var(--muted-2); }
.card-score { margin-left: auto; display: flex; align-items: baseline; gap: 1px; padding: .1rem .4rem; border-radius: 6px; background: var(--accent-glow); }
.card-score-num { font-family: var(--mono); font-size: .84rem; font-weight: 600; color: var(--accent); }
.card-score-max { font-size: .66rem; color: var(--muted-2); }

.card-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .1rem; }
.chip { display: flex; flex-direction: column; gap: 1px; padding: .35rem .55rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.chip-k { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.chip-v { font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--data); font-variant-numeric: tabular-nums; }

.card-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .7rem; }
.card-actions .btn { flex: 1; padding-inline: .6rem; }

/* --- Pills / breadcrumb -------------------------------------- */
.pill {
  display: inline-block; padding: .3rem .7rem; border-radius: 999px; font-size: .78rem;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
  transition: all .2s var(--ease-out);
}
.pill:hover { color: var(--accent); border-color: var(--accent-dim); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: 1.4rem; font-size: .8rem; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* =============================================================
   6. Secciones
   ============================================================= */
.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.sec-inline { margin: clamp(2.5rem, 6vw, 4rem) 0; }

.sec-head { position: relative; margin-bottom: 2rem; max-width: 62ch; padding-top: 1.15rem; }
.sec-head::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 5px; background: var(--tick); }
.sec-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); }
.sec-sub { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.sec-sub a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: none; }

.page-head { padding: clamp(2rem, 5vw, 3.4rem) 0 0; max-width: 62rem; }
.page-head h1 { font-size: clamp(2rem, 5.6vw, 3.1rem); }
.page-lead { margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.1rem); max-width: 64ch; }

/* --- Hero ---------------------------------------------------- */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 72%);
  opacity: .55;
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 7.2vw, 4.4rem); letter-spacing: -.045em; }
.hero h1 .hl { position: relative; color: var(--judge); }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.14em; height: 6px;
  background: repeating-linear-gradient(90deg, var(--judge) 0 2px, transparent 2px 11px);
  opacity: .5;
}
.hero-lead { margin-top: 1.3rem; color: var(--muted); font-size: clamp(1rem, 2.3vw, 1.14rem); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 2.6rem); margin-top: 2.4rem; list-style: none; padding: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--mono); font-size: 1.6rem; font-weight: 600; color: var(--data); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .78rem; color: var(--muted-2); }

.hero-pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem; box-shadow: var(--shadow-lg); }
.hero-pick-kicker { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.hero-pick-body { display: flex; gap: 1rem; align-items: center; }
.hero-pick-body img { width: 118px; height: 118px; object-fit: contain; border-radius: var(--r-sm); background: #fff; padding: 5px; flex: none; }
.hero-pick-body strong { display: block; font-family: var(--display); font-size: 1.08rem; }
.hero-pick-body > div > span { display: block; font-size: .84rem; color: var(--muted); margin: .25rem 0 .5rem; }
.hero-pick:hover { border-color: var(--accent-dim); }

/* --- Categorias ---------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; }
.cat-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.35rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  transition: all .25s var(--ease-out); position: relative; overflow: hidden;
}
.cat-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--tick); opacity: .55; transition: opacity .3s var(--ease-out), background .3s var(--ease-out); }
.cat-card:hover { border-color: var(--line); transform: translateY(-3px); }
.cat-card:hover::after { opacity: 1; background: repeating-linear-gradient(90deg, var(--judge) 0 1px, transparent 1px 9px); }
.cat-card h3 { font-size: 1.06rem; }
.cat-card p { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.cat-card-n { margin-top: auto; font-family: var(--mono); font-size: .72rem; color: var(--accent); }

/* --- Guias --------------------------------------------------- */
.guia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .9rem; }
.guia-grid-lg { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.guia-card {
  display: flex; flex-direction: column; gap: .55rem; padding: 1.5rem 1.35rem;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-soft); border-radius: var(--r);
  transition: all .25s var(--ease-out);
}
.guia-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.guia-kicker { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.guia-card h2, .guia-card h3 { font-size: 1.14rem; line-height: 1.25; }
.guia-card p { font-size: .86rem; color: var(--muted); }
.guia-more { margin-top: auto; padding-top: .5rem; font-size: .84rem; font-weight: 600; color: var(--accent); }
.guia-meta { margin-top: .9rem; font-family: var(--mono); font-size: .78rem; color: var(--muted-2); }

.rank-list { list-style: none; padding: 0; display: grid; gap: 1.2rem; }
.rank-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; align-items: start; }
.rank-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  font-family: var(--mono); font-weight: 600; font-size: 1.05rem;
  background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(240, 160, 75, .25);
}
.rank-card { max-width: 320px; }
.rank-note { grid-column: 2; }
.pick-why { color: #c6d5d6; font-size: .96rem; line-height: 1.6; border-left: 2px solid var(--line); padding-left: 1rem; }

.faqs { display: grid; gap: .6rem; }
.faq { border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.faq summary { padding: 1rem 1.15rem; cursor: pointer; font-weight: 600; font-size: .97rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); flex: none; }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 1.15rem 1.1rem; color: var(--muted); font-size: .93rem; }

/* --- Confianza ----------------------------------------------- */
.trust { display: grid; grid-template-columns: 1fr; gap: 2.2rem; align-items: start; }
.trust-copy p { color: var(--muted); margin: 1rem 0; max-width: 58ch; }
.trust-copy h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); }
.trust-points { list-style: none; padding: 0; display: grid; gap: .7rem; }
.trust-points li { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-sm); font-size: .88rem; color: var(--muted); }
.trust-points strong { font-family: var(--display); font-size: .98rem; color: var(--text); }

/* --- Barra de herramientas de categoria ---------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin-bottom: 1.8rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line-soft); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.field select, .field input {
  padding: .58rem .8rem; border-radius: 9px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--text); font: inherit; font-size: .9rem; min-width: 190px;
}
.field select:hover, .field input:hover { border-color: var(--muted-2); }
.toolbar-count { margin-left: auto; font-family: var(--mono); font-size: .84rem; color: var(--muted); }

/* --- Ficha de producto --------------------------------------- */
.ficha { padding-bottom: 4rem; }
.ficha-top { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1.6rem; }

.gal-main { background: #fff; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--line); }
.gal-main img { width: 100%; height: 100%; object-fit: contain; padding: 5%; }
.gal-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.thumb { flex: none; width: 66px; height: 66px; border-radius: var(--r-sm); overflow: hidden; background: #fff; border: 2px solid transparent; opacity: .6; transition: all .2s var(--ease-out); }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; border-color: var(--accent); }

.ficha-buy { display: flex; flex-direction: column; gap: .55rem; }
.ficha-brand { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ficha-buy h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
.ficha-sub { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.ficha-rating { display: flex; align-items: center; gap: .55rem; font-size: .87rem; color: var(--muted); margin-top: .3rem; }
.ficha-rating strong { color: var(--text); font-family: var(--mono); }
.ficha-rating a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ficha-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.ficha-cta .btn-lg { flex: 1 1 240px; }
.ficha-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }

.inline-disclosure { font-size: .76rem; color: var(--muted-2); line-height: 1.5; }
.inline-disclosure a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.ficha-intro { margin-top: 2.6rem; max-width: 72ch; }
.ficha-scores, .ficha-specs, .ficha-editorial, .ficha-resenas, .ficha-similares { margin-top: clamp(3rem, 7vw, 4.5rem); }

/* --- Radar y notas ------------------------------------------- */
.scores-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.radar-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.radar-slot { width: 100%; max-width: 380px; aspect-ratio: 1 / 1; }
.radar-slot svg { width: 100%; height: 100%; overflow: visible; }
.radar-media { font-size: .84rem; color: var(--muted); }
.radar-media strong { font-family: var(--mono); font-size: 1.05rem; color: var(--accent); }

.score-list { list-style: none; padding: 0; display: grid; gap: .75rem; }
.score-row { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: .8rem; font-size: .9rem; }
.score-lbl { color: var(--muted); }
.score-bar { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--judge-dim), var(--judge)); }
.score-val { font-family: var(--mono); font-weight: 600; color: var(--judge); min-width: 2.2rem; text-align: right; font-variant-numeric: tabular-nums; }
.score-na .score-val { color: var(--muted-2); }

/* --- Tabla de especificaciones ------------------------------- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.1rem; }
.spec-block { min-width: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 1.15rem 1.25rem 1.3rem; }
.spec-block h3 { font-size: .73rem; letter-spacing: .15em; text-transform: uppercase; color: var(--data-dim); margin-bottom: .85rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-weight: 600; }
.spec-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.spec-table th, .spec-table td { padding: .58rem 0; text-align: left; font-size: .88rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 52%; font-weight: 400; color: var(--muted); padding-right: 1rem; hyphens: auto; }
.spec-table td { font-family: var(--mono); font-size: .85rem; color: var(--data); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.spec-table tr.is-na td { color: var(--muted-2); }
.spec-block-extra .spec-table td { font-family: var(--sans); text-align: right; }

/* --- Pros / contras / ideal ---------------------------------- */
.proscon { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.4rem; }
.pros, .contras { padding: 1.3rem 1.4rem; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--surface); }
.pros { border-left: 3px solid var(--accent); }
.contras { border-left: 3px solid var(--bad); }
.pros h3, .contras h3 { font-size: .96rem; margin-bottom: .8rem; }
.pros ul, .contras ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.pros li, .contras li { position: relative; padding-left: 1.5rem; font-size: .92rem; color: #c6d5d6; line-height: 1.5; }
.pros li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-weight: 600; }
.contras li::before { content: "−"; position: absolute; left: 0; color: var(--bad); font-family: var(--mono); font-weight: 600; }

.ideal { margin-top: 1.6rem; padding: 1.3rem 1.5rem; border-radius: var(--r); background: var(--accent-glow); border: 1px solid rgba(240, 160, 75, .22); }
.ideal h3 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); font-family: var(--mono); margin-bottom: .5rem; }
.ideal p { font-size: 1.02rem; color: var(--text); }

.mid-cta { margin-top: 2.4rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; }

/* --- Resenas ------------------------------------------------- */
.resenas-layout { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }
.resenas-stats { padding: 1.4rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); }
.rv-big { display: flex; align-items: baseline; gap: .2rem; font-family: var(--mono); }
.rv-big strong { font-size: 2.6rem; font-weight: 600; letter-spacing: -.04em; }
.rv-big span { color: var(--muted-2); }
.rv-count { font-size: .82rem; color: var(--muted-2); margin: .4rem 0 1rem; }
.rv-dist { list-style: none; padding: 0; display: grid; gap: .35rem; }
.rv-dist li { display: grid; grid-template-columns: 2.2rem 1fr 2.5rem; align-items: center; gap: .6rem; font-size: .78rem; }
.rv-k { font-family: var(--mono); color: var(--muted); }
.rv-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rv-bar i { display: block; height: 100%; background: var(--warn); border-radius: 999px; }
.rv-p { font-family: var(--mono); color: var(--muted-2); text-align: right; }
.resenas-texto p { color: #c6d5d6; }
.rv-puntos { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: .5rem; }
.rv-puntos li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--muted); }
.rv-puntos li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.plain-list { list-style: none; padding: 0; display: grid; gap: .6rem; margin-top: 1.2rem; }
.plain-list li { padding-bottom: .6rem; border-bottom: 1px solid var(--line-soft); font-size: .93rem; color: var(--muted); }
.plain-list a { color: var(--text); font-weight: 600; }
.plain-list a:hover { color: var(--accent); }

.metodo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .9rem; margin: 1.6rem 0 2rem; }
.metodo-eje { padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-sm); }
.metodo-eje h3 { font-size: .95rem; margin: 0 0 .4rem; color: var(--accent); }
.metodo-eje p { font-size: .86rem; color: var(--muted); margin: 0; }

/* =============================================================
   7. Comparador
   ============================================================= */
.cmp-picker { margin-bottom: 2.6rem; }
.cmp-picker-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.cmp-picker-head h2 { font-size: 1.2rem; }
.field-search input { min-width: 250px; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; }
.pick {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem .6rem .6rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  transition: all .2s var(--ease-out); font-size: .87rem; line-height: 1.3;
}
.pick img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 7px; padding: 3px; flex: none; }
.pick:hover { border-color: var(--muted-2); }
.pick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-glow); }
.pick.is-hidden { display: none; }

.cmp-empty { padding: 3.5rem 1.5rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); }

.cmp-radar-panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.5rem; margin-bottom: 1.6rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
.cmp-radar-slot { width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 1 / 1; }
.cmp-radar-slot svg { width: 100%; height: 100%; overflow: visible; }
.cmp-legend { list-style: none; padding: 0; display: grid; gap: .6rem; }
.cmp-legend li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.cmp-legend .dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.cmp-legend .nota { margin-left: auto; font-family: var(--mono); font-weight: 600; }

.cmp-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--surface); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: .72rem .9rem; text-align: center; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.cmp-table thead th { position: sticky; top: 0; z-index: 3; background: var(--surface-2); vertical-align: bottom; }
.cmp-table tbody th {
  position: sticky; left: 0; z-index: 2; background: var(--surface);
  text-align: left; font-weight: 400; color: var(--muted); white-space: nowrap;
  border-right: 1px solid var(--line-soft); min-width: 170px;
}
.cmp-table thead th:first-child { left: 0; z-index: 4; background: var(--surface-2); }
.cmp-table td { font-family: var(--mono); color: var(--data); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp-table tr.grp th {
  background: var(--surface-3); color: var(--judge); font-family: var(--mono);
  font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
}
.cmp-table td.best { background: var(--data-glow); color: var(--data); font-weight: 600; box-shadow: inset 2px 0 0 var(--data); }
.cmp-table td.na { color: var(--muted-2); }

.cmp-col-head { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 150px; }
.cmp-col-head img { width: 74px; height: 74px; object-fit: contain; background: #fff; border-radius: 9px; padding: 4px; }
.cmp-col-head .n { font-family: var(--display); font-size: .92rem; color: var(--text); line-height: 1.25; text-align: center; }
.cmp-col-head .swatch { width: 26px; height: 3px; border-radius: 2px; }
.cmp-col-head .btn { width: 100%; }
.cmp-col-rm { font-size: .74rem; color: var(--muted-2); text-decoration: underline; text-underline-offset: 2px; }
.cmp-col-rm:hover { color: var(--bad); }

/* --- Bandeja flotante ---------------------------------------- */
.cmp-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(15, 26, 30, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform .32s var(--ease-out);
  padding: .7rem 0 max(.7rem, env(safe-area-inset-bottom));
}
.cmp-tray.is-open { transform: translateY(0); }
.cmp-tray-inner { display: flex; align-items: center; gap: 1rem; }
.cmp-tray-items { display: flex; gap: .5rem; overflow-x: auto; flex: 1; }
.tray-item { position: relative; flex: none; width: 50px; height: 50px; border-radius: 9px; background: #fff; padding: 3px; }
.tray-item img { width: 100%; height: 100%; object-fit: contain; }
.tray-item button {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-3); color: var(--text); font-size: .8rem; line-height: 1;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.tray-item button:hover { background: var(--bad); color: #2b0f0f; }
.cmp-tray-actions { display: flex; gap: .5rem; flex: none; }

/* --- Pie ----------------------------------------------------- */
.site-footer { margin-top: 4rem; padding: 2.6rem 0 2.4rem; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.disclosure {
  font-size: .82rem; color: var(--muted); line-height: 1.6; padding: 1.1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  margin-bottom: 2.2rem;
}
.disclosure strong { color: var(--text); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.8rem; }
.footer-col h3 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-family: var(--mono); margin-bottom: .8rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.footer-col a { font-size: .88rem; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-legal { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); font-size: .76rem; color: var(--muted-2); line-height: 1.6; }

/* --- Contencion de rejillas -----------------------------------
   Las pistas de grid usan min-width:auto por defecto, asi que un hijo
   ancho (galeria, tabla, radar) ensancha su columna y desborda la pagina.
   Se anula en todos los contenedores que llevan contenido desplazable. */
.ficha-top > *, .scores-layout > *, .resenas-layout > *, .hero-inner > *,
.cmp-radar-panel > *, .rank-item > *, .trust > *, .card-body > * { min-width: 0; }
.ficha-gal, .gal-thumbs, .radar-wrap, .radar-slot, .cmp-radar-slot { min-width: 0; max-width: 100%; }
.gal-thumbs { overscroll-behavior-x: contain; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px;
    border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
    cursor: pointer; order: 3; flex: none;
  }
  .nav-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s var(--ease-out), opacity .2s; }
  .nav-switch:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-switch:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-switch:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-switch:focus-visible ~ .nav-toggle { outline: 2px solid var(--accent); outline-offset: 3px; }

  .nav {
    display: none;
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: .15rem; padding: .6rem; margin-left: 0;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--shadow-lg); z-index: 5;
  }
  .nav-switch:checked ~ .nav { display: flex; }
  .nav > a, .nav-drop-btn { padding: .75rem .8rem; font-size: .95rem; width: 100%; justify-content: space-between; }
  .nav-drop-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; background: transparent; padding: 0 0 .3rem .8rem; display: none;
  }
  .nav-drop-menu.is-open, .nav-drop:focus-within .nav-drop-menu { display: grid; }
  .hdr-cmp { order: 2; margin-left: auto; }
  .header-inner { position: relative; }
}

@media (min-width: 720px) {
  .proscon { grid-template-columns: 1fr 1fr; }
  .resenas-layout { grid-template-columns: 260px 1fr; }
  .trust { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .trust-points { grid-template-columns: 1fr 1fr; }
  .rank-item { grid-template-columns: auto 320px 1fr; align-items: center; }
  .rank-note { grid-column: auto; }
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.35fr .65fr; }
  .ficha-top { grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }
  .ficha-buy { position: sticky; top: 88px; }
  .scores-layout { grid-template-columns: minmax(0, 420px) 1fr; gap: 3rem; }
  .cmp-radar-panel { grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
  .trust-points { grid-template-columns: 1fr; }
}

@media (min-width: 1280px) {
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); }
}

/* Movil: la bandeja del comparador no debe tapar el pie */
@media (max-width: 719px) {
  .cmp-tray.is-open ~ .site-footer { padding-bottom: 6rem; }
  .cmp-tray-actions .btn-sm { padding: .5rem .7rem; }
  .card-actions { flex-direction: column; }
  .rank-card { max-width: none; }
  .spec-block-extra .spec-table td { max-width: 14ch; }
}

/* =============================================================
   9. Movimiento reducido — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cmp-tray { transition: none; }
  .card:hover .card-media img { transform: none; }
  @view-transition { navigation: none; }
}

/* =============================================================
   10. Areas tactiles en movil
   Enlaces y pastillas que en escritorio pueden ser finos necesitan
   una zona de toque comoda con el dedo.
   ============================================================= */
@media (max-width: 1023px), (pointer: coarse) {
  .pill { padding: .5rem .85rem; }
  .ficha-rating a { display: inline-block; padding-block: .45rem; }
  .card-title a { display: inline-block; padding-block: .42rem; }
  .cmp-col-rm { display: inline-block; padding-block: .45rem; }
  .card-brand + .card-title { margin-top: -.2rem; }
}
