/* =============================================================
   CLAVE DIGITAL — hoja de estilos única
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos
   8. Responsive · 9. Reduced motion
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Superficies — ébano */
  --bg:          #0A0C0F;
  --bg-2:        #0F1319;
  --surface:     #141922;
  --surface-2:   #1B2129;
  --surface-3:   #232A34;

  /* Tinta — marfil */
  --ivory:       #F4F1EA;
  --ivory-dim:   #CFCABF;
  --muted:       #8E97A4;
  --muted-2:     #667080;

  /* Acento — latón de pedal */
  --brass:       #C9A227;
  --brass-2:     #E7CB6A;
  --brass-dim:   rgba(201, 162, 39, .16);
  --brass-ink:   #17140A;

  /* Semánticos */
  --good:        #5FBF8B;
  --bad:         #E0746A;
  --info:        #6FA8DC;
  --warn:        #E3B341;

  /* Líneas y sombras */
  --line:        rgba(244, 241, 234, .09);
  --line-2:      rgba(244, 241, 234, .16);
  --shadow-sm:   0 1px 2px rgba(0,0,0,.4);
  --shadow:      0 8px 30px rgba(0,0,0,.42);
  --shadow-lg:   0 24px 70px rgba(0,0,0,.55);

  /* Tipografías */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Métricas */
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --maxw:   1240px;
  --maxw-prose: 68ch;
  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --header-h: 64px;

  /* Easings */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in:     cubic-bezier(.7, 0, .84, 0);
  --ease-soft:   cubic-bezier(.25, .46, .45, .94);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);

  /* Colores de serie para el radar comparado */
  --s1: #E7CB6A;
  --s2: #6FA8DC;
  --s3: #5FBF8B;
  --s4: #E0746A;

  color-scheme: dark;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  /* Textura sutil: luz cenital sobre el ébano */
  background-image:
    radial-gradient(1100px 620px at 50% -8%, rgba(201,162,39,.10), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(111,168,220,.06), transparent 60%);
  background-attachment: fixed;
}
/* El atributo hidden tiene que ganar a cualquier display de componente
   (.empty es display:grid y se comía el hidden del comparador). */
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--brass); color: var(--brass-ink); }

:focus-visible {
  outline: 2px solid var(--brass-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Barra de scroll discreta */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #333c48; }

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ivory); color: var(--bg);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.stack > * + * { margin-top: 1rem; }
.text-muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Iconos en línea — SIEMPRE con tamaño explícito (gotcha E.1) */
svg.ico,
.btn svg, .chip svg, .pro-con li svg, .pro-con h3 svg, .spec-row svg,
.badge svg, .card-meta svg, .nav-links svg, .feature svg, .note svg,
.crumbs svg, .verdict svg, .cmp-cell svg, .empty svg {
  width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.14em;
}
.empty svg { width: 2.2em; height: 2.2em; }

/* =============================================================
   4. TIPOGRAFÍA
   ============================================================= */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
  letter-spacing: -.03em;
  line-height: 1.02;
}
h1.display { font-size: clamp(2.3rem, 6.2vw, 4.1rem); }
h2.display { font-size: clamp(1.75rem, 4vw, 2.7rem); }
h3.display { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

.kicker {
  font-size: .74rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass-2);
  display: flex; align-items: center; gap: .6rem;
}
.kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--brass); flex: none;
}
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ivory-dim); max-width: var(--maxw-prose); }

.prose { max-width: var(--maxw-prose); }
.prose p + p { margin-top: 1.05em; }
.prose p { color: var(--ivory-dim); }
.prose h2 { margin: 2.4em 0 .7em; }
.prose h3 { margin: 1.9em 0 .5em; }
.prose a { color: var(--brass-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ivory); }
.prose ul, .prose ol { margin: 1em 0 1em 1.15em; color: var(--ivory-dim); }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--ivory); font-weight: 600; }

/* =============================================================
   5. COMPONENTES
   ============================================================= */

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: .93rem; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease-out), color .25s var(--ease-out),
              border-color .25s var(--ease-out), transform .25s var(--ease-out),
              box-shadow .25s var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brass); color: var(--brass-ink); box-shadow: 0 4px 20px rgba(201,162,39,.22); }
.btn-primary:hover { background: var(--brass-2); box-shadow: 0 10px 32px rgba(201,162,39,.32); }

.btn-ghost { border-color: var(--line-2); color: var(--ivory); background: rgba(244,241,234,.02); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-2); background: var(--brass-dim); }

.btn-solid { background: var(--surface-2); color: var(--ivory); border-color: var(--line); }
.btn-solid:hover { background: var(--surface-3); border-color: var(--line-2); }

.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .5rem .95rem; font-size: .82rem; }
.btn-block { width: 100%; }

/* Botón comprar — el CTA de afiliado */
.btn-buy { background: var(--brass); color: var(--brass-ink); }
.btn-buy:hover { background: var(--brass-2); }
.btn-buy[data-pending="1"] { background: var(--surface-3); color: var(--ivory-dim); border-color: var(--line-2); }
.btn-buy[data-pending="1"]:hover { background: var(--surface-3); border-color: var(--warn); color: var(--ivory); }

/* --- Chips / badges --- */
.chip {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .3rem .68rem; border-radius: 999px;
  font-size: .76rem; font-weight: 500; letter-spacing: .01em;
  background: var(--surface-2); color: var(--ivory-dim);
  border: 1px solid var(--line);
}
.chip-brass { background: var(--brass-dim); color: var(--brass-2); border-color: rgba(201,162,39,.3); }
.chip-good  { background: rgba(95,191,139,.12); color: var(--good); border-color: rgba(95,191,139,.28); }
.chip-warn  { background: rgba(227,179,65,.12); color: var(--warn); border-color: rgba(227,179,65,.3); }

.badge-offer {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .6rem; border-radius: 6px;
  background: var(--bad); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}

/* --- Tarjetas --- */
.card {
  background: linear-gradient(168deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.card:hover { border-color: var(--line-2); }

/* --- Tarjeta de producto --- */
.pcard { display: flex; flex-direction: column; position: relative; }
.pcard:hover { transform: translateY(-4px); border-color: rgba(201,162,39,.34); box-shadow: var(--shadow); }
.pcard-media {
  /* 4/3 y "contain": es la proporción de las imágenes, así no se recorta nada. */
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 15%, var(--surface-2), var(--bg-2));
  border-bottom: 1px solid var(--line);
}
.pcard-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .55s var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-flags { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .35rem; flex-wrap: wrap; z-index: 2; }
.pcard-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .55rem; }
.pcard-brand { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pcard-title { font-size: 1.09rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.pcard-title a:hover { color: var(--brass-2); }
.pcard-desc { font-size: .89rem; color: var(--muted); line-height: 1.55; }
.pcard-specs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.pcard-foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; flex-wrap: wrap; }
.pcard-score { display: flex; align-items: baseline; gap: .3rem; }
.pcard-score b { font-family: var(--serif); font-size: 1.5rem; color: var(--brass-2); line-height: 1; }
.pcard-score span { font-size: .74rem; color: var(--muted); }

/* --- Precio --- */
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-now { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ivory); letter-spacing: -.02em; }
.price-was { font-size: .92rem; color: var(--muted-2); text-decoration: line-through; }
.price-none { font-size: .9rem; color: var(--muted); font-style: italic; }
.price-note { font-size: .73rem; color: var(--muted-2); margin-top: .3rem; }

/* --- Cabecera --- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10,12,15,.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.header.is-scrolled { background: rgba(10,12,15,.94); border-bottom-color: var(--line-2); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.2rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.16rem; font-weight: 600; letter-spacing: -.02em; flex: none; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--brass-2); font-weight: 600; }

.nav-links { display: none; align-items: center; gap: .2rem; margin-left: auto; }
.nav-links a {
  padding: .5rem .78rem; border-radius: 8px; font-size: .89rem; font-weight: 500;
  color: var(--ivory-dim); transition: color .2s var(--ease-out), background .2s var(--ease-out);
}
.nav-links a:hover { color: var(--ivory); background: rgba(244,241,234,.05); }
.nav-links a[aria-current="page"] { color: var(--brass-2); }
/* Gotcha E.2 — el botón dentro del nav debe reafirmar su color con la misma especificidad */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover {
  background: var(--brass); color: var(--brass-ink); font-weight: 600;
  padding: .5rem 1rem; margin-left: .4rem;
}
.nav-links a.nav-cta:hover { background: var(--brass-2); }
.nav-cta-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--brass-ink); color: var(--brass-2);
  font-size: .7rem; font-weight: 700; margin-left: .1rem;
}
.nav-cta-count:empty { display: none; }

.nav-toggle {
  margin-left: auto; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line);
  transition: border-color .2s var(--ease-out), background .2s;
}
.nav-toggle:hover { border-color: var(--line-2); background: rgba(244,241,234,.04); }
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: var(--ivory); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  padding: .8rem var(--gutter) 1.4rem;
  display: grid; gap: .1rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.nav-drawer.is-open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
.nav-drawer a { padding: .75rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ivory-dim); }
.nav-drawer a:last-child { border-bottom: 0; }
.nav-drawer a:hover, .nav-drawer a[aria-current="page"] { color: var(--brass-2); }
.nav-drawer .btn { margin-top: .8rem; }

/* --- Avisos --- */
.note {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .85rem 1rem; border-radius: var(--radius-sm);
  font-size: .86rem; line-height: 1.55; color: var(--ivory-dim);
  background: var(--surface); border: 1px solid var(--line);
}
.note svg { color: var(--muted); margin-top: .18em; }
.note-warn { background: rgba(227,179,65,.07); border-color: rgba(227,179,65,.26); }
.note-warn svg { color: var(--warn); }
.note strong { color: var(--ivory); }

.demo-banner {
  background: rgba(227,179,65,.09);
  border-bottom: 1px solid rgba(227,179,65,.24);
  font-size: .83rem; color: var(--ivory-dim);
}
.demo-banner .container { display: flex; gap: .6rem; align-items: flex-start; padding-block: .6rem; }
.demo-banner svg { color: var(--warn); flex: none; width: 1.05em; height: 1.05em; margin-top: .22em; }
.demo-banner b { color: var(--warn); }
.solo-ancho { display: none; }
@media (min-width: 720px) { .solo-ancho { display: inline; } }

/* --- Migas --- */
.crumbs { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); padding-block: 1.4rem .3rem; }
.crumbs a:hover { color: var(--brass-2); }
.crumbs svg { color: var(--muted-2); width: .85em; height: .85em; }

/* --- Tabla de especificaciones --- */
.spec-group + .spec-group { margin-top: 1.6rem; }
.spec-group h3 {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-2); margin-bottom: .55rem; font-weight: 600;
}
.spec-table { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec-row {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: .1rem .9rem; padding: .68rem .95rem;
  border-bottom: 1px solid var(--line); font-size: .9rem;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row:nth-child(odd) { background: rgba(244,241,234,.018); }
.spec-row dt { color: var(--muted); font-size: .84rem; }
.spec-row dd { color: var(--ivory); font-weight: 500; }
.spec-row dd.is-null { color: var(--muted-2); font-weight: 400; }

/* --- Pros y contras --- */
.pro-con { display: grid; gap: 1rem; }
.pro-con-col { padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pro-con-col h3 { display: flex; align-items: center; gap: .5rem; font-size: .95rem; margin-bottom: .7rem; }
.pro-con-col.pros { border-color: rgba(95,191,139,.24); background: linear-gradient(160deg, rgba(95,191,139,.06), transparent 70%); }
.pro-con-col.pros h3 { color: var(--good); }
.pro-con-col.contras { border-color: rgba(224,116,106,.24); background: linear-gradient(160deg, rgba(224,116,106,.06), transparent 70%); }
.pro-con-col.contras h3 { color: var(--bad); }
.pro-con-col ul { list-style: none; display: grid; gap: .5rem; }
.pro-con-col li { display: flex; gap: .55rem; font-size: .9rem; color: var(--ivory-dim); line-height: 1.5; }
.pro-con-col.pros li svg { color: var(--good); margin-top: .2em; }
.pro-con-col.contras li svg { color: var(--bad); margin-top: .2em; }

/* --- Panel de valoraciones (radar) --- */
.scores { display: grid; gap: 1.4rem; }
.radar-wrap { display: grid; place-items: center; padding: .5rem; }
.radar { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.radar-grid { fill: none; stroke: var(--line-2); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-label { fill: var(--muted); font-size: 10.5px; font-family: var(--sans); font-weight: 500; }
.radar-label.is-hi { fill: var(--ivory-dim); }
.radar-shape { stroke-width: 2; stroke-linejoin: round; }
.radar-dot { stroke-width: 1.5; }

.score-bars { display: grid; gap: .62rem; }
.score-bar { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; align-items: center; }
.score-bar dt { font-size: .85rem; color: var(--ivory-dim); }
.score-bar dd { font-family: var(--mono); font-size: .82rem; color: var(--brass-2); font-weight: 600; }
.score-track { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.score-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brass), var(--brass-2)); width: 0; transition: width .9s var(--ease-out); }
.is-ready .score-fill { width: var(--w, 0%); }
.no-js .score-fill, html:not(.is-ready) .score-fill { width: var(--w, 0%); }

.score-total {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.15rem; border-radius: var(--radius);
  background: linear-gradient(140deg, var(--brass-dim), transparent 75%);
  border: 1px solid rgba(201,162,39,.26);
}
.score-total b { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--brass-2); }
.score-total small { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.score-total span { font-size: .86rem; color: var(--ivory-dim); }

/* --- Galería --- */
.gallery { display: grid; gap: .7rem; }
.gallery-main {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 12%, var(--surface-2), var(--bg-2));
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; }
.gallery-thumb {
  flex: 1 1 0; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color .25s var(--ease-out), opacity .25s;
  opacity: .62; padding: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb[aria-current="true"] { opacity: 1; border-color: var(--brass); }

/* --- Sección de reseñas --- */
.reviews-summary { display: grid; gap: 1rem; }
.stars { display: inline-flex; align-items: center; gap: .12rem; }
.stars svg { width: 15px; height: 15px; color: var(--brass-2); }
.stars svg.is-off { color: var(--surface-3); }
.rating-line { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.rating-line b { color: var(--ivory); font-size: 1.05rem; }

/* --- Estado vacío --- */
.empty {
  display: grid; gap: .7rem; justify-items: center; text-align: center;
  padding: 2.6rem 1.4rem; border-radius: var(--radius);
  border: 1px dashed var(--line-2); background: rgba(244,241,234,.015);
  color: var(--muted);
}
.empty svg { color: var(--muted-2); }
.empty h3 { color: var(--ivory-dim); font-size: 1.05rem; }
.empty p { font-size: .89rem; max-width: 46ch; }

/* --- Comparador --- */
.cmp-tray {
  position: sticky; top: var(--header-h); z-index: 60;
  background: rgba(15,19,25,.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-block: .9rem;
}
.cmp-slots {
  display: flex; gap: .8rem; align-items: stretch; flex-wrap: wrap;
  /* Gotcha E.3: sin overflow, el aspa sobresale libremente */
  overflow: visible; padding: .5rem .4rem .2rem;
}
.slot-wrap { position: relative; overflow: visible; flex: 0 0 auto; width: 116px; }
.slot {
  display: grid; gap: .3rem; padding: .45rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); text-align: center;
}
.slot-thumb { aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.slot-thumb img { width: 100%; height: 100%; object-fit: contain; }
.slot-name { font-size: .72rem; line-height: 1.25; color: var(--ivory-dim); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.slot-dot { width: 100%; height: 3px; border-radius: 99px; }
.slot-remove {
  position: absolute; top: -7px; right: -7px; z-index: 3;
  width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: var(--bad); color: #fff; font-size: 13px; line-height: 1; font-weight: 700;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-out);
}
.slot-remove:hover { transform: scale(1.12); }
.slot-empty {
  display: grid; place-items: center; gap: .25rem; width: 116px; min-height: 118px;
  border-radius: var(--radius-sm); border: 1px dashed var(--line-2);
  color: var(--muted-2); font-size: .74rem; text-align: center; padding: .5rem;
  background: rgba(244,241,234,.012);
}
.slot-empty b { font-size: 1.3rem; font-weight: 300; color: var(--muted); line-height: 1; }

.cmp-picker { display: grid; gap: .7rem; }
.cmp-search {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--ivory);
}
.cmp-search::placeholder { color: var(--muted-2); }
.cmp-search:focus { outline: none; border-color: var(--brass); }
.cmp-results { display: grid; gap: .4rem; max-height: 330px; overflow-y: auto; }
.cmp-result {
  display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left;
  padding: .55rem .7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s var(--ease-out), background .2s;
}
.cmp-result:hover:not(:disabled) { border-color: var(--brass); background: var(--surface-2); }
.cmp-result:disabled { opacity: .42; cursor: not-allowed; }
.cmp-result img { width: 46px; height: 35px; object-fit: contain; border-radius: 5px; background: var(--surface-2); flex: none; }
.cmp-result-name { font-size: .88rem; font-weight: 500; }
.cmp-result-meta { font-size: .76rem; color: var(--muted); }

.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-table { min-width: 640px; font-size: .88rem; }
.cmp-table th, .cmp-table td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 2; }
.cmp-table tbody th {
  font-weight: 500; color: var(--muted); font-size: .82rem;
  position: sticky; left: 0; background: var(--bg-2); z-index: 1; min-width: 168px;
}
.cmp-table .row-section th {
  background: var(--surface); color: var(--brass-2);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.cmp-cell.is-best { color: var(--good); font-weight: 600; }
.cmp-cell.is-best::after { content: " ★"; font-size: .8em; color: var(--good); }
.cmp-cell.is-null { color: var(--muted-2); }
.cmp-head { display: grid; gap: .5rem; min-width: 168px; }
.cmp-head img { width: 100%; max-width: 130px; aspect-ratio: 4/3; object-fit: contain; border-radius: 6px; background: var(--surface); }
.cmp-head-name { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.cmp-head-brand { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.cmp-legend { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: .8rem; }
.cmp-legend-item { display: flex; align-items: center; gap: .42rem; font-size: .82rem; color: var(--ivory-dim); }
.cmp-legend-swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* --- Filtros --- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-select {
  padding: .55rem .85rem; border-radius: 999px; font-size: .84rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--ivory-dim);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E97A4' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 13px;
  padding-right: 2.1rem;
}
.filter-select:hover { border-color: var(--line-2); }
.filter-select:focus { outline: none; border-color: var(--brass); }

/* --- Tabla de ranking (guías) --- */
.verdict {
  display: grid; gap: 1rem; padding: 1.3rem;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--surface), var(--bg-2));
}
.verdict-tag {
  /* En un contenedor grid manda justify-self, no align-self: sin esto la
     píldora se estiraba a todo el ancho de la tarjeta. */
  display: inline-flex; align-items: center; gap: .4rem; justify-self: start;
  padding: .3rem .75rem; border-radius: 999px;
  background: var(--brass); color: var(--brass-ink);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.verdict-body { display: grid; gap: 1rem; }
.verdict img { width: 100%; max-width: 210px; border-radius: var(--radius-sm); background: var(--surface-2); aspect-ratio: 4/3; object-fit: contain; }

/* --- FAQ --- */
.faq { display: grid; gap: .55rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  padding: .95rem 1.1rem; cursor: pointer; font-weight: 500; font-size: .96rem;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.35rem; font-weight: 300; color: var(--brass-2); flex: none;
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brass-2); }
.faq-body { padding: 0 1.1rem 1.1rem; color: var(--ivory-dim); font-size: .92rem; }

/* --- Pie --- */
.footer { margin-top: 4.5rem; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
.footer h4 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: .45rem; }
.footer a { font-size: .89rem; color: var(--ivory-dim); }
.footer a:hover { color: var(--brass-2); }
.footer-about p { font-size: .89rem; color: var(--muted); max-width: 42ch; }
.footer-legal {
  border-top: 1px solid var(--line); padding-block: 1.4rem 2.2rem;
  font-size: .8rem; color: var(--muted-2); display: grid; gap: .7rem;
}
.footer-legal p { max-width: 92ch; line-height: 1.6; }

/* Aviso de afiliados — obligatorio y visible en todas las páginas */
.affiliate-disclosure {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .75rem .95rem; border-radius: var(--radius-sm);
  background: rgba(244,241,234,.03); border: 1px solid var(--line);
  font-size: .81rem; color: var(--muted); line-height: 1.55;
}
.affiliate-disclosure svg { color: var(--brass); flex: none; width: 1.05em; height: 1.05em; margin-top: .22em; }
.affiliate-disclosure a { color: var(--brass-2); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   6. SECCIONES
   ============================================================= */
.section { padding-block: clamp(2.6rem, 6vw, 4.6rem); }
.section-tight { padding-block: clamp(1.8rem, 4vw, 3rem); }
.section-head { display: grid; gap: .7rem; margin-bottom: 1.9rem; max-width: var(--maxw-prose); }
.section-head.with-action { max-width: none; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .section-head.with-action { grid-template-columns: 1fr auto; align-items: end; }
}

/* --- Héroe --- */
.hero { position: relative; padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.4rem, 6vw, 4rem); overflow: hidden; }
.hero-inner { display: grid; gap: 2.4rem; align-items: center; }
.hero-copy { display: grid; gap: 1.25rem; }
.hero-copy h1, .hero-copy .lead { max-width: 15ch; }
.hero-copy .lead { max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-stat b { display: block; font-family: var(--serif); font-size: 1.85rem; color: var(--brass-2); line-height: 1; letter-spacing: -.02em; }
.hero-stat span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 60px rgba(0,0,0,.5)); }

/* Rejilla de tarjetas */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Tarjetas de categoría */
.cat-card {
  position: relative; display: grid; gap: .55rem; align-content: start;
  padding: 1.4rem 1.3rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(165deg, var(--surface), var(--bg-2));
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  overflow: hidden;
}
.cat-card::after {
  content: ""; position: absolute; inset: auto -30% -55% auto; width: 190px; height: 190px;
  background: radial-gradient(circle, rgba(201,162,39,.16), transparent 68%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(201,162,39,.34); box-shadow: var(--shadow); }
.cat-card:hover::after { opacity: 1; }
.cat-card h3 { font-size: 1.12rem; position: relative; z-index: 1; }
.cat-card p { font-size: .87rem; color: var(--muted); line-height: 1.55; position: relative; z-index: 1; }
.cat-card .chip { position: relative; z-index: 1; justify-self: start; }
.cat-icon { width: 34px; height: 34px; color: var(--brass); position: relative; z-index: 1; }

/* Bloque "cómo elegimos" */
.method { display: grid; gap: 1.1rem; }
.method-item { display: grid; gap: .4rem; padding: 1.2rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.method-num { font-family: var(--serif); font-size: 1.6rem; color: var(--brass); line-height: 1; }
.method-item h3 { font-size: 1rem; }
.method-item p { font-size: .87rem; color: var(--muted); line-height: 1.55; }

/* Ficha — cabecera */
.ficha-top { display: grid; gap: 1.8rem; padding-block: 1rem 2.2rem; }
.ficha-head { display: grid; gap: .85rem; align-content: start; }
.ficha-title { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
.ficha-meta { display: flex; flex-wrap: wrap; gap: .45rem; }
.ficha-buy { display: grid; gap: .7rem; padding: 1.15rem; border-radius: var(--radius); border: 1px solid rgba(201,162,39,.24); background: linear-gradient(150deg, var(--brass-dim), transparent 78%); }
.ficha-highlight {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .9rem 1.05rem; border-radius: var(--radius-sm);
  background: var(--surface); border-left: 3px solid var(--brass);
  font-size: .95rem; color: var(--ivory-dim);
}
.ficha-highlight b { color: var(--ivory); display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); margin-bottom: .2rem; }
.ficha-section { padding-block: clamp(1.8rem, 4vw, 2.8rem); border-top: 1px solid var(--line); }
.ficha-section h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin-bottom: 1.2rem; }

/* Tira de similares */
.strip { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .strip { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   7. EFECTOS
   ============================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensa: si el JS no corre, nada queda invisible */
html:not(.is-ready) .reveal { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@view-transition { navigation: auto; }

/* =============================================================
   8. RESPONSIVE
   ============================================================= */
@media (min-width: 540px) {
  .pro-con { grid-template-columns: repeat(2, 1fr); }
  .spec-row { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: baseline; }
  .verdict-body { grid-template-columns: 210px 1fr; align-items: start; gap: 1.4rem; }
}
@media (min-width: 720px) {
  .method { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .nav-drawer { display: none; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .ficha-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.6rem; align-items: start; }
  .method { grid-template-columns: repeat(4, 1fr); }
  .scores { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: center; gap: 2.2rem; }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
}
@media (min-width: 1280px) {
  .grid-3 { gap: 1.4rem; }
}

/* =============================================================
   9. REDUCED MOTION — solo lo intrusivo (gotcha A.2)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition-duration: .01ms; opacity: 1; transform: none; }
  .score-fill { transition-duration: .01ms; }
  @view-transition { navigation: none; }
}

.pcard-score-vacia {
  font-size: .78rem; color: var(--muted); font-weight: 500;
  border: 1px dashed var(--line-2); border-radius: 999px; padding: .16rem .6rem;
}

/* Ejes de valoración sin dato confirmado */
.score-bar-vacia dd { color: var(--muted); }
.score-bar-vacia .score-track { opacity: .35; }
.score-nota {
  display: flex; gap: .45rem; align-items: flex-start;
  margin-top: .7rem; font-size: .84rem; color: var(--muted);
}
.score-nota .ico { flex: none; width: 15px; height: 15px; margin-top: .15rem; }
.score-nota[hidden] { display: none !important; }

/* =============================================================
   FAVORITOS
   ============================================================= */
.nav-links a.nav-fav { display: inline-flex; align-items: center; gap: .35rem; }
.nav-links a.nav-fav .nav-cta-count {
  background: var(--brass-dim); color: var(--brass-2);
}

/* Estrella sobre la foto de la tarjeta */
.btn-fav {
  position: absolute; top: .7rem; right: .7rem; z-index: 3;
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2);
  background: rgba(10, 12, 15, .62);
  color: var(--ivory-dim);
  backdrop-filter: blur(4px);
  transition: color .18s var(--ease-out), border-color .18s var(--ease-out),
              background .18s var(--ease-out), transform .18s var(--ease-out);
}
.btn-fav:hover { color: var(--brass-2); border-color: var(--brass); transform: scale(1.06); }
.btn-fav .ico-fav { width: 18px; height: 18px; }
.btn-fav.is-on { color: var(--brass-2); border-color: var(--brass); background: rgba(201,162,39,.18); }
.btn-fav.is-on .ico-fav { fill: currentColor; }

/* Variante con texto, en la ficha del producto */
.btn-fav-texto { position: static; width: auto; height: auto; border-radius: 10px; backdrop-filter: none; }
.btn-fav-texto:hover { transform: none; }
.btn-fav-texto.is-on {
  border-color: var(--brass); color: var(--brass-2); background: var(--brass-dim);
}
.btn-fav-texto.is-on .ico-fav { fill: currentColor; }

.fav-item[hidden] { display: none; }

@media print { .btn-fav { display: none !important; } }

/* =============================================================
   IMPRESIÓN
   ============================================================= */
@media print {
  .header, .nav-drawer, .footer, .cmp-tray, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   CARA A CARA — páginas de comparativa entre dos modelos
   ============================================================ */
.vs-cabecera {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.vs-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
}
.vs-col img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.vs-nombre { font-size: 1.05rem; margin: .35rem 0 .6rem; }
.vs-nombre a { color: inherit; text-decoration: none; }
.vs-nombre a:hover { text-decoration: underline; }
.vs-vs {
  align-self: center;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .8rem;
}
.vs-resumen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.vs-resumen > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
}
.vs-resumen h3 { font-size: .95rem; margin: 0 0 .6rem; }
.vs-resumen ul { margin: 0; padding-left: 1.1rem; }
.vs-resumen li { margin-bottom: .4rem; color: var(--muted); font-size: .9rem; }
.vs-resumen li b { color: var(--ivory); }

.vs-tabla { width: 100%; border-collapse: collapse; font-size: .92rem; }
.vs-tabla th, .vs-tabla td {
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.vs-tabla thead th { font-size: .85rem; color: var(--muted); }
.vs-tabla tbody th { font-weight: 500; color: var(--muted); width: 34%; }
.vs-tabla .vs-seccion th {
  background: var(--surface-2);
  color: var(--ivory);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  width: auto;
}
.vs-tabla .vs-mejor { color: var(--ivory); font-weight: 600; }
.vs-tabla .vs-mejor::after { content: " ★"; color: var(--brass); font-size: .8em; }

.vs-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.vs-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ivory);
  text-decoration: none;
}
.vs-link:hover { border-color: var(--brass); }
.vs-link em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.vs-grupo { font-size: .95rem; margin: 1.4rem 0 .6rem; }

@media (max-width: 720px) {
  .vs-cabecera { grid-template-columns: 1fr 1fr; }
  .vs-vs { grid-column: 1 / -1; order: -1; text-align: center; }
  .vs-resumen { grid-template-columns: 1fr; }
}
