/* =============================================================
   Cuál Portátil — hoja de estilo única
   1 Tokens · 2 Reset · 3 Utilidades · 4 Tipografía · 5 Componentes
   6 Secciones · 7 Efectos · 8 Responsive · 9 Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --ink:        #14161c;
  --ink-2:      #2b3140;
  --muted:      #626b7d;
  --muted-2:    #8b94a5;
  --paper:      #f7f8fb;
  --card:       #ffffff;
  --line:       #e3e7ee;
  --line-2:     #eef1f6;

  --accent:     #1a4fd6;
  --accent-ink: #ffffff;
  --accent-dk:  #123a9e;
  --accent-sf:  #eef3ff;

  --good:       #10693c;
  --good-sf:    #eaf6ef;
  --bad:        #a8271f;
  --bad-sf:     #fdeeed;
  --warn:       #8a5a06;
  --warn-sf:    #fdf4e3;
  --gold:       #9a6414;
  --buy:        #ffb020;
  --buy-dk:     #f59e0b;
  --buy-ink:    #1c1400;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gut: clamp(1rem, 4vw, 2rem);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;

  --sh-sm: 0 1px 2px rgba(20, 22, 28, .06);
  --sh:    0 2px 8px rgba(20, 22, 28, .07), 0 1px 2px rgba(20, 22, 28, .05);
  --sh-lg: 0 12px 32px rgba(20, 22, 28, .10), 0 2px 6px rgba(20, 22, 28, .06);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -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; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: #fff;
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.vacio { padding: 2.5rem 0; color: var(--muted); font-style: italic; }
.tabla-scroll { overflow-x: auto; margin: 1.4rem 0; }

/* =============================================================
   4. Tipografía
   ============================================================= */
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; }
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.1; }
h2 { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 1.95rem); }
h3 { font-size: 1.08rem; font-weight: 600; }

.prosa p { margin-bottom: 1.05rem; color: var(--ink-2); }
.prosa h2 { margin: 2.4rem 0 .9rem; }
.prosa h2:first-child { margin-top: 0; }
.prosa a, .doc a, .foot-disclosure a, .trust-copy a, .blk-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prosa a:hover, .doc a:hover { color: var(--accent-dk); }

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- Cabecera y navegación --- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
/* Sin backdrop-filter: en una cabecera fija obliga a rehacer el desenfoque
   de todo lo que pasa por detrás en cada fotograma. Un fondo casi opaco se
   ve prácticamente igual y no cuesta nada. */
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; flex: none; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  background: var(--ink); color: #fff; border-radius: 8px;
  font-family: var(--serif); font-size: .95rem; font-weight: 600; line-height: 1;
}
.brand-name { font-family: var(--serif); font-size: 1.16rem; letter-spacing: -.02em; }
.brand-name strong { font-weight: 600; }

.burger { display: none; width: 42px; height: 42px; padding: 10px; flex: none; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform .3s var(--ease-out), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-list { display: flex; align-items: center; gap: .2rem; }
.nav-group { position: relative; }
.nav-top {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .7rem; border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 500; color: var(--ink-2);
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
.nav-top:hover { background: var(--line-2); color: var(--ink); }
.caret { width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 3px; opacity: .6; }
.nav-panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 232px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-lg);
  padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility .18s;
}
.nav-group:hover .nav-panel,
.nav-group:focus-within .nav-panel,
.nav-group .nav-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-panel a { display: block; padding: .55rem .7rem; border-radius: var(--r-sm); font-size: .92rem; color: var(--ink-2); }
.nav-panel a:hover { background: var(--accent-sf); color: var(--accent-dk); }
.nav-panel a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Gotcha E.2 — el botón dentro del nav debe reafirmar su color sobre .nav a */
.nav-list a.nav-cta,
.nav-list a.nav-cta:hover,
.nav-list a.nav-cta:focus {
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; padding-inline: 1rem;
}
.nav-list a.nav-cta:hover { background: var(--accent-dk); }
.cmp-count {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px;
  margin-left: .35rem; padding: 0 5px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700;
}

/* --- Aviso de datos de demostración --- */
.demo-bar {
  background: var(--warn-sf); border-bottom: 1px solid #f0dfba;
  color: var(--warn); font-size: .88rem; padding: .65rem 0; line-height: 1.5;
}
.demo-bar strong { color: #6d4705; }
.demo-bar em { font-style: normal; text-decoration: underline; text-underline-offset: 2px; }

/* --- Migas --- */
.migas { padding: .85rem 0 0; font-size: .82rem; color: var(--muted); }
.migas ol { display: flex; flex-wrap: wrap; gap: .35rem; }
.migas li + li::before { content: "›"; margin-right: .35rem; opacity: .5; }
.migas a:hover { color: var(--accent); text-decoration: underline; }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.15rem; border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 600; line-height: 1.2; text-align: center;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out),
              color .18s var(--ease-out), transform .18s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { background: var(--card); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted-2); color: var(--ink); }
.btn-buy { background: var(--buy); color: var(--buy-ink); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.btn-buy:hover { background: var(--buy-dk); }
.btn-buy.is-unlinked { background: var(--ink-2); }
.btn-buy.is-disabled { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-cmp { background: var(--accent-sf); color: var(--accent-dk); border-color: #cfdcfb; }
.btn-cmp:hover { background: #e2ebff; }
.btn-cmp.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: .5rem .8rem; font-size: .85rem; }
.btn-ico { font-size: .88em; opacity: .75; }
.sin-tag {
  display: block; margin-top: .35rem; font-size: .75rem;
  color: var(--warn); font-weight: 500;
}

/* --- Tarjeta de producto --- */
/* Rejilla de tarjetas.
   Todas las tarjetas de una misma fila miden lo mismo (stretch, el valor por
   defecto: NO usar align-items:start) y dentro de cada una la descripción
   absorbe el espacio sobrante, de modo que precio y botones quedan siempre
   alineados a la misma altura aunque el título ocupe una o dos líneas. */
.grid-cards {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}
.card {
  /* El navegador se salta el renderizado de las tarjetas que no se ven.
     contain-intrinsic-size reserva su altura para que la barra de
     desplazamiento no dé saltos. */
  content-visibility: auto;
  contain-intrinsic-size: auto 660px;
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.card:hover { box-shadow: var(--sh-lg); border-color: #cfd6e2; transform: translateY(-2px); }
.card-top { position: relative; }
.card-rank {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: grid; place-items: center; width: 27px; height: 27px;
  background: var(--ink); color: #fff; border-radius: 50%;
  font-size: .8rem; font-weight: 700;
}
.card-media { display: block; background: var(--line-2); }
.card-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.card-body { display: flex; flex-direction: column; gap: .55rem; padding: .95rem 1.05rem 1.05rem; flex: 1; }
/* Superpuesta sobre la imagen: si viviera en el cuerpo, las tarjetas con
   etiqueta desplazarían todo su contenido respecto a las que no la tienen. */
.card-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2; max-width: calc(100% - 60px);
  padding: .24rem .6rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .71rem; font-weight: 700; letter-spacing: .01em;
  box-shadow: var(--sh-sm);
}
.card-title {
  font-family: var(--serif); font-size: 1.17rem; line-height: 1.25;
  min-height: 2.93em;                      /* reserva dos líneas: alinea las de abajo */
  display: flex; align-items: flex-start;
}
.card-title a:hover { color: var(--accent); }
.card-specs { display: flex; flex-wrap: wrap; gap: .3rem; align-content: flex-start; min-height: 3.1em; }
.card-specs li {
  padding: .18rem .48rem; border-radius: 5px;
  background: var(--line-2); color: var(--muted);
  font-size: .755rem; font-weight: 500;
}
/* flex:1 — absorbe el espacio sobrante de la tarjeta, empujando precio y
   botones al mismo nivel en todas las tarjetas de la fila. */
.card-desc {
  flex: 1 1 auto;
  font-size: .875rem; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
  overflow: hidden;
}
.card-af {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem .7rem; border-radius: var(--r-sm);
  background: var(--accent-sf);
}
.af-num { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--accent-dk); line-height: 1; }
.af-lbl { font-size: .7rem; color: var(--accent-dk); line-height: 1.2; opacity: .85; }
/* Fila 1: el botón de compra ocupa todo el ancho. Fila 2: las dos acciones
   secundarias a partes iguales. Deliberado, para que nunca se rompa en tres filas. */
.card-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.card-actions .btn-buy, .card-actions .btn-buy.is-disabled { flex: 1 1 100%; }
.card-actions .btn-ghost, .card-actions .btn-cmp { flex: 1 1 0; min-width: 0; padding: .55rem .6rem; font-size: .85rem; }
.card-actions .sin-tag { flex: 1 1 100%; margin-top: 0; }

/* --- Precio --- */
.precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; }
.precio-val { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; }
.precio-lg .precio-val { font-size: 2rem; }

/* --- Radar (SVG generado en el build) --- */
.radar { width: 100%; max-width: 330px; margin-inline: auto; }
.rd { width: 100%; height: auto; overflow: visible; }
.rd-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.rd-axis { stroke: var(--line); stroke-width: 1; }
.rd-area { fill: rgba(26, 79, 214, .16); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.rd-dot { fill: var(--accent); }
.rd-lbl { font-family: var(--sans); font-size: 10.5px; font-weight: 600; fill: var(--muted); }
.rd-val { font-size: 12px; font-weight: 700; fill: var(--ink); }
.rd-nota { margin-top: .5rem; font-size: .74rem; color: var(--warn); text-align: center; }

/* --- Barras de puntuación --- */
.sc-list { display: flex; flex-direction: column; gap: .5rem; flex: 1; min-width: 210px; }
.sc-row { display: grid; grid-template-columns: 92px 1fr 30px; align-items: center; gap: .6rem; }
.sc-lbl { font-size: .8rem; color: var(--muted); font-weight: 500; }
.sc-bar { height: 7px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.sc-fill { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.sc-num { font-size: .84rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* --- Tabla de especificaciones --- */
.spec-table { font-size: .88rem; }
.spec-table th, .spec-table td { padding: .62rem .8rem; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.spec-table th[scope="row"] { color: var(--muted); font-weight: 500; width: 46%; }
.spec-table td { font-weight: 500; }
.spec-table tr:hover { background: var(--line-2); }
.spec-sub { padding-top: 1.3rem !important; color: var(--ink) !important; font-family: var(--serif); font-size: 1rem; font-weight: 600; }

/* --- Pros / contras --- */
.pc { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.pc-col { padding: 1.05rem 1.15rem; border-radius: var(--r); border: 1px solid var(--line); }
.pc-col h3 { margin-bottom: .6rem; font-size: .93rem; letter-spacing: .02em; text-transform: uppercase; }
.pc-col li { position: relative; padding-left: 1.35rem; margin-bottom: .45rem; font-size: .9rem; color: var(--ink-2); }
.pc-col li::before { position: absolute; left: 0; top: -1px; font-weight: 700; font-size: 1rem; }
.pc-pro { background: var(--good-sf); border-color: #cfe6d9; }
.pc-pro h3 { color: var(--good); }
.pc-pro li::before { content: "+"; color: var(--good); }
.pc-con { background: var(--bad-sf); border-color: #f2d5d2; }
.pc-con h3 { color: var(--bad); }
.pc-con li::before { content: "−"; color: var(--bad); }

/* --- FAQ --- */
.faq { margin: 3rem 0; }
.faq h2 { margin-bottom: 1.1rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin-bottom: .6rem; }
.faq-item summary {
  padding: .95rem 1.1rem; cursor: pointer; font-weight: 600; font-size: .95rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 400; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 1.1rem 1.05rem; }
.faq-a p { font-size: .92rem; color: var(--muted); }

/* --- Barra de filtros --- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .85rem;
  padding: .95rem 1.1rem; margin-bottom: 1.4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
}
.tb-field { display: flex; flex-direction: column; gap: .28rem; }
.tb-field span { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tb-field select {
  font: inherit; font-size: .89rem; padding: .5rem .7rem; min-width: 190px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink);
}
.tb-check { display: flex; align-items: center; gap: .45rem; font-size: .875rem; color: var(--ink-2); padding-bottom: .55rem; }
.tb-check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* =============================================================
   6. Secciones
   ============================================================= */

/* --- Hero --- */
.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.hero-inner { max-width: 800px; }
.hero-kicker {
  font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.hero-title { font-size: clamp(2.1rem, 5.6vw, 3.6rem); letter-spacing: -.03em; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { margin-top: 1.15rem; font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--muted); max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.7rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-facts li { font-size: .84rem; color: var(--muted); }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--ink); line-height: 1.1; }

/* --- Bandas --- */
.band { padding: clamp(2.5rem, 6vw, 4.2rem) 0; }
.band-alt { background: var(--card); border-block: 1px solid var(--line); }
.sec-title { margin-bottom: .5rem; }
.sec-sub { max-width: 64ch; margin-bottom: 1.9rem; color: var(--muted); font-size: .96rem; }

/* --- Entradas por presupuesto / uso --- */
.entry-cols { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
.entry-h { margin-bottom: .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.entry-grid { display: flex; flex-direction: column; gap: .55rem; }
.entry {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.entry:hover { border-color: var(--accent); transform: translateX(3px); box-shadow: var(--sh); }
.entry-k { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.entry-n { font-size: .8rem; color: var(--muted-2); flex: none; }

/* --- Bloque de confianza --- */
.trust { display: grid; gap: 2.4rem; grid-template-columns: 1fr; align-items: start; }
.trust-copy p { margin-bottom: 1rem; color: var(--ink-2); }
.trust-warn { padding: .95rem 1.1rem; background: var(--warn-sf); border-left: 3px solid var(--warn); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .92rem; }
.trust-viz { padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.trust-cap { margin-top: .8rem; text-align: center; font-size: .78rem; color: var(--muted-2); }

/* --- Guías --- */
.guias-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.guia-card {
  display: block; padding: 1.4rem 1.5rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.guia-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guia-card h3 { font-family: var(--serif); font-size: 1.22rem; margin-bottom: .45rem; }
.guia-card p { font-size: .87rem; color: var(--muted); }

/* --- Página de categoría --- */
/* El encabezado limita la medida de lectura sin descolgarse del borde
   izquierdo de la rejilla de tarjetas (si se limitara el .wrap, se centraría). */
.cat-head { padding: 1.6rem 0 1.9rem; }
.cat-head > * { max-width: 780px; }
.cat-head h1 { margin-bottom: 1.1rem; }
.cat-intro p { margin-bottom: .85rem; color: var(--muted); font-size: 1.005rem; }
.cat-meta { font-size: .8rem; color: var(--muted-2); }
.aviso-precio { padding: .9rem 1.05rem; background: var(--warn-sf); border-radius: var(--r-sm); font-size: .89rem !important; color: var(--warn) !important; }
.cat-orden {
  padding: 1.15rem 1.3rem; margin-bottom: 1.8rem;
  background: var(--accent-sf); border-radius: var(--r); border: 1px solid #d9e4fc;
}
.orden-h { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-dk); margin-bottom: .4rem; }
.cat-orden p { font-size: .89rem; color: var(--ink-2); }
.cat-orden a { color: var(--accent-dk); text-decoration: underline; }
.otras { padding: 2.5rem 0 3.5rem; }
.otras h2 { font-size: 1.2rem; margin-bottom: .9rem; }
.otras-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.otras-links a {
  padding: .5rem .9rem; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; font-size: .87rem; color: var(--ink-2);
}
.otras-links a:hover { border-color: var(--accent); color: var(--accent); }

/* --- Ficha --- */
.ficha-top { display: grid; gap: 2rem; grid-template-columns: 1fr; padding: 1.6rem 0 2.4rem; align-items: start; }
.ficha-media { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.ficha-media img { width: 100%; height: auto; }
.ficha-marca { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.ficha-head h1 { margin-bottom: .9rem; }
.ficha-demo { padding: .8rem 1rem; margin-bottom: 1rem; background: var(--warn-sf); border-left: 3px solid var(--warn); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .87rem; color: var(--warn); }
.ficha-desc { color: var(--muted); margin-bottom: 1.1rem; }
.ficha-usos { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.1rem; }
.ficha-usos li { padding: .25rem .6rem; border-radius: 999px; background: var(--line-2); font-size: .76rem; font-weight: 500; color: var(--muted); }
.ficha-val { font-size: .87rem; color: var(--muted); margin-bottom: 1rem; }
.ficha-val span { font-weight: 600; color: var(--ink-2); }
.ficha-cta { display: flex; flex-direction: column; flex-wrap: wrap; gap: .55rem; margin: 1.3rem 0 .8rem; }
.ficha-cta .sin-tag { flex: 1 1 100%; margin-top: -.25rem; }
.ficha-disc { font-size: .76rem; color: var(--muted-2); line-height: 1.5; }

.ficha-cols { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
.blk { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.blk:first-child { border-top: 0; padding-top: 0; }
.blk h2 { margin-bottom: .5rem; }
.blk-note { font-size: .82rem; color: var(--muted-2); margin-bottom: 1.2rem; }
.score-wrap { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.para { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.3rem; }
.para p { padding: .95rem 1.1rem; border-radius: var(--r-sm); font-size: .94rem; }
.para-si { background: var(--good-sf); color: var(--good); }
.para-no { background: var(--bad-sf); color: var(--bad); }
.para strong { display: block; margin-bottom: .1rem; }

.ficha-aside { display: flex; flex-direction: column; gap: 1rem; }
.aside-box { padding: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.aside-box h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; margin-bottom: .25rem; }
.aside-note { font-size: .78rem; color: var(--muted-2); margin-bottom: .9rem; }
.aside-box .btn + .btn { margin-top: .5rem; }
.afl { display: flex; flex-direction: column; gap: .55rem; }
.afl li { display: grid; grid-template-columns: 82px 1fr 26px; align-items: center; gap: .5rem; }
.afl-n { font-size: .8rem; color: var(--muted); }
.afl-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.afl-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.afl-v { font-size: .8rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* --- Comparador --- */
.cmp-head { padding: 1.6rem 0 1.4rem; }
.cmp-head > * { max-width: 760px; }
.cmp-sub { color: var(--muted); margin-top: .7rem; }
.cmp-picker {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .85rem;
  padding: 1rem 1.15rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 1.4rem;
}
.cmp-picker select { min-width: 260px; }
.cmp-slots { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; overflow: visible; padding-top: 10px; }
/* Gotcha E.3 — el aspa sobresale: ningún ancestro con overflow entre ella y la esquina */
.slot-wrap { position: relative; overflow: visible; width: 152px; }
.slot {
  display: block; padding: .7rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.slot img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: contain; background: var(--line-2); border-radius: 6px; }
.slot-name { display: block; margin-top: .5rem; font-size: .78rem; font-weight: 600; line-height: 1.3; }
.slot-price { display: block; margin-top: .2rem; font-size: .76rem; color: var(--muted); }
.slot-x {
  position: absolute; top: -9px; right: -9px; z-index: 3;
  width: 25px; height: 25px; display: grid; place-items: center;
  background: var(--ink); color: #fff; border-radius: 50%;
  font-size: .95rem; line-height: 1; box-shadow: var(--sh);
}
.slot-x:hover { background: var(--bad); }
.cmp-empty { padding: 2.2rem 1.5rem; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.cmp-veredicto {
  padding: 1.4rem 1.5rem; margin-bottom: 1.6rem;
  background: var(--accent-sf); border: 1px solid #d9e4fc; border-radius: var(--r-lg);
}
.cmp-veredicto h2 { font-size: 1.25rem; margin-bottom: .8rem; }
.cmp-veredicto ul { display: flex; flex-direction: column; gap: .55rem; }
.cmp-veredicto li { padding-left: 1.2rem; position: relative; font-size: .93rem; color: var(--ink-2); }
.cmp-veredicto li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.cmp-veredicto .vd-pick { padding: .85rem 1rem; background: var(--card); border-radius: var(--r-sm); margin-top: .9rem; font-size: .93rem; }
.cmp-radar { padding: 1.5rem; margin-bottom: 1.6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cmp-radar h2 { font-size: 1.2rem; margin-bottom: 1rem; text-align: center; }
.cmp-radar svg { width: 100%; max-width: 420px; height: auto; margin-inline: auto; overflow: visible; }
.cmp-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1rem; }
.cmp-legend span { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); }
.cmp-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.cmp-table-wrap { overflow-x: auto; margin-bottom: 3rem; }
.cmp-table { font-size: .86rem; min-width: 560px; background: var(--card); border-radius: var(--r); }
.cmp-table th, .cmp-table td { padding: .68rem .8rem; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.cmp-table thead th { position: sticky; top: 0; background: var(--card); border-bottom: 2px solid var(--line); font-size: .84rem; z-index: 1; }
.cmp-table th[scope="row"] { color: var(--muted); font-weight: 500; white-space: nowrap; }
.cmp-table .is-best { background: var(--good-sf); font-weight: 700; color: var(--good); }
.cmp-table .row-sec th { padding-top: 1.2rem; font-family: var(--serif); font-size: .98rem; color: var(--ink); font-weight: 600; }
.cmp-table .cmp-buy { padding-top: 1rem; }
.noscript-box { padding: 2rem 0 3rem; }
.ns-list { margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.ns-list a { color: var(--accent); text-decoration: underline; }

/* --- Documentos (metodología, guías, legal) --- */
.doc { max-width: 760px; padding: 1.8rem 0 3.5rem; }
.doc h1 { margin-bottom: 1.1rem; }
.doc h2 { margin: 2.4rem 0 .85rem; }
.doc p { margin-bottom: 1.05rem; color: var(--ink-2); }
.doc-lead { font-size: 1.09rem; color: var(--muted) !important; }
.doc-list { margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.doc-list li { position: relative; padding-left: 1.3rem; color: var(--ink-2); }
.doc-list li::before { content: ""; position: absolute; left: .3rem; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.doc-table { font-size: .87rem; background: var(--card); border-radius: var(--r); min-width: 520px; }
.doc-table th, .doc-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line-2); text-align: left; }
.doc-table thead th { background: var(--line-2); font-size: .8rem; font-weight: 700; }
.doc-table th[scope="row"] { font-weight: 600; }
.doc-note { font-size: .87rem; color: var(--muted) !important; padding: .85rem 1rem; background: var(--line-2); border-radius: var(--r-sm); }
.doc-fecha { margin-top: 2.5rem; font-size: .8rem; color: var(--muted-2) !important; }
.met-ejes { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.4rem 0; }
.met-eje { padding: 1.1rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.met-eje h3 { color: var(--accent-dk); margin-bottom: .35rem; }
.met-eje p { font-size: .89rem; color: var(--muted); margin: 0; }

/* --- Pie --- */
.site-foot { background: var(--ink); color: #c9cfdb; padding: 3rem 0 2rem; margin-top: 3rem; }
.foot-disclosure {
  padding: 1.15rem 1.3rem; margin-bottom: 2.4rem;
  background: rgba(255, 255, 255, .05); border-radius: var(--r);
  border-left: 3px solid var(--accent);
}
.foot-disclosure p { font-size: .87rem; line-height: 1.6; }
.foot-disclosure strong { color: #fff; }
.foot-disclosure a { color: #9dbaff; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 2.4rem; }
.foot-col h2 { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: .8rem; }
.foot-col li { margin-bottom: .45rem; }
.foot-col a { font-size: .875rem; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.foot-bottom p { font-size: .78rem; color: #8b93a5; margin-bottom: .5rem; }
.foot-tm { opacity: .8; }

/* =============================================================
   7. Efectos
   ============================================================= */
/* Aparición al hacer scroll, SOLO con CSS.
   Regla de oro: por defecto todo es visible. La animación se añade únicamente
   si el navegador soporta líneas de tiempo de scroll, y aun así el estado final
   es «visible». Nada puede quedarse invisible por un fallo de JavaScript. */
@keyframes revelar {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
/* Animación de aparición RETIRADA a propósito.
   Aplicaba animation-timeline:view() a cada tarjeta: en una página de
   categoría son 22 animaciones recalculándose en cada fotograma del scroll.
   El efecto era sutil y el coste alto. Contenido antes que espectáculo. */

@view-transition { navigation: auto; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .pc { grid-template-columns: 1fr 1fr; }
  .entry-cols { grid-template-columns: 1fr 1fr; }
  .met-ejes { grid-template-columns: 1fr 1fr; }
  .para { flex-direction: row; }
  .para p { flex: 1; }
  .ficha-cta { flex-direction: row; }
  .ficha-cta .btn { flex: 1; }
}

@media (min-width: 960px) {
  .ficha-top { grid-template-columns: minmax(0, 420px) 1fr; gap: 2.6rem; }
  .ficha-cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 2.8rem; }
  .ficha-aside { position: sticky; top: 92px; }
  .trust { grid-template-columns: 1fr 380px; gap: 3rem; }
}

@media (max-width: 959px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 66px 0 auto; z-index: 90;
    background: var(--card); border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    max-height: calc(100dvh - 66px); overflow-y: auto;
    display: none; padding: .8rem var(--gut) 1.4rem;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-top { width: 100%; justify-content: space-between; padding: .8rem .6rem; font-size: 1rem; }
  .nav-panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 .4rem .6rem; padding: 0 0 0 .5rem;
    display: none;
  }
  .nav-group .nav-panel.is-open { display: block; }
  .nav-group:hover .nav-panel:not(.is-open),
  .nav-group:focus-within .nav-panel:not(.is-open) { display: none; }
  .nav-list a.nav-cta { justify-content: center; margin-top: .5rem; }
}

@media (max-width: 539px) {
  .card-actions .btn { flex: 1 1 100%; }
  .hero-facts { gap: 1.2rem; }
  .sc-row { grid-template-columns: 80px 1fr 28px; }
}

/* =============================================================
   9. Reduced-motion — solo lo intrusivo (gotcha A.2)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}

@media print {
  .site-head, .site-foot, .toolbar, .cmp-picker, .btn, .demo-bar { display: none !important; }
  body { background: #fff; }
}

/* ---------- Gama de precio (sin precio exacto: politica de Amazon) ---------- */
.precio-lbl {
  flex-basis: 100%; font-size: .7rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-2);
}

/* ---------- Barra de compra fija en fichas (solo movil/tableta) ----------
   Visible por defecto; main.js la oculta mientras el boton principal de la
   ficha esta a la vista, para no duplicarlo. */
.buy-bar { display: none; }
@media (max-width: 959px) {
  .buy-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--card); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(20, 22, 28, .08);
    padding: .6rem var(--gut) calc(.6rem + env(safe-area-inset-bottom));
    transition: transform .25s var(--ease-out);
  }
  .buy-bar.is-oculta { transform: translateY(115%); }
  .buy-bar-in { display: flex; align-items: center; gap: .75rem; max-width: var(--wrap); margin-inline: auto; }
  .buy-bar-name { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar .btn-buy { flex: none; padding: .7rem 1rem; }
  body:has(.buy-bar) .site-foot { padding-bottom: 5.5rem; }
}

/* ---------- «Nuestras 3 elecciones» (portada y categorías) ----------
   La primera va destacada. En móvil, imagen pequeña a la izquierda para que
   las tres quepan en poco más de una pantalla. */
.picks { padding: .4rem 0 2.4rem; }
.picks-h { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-bottom: .3rem; }
.picks-sub { max-width: 64ch; margin-bottom: 1.2rem; color: var(--muted); font-size: .92rem; }
.picks-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.pick {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1.1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.pick--1 { border: 2px solid var(--accent); box-shadow: var(--sh); }
.pick-lbl {
  align-self: flex-start; padding: .26rem .7rem; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.pick--1 .pick-lbl { background: var(--accent); }
.pick-media { display: block; border-radius: var(--r); background: var(--line-2); overflow: hidden; }
.pick-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.pick-name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.pick-name a:hover { color: var(--accent); }
.pick-why { flex: 1 1 auto; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.pick-why::before { content: "Por qué: "; font-weight: 600; }
.pick-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .8rem;
  padding-top: .6rem; border-top: 1px solid var(--line-2);
  font-size: .76rem; color: var(--muted); line-height: 1.25;
}
.pick-score { display: flex; align-items: center; gap: .4rem; max-width: 70%; }
.pick-score b { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--accent-dk); line-height: 1; }
.pick-gama { font-weight: 600; color: var(--ink-2); font-size: .82rem; white-space: nowrap; }
.pick .btn-buy { width: 100%; justify-content: center; }
.pick-more { align-self: center; font-size: .84rem; font-weight: 600; color: var(--accent-dk); }
.pick-more:hover { text-decoration: underline; }
.lista-h { font-size: clamp(1.15rem, 2.2vw, 1.35rem); margin-bottom: 1rem; }
.cat-contexto { max-width: 780px; margin-top: 2.6rem; margin-inline: auto; }
.cat-contexto h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.cat-contexto p { margin-bottom: .85rem; color: var(--muted); }
.cat-contexto + .cat-orden { margin-top: 1.2rem; }

@media (max-width: 859px) {
  .picks-grid { grid-template-columns: 1fr; gap: .8rem; }
  .pick { display: grid; grid-template-columns: 108px minmax(0, 1fr); column-gap: .9rem; row-gap: .45rem; padding: .95rem; }
  .pick-lbl { grid-column: 1 / -1; justify-self: start; }
  .pick-media { grid-row: span 2; align-self: start; }
  .pick-media img { aspect-ratio: 4 / 3; }
  .pick-name { font-size: 1.05rem; }
  .pick-why { font-size: .83rem; }
  .pick-meta, .pick .btn-buy, .pick-more { grid-column: 1 / -1; }
  .pick-more { justify-self: center; }
}

/* ---------- Fotos oficiales de fabricante ----------
   Son WebP con fondo transparente y relación 16:9: el fondo gris de la
   tarjeta hace de «estudio». La nota aclara el origen y que el color varía. */
.card-media, .pick-media { background: linear-gradient(180deg, #f4f6fa 0%, #e9edf3 100%); }
.ficha-media img { aspect-ratio: 16 / 9; object-fit: contain; }
.ficha-img-nota { margin-top: .75rem; font-size: .74rem; color: var(--muted-2); line-height: 1.4; text-align: center; }

/* ---------- Comparativas «A contra B» ---------- */
.vs-head { padding: 1.6rem 0 1.2rem; }
.vs-head h1 { margin-bottom: .9rem; max-width: 24ch; }
.vs-lead { max-width: 72ch; color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.vs-duo { display: grid; gap: 1.15rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 760px) { .vs-duo { grid-template-columns: 1fr 1fr; } }
.vs-card {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.vs-media { display: block; border-radius: var(--r); background: linear-gradient(180deg, #f4f6fa 0%, #e9edf3 100%); overflow: hidden; }
.vs-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.vs-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.vs-name a:hover { color: var(--accent); }
.vs-desc { flex: 1 1 auto; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.vs-card .btn-buy { width: 100%; justify-content: center; }
.vs-bloque { margin-top: 2.6rem; }
.vs-bloque h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin-bottom: .9rem; }
.vs-sub { font-size: 1.05rem; margin: 1.6rem 0 .7rem; }
.vs-texto { max-width: 72ch; color: var(--muted); line-height: 1.7; margin-bottom: .9rem; }
.vs-nota { font-size: .84rem; color: var(--muted-2); margin-top: .8rem; }
.vs-elige { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .vs-elige { grid-template-columns: 1fr 1fr; } }
.vs-elige-col { padding: 1.1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.vs-elige-col h3 { font-family: var(--serif); font-size: 1.12rem; margin-bottom: .6rem; }
.vs-elige-col ul { padding-left: 1.1rem; list-style: disc; color: var(--ink-2); font-size: .93rem; line-height: 1.55; }
.vs-elige-col li { margin-bottom: .4rem; }
.vs-table { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.vs-table thead th { background: var(--line-2); font-size: .8rem; font-weight: 700; text-align: left; padding: .65rem .8rem; }
.vs-table th[scope="row"] { width: 34%; }
.vs-table td { width: 33%; }
.vs-table td.vs-gana { background: var(--good-sf); color: var(--good); font-weight: 700; }
.vs-cta .vs-duo > div { display: flex; }
.vs-cta .btn-buy { width: 100%; justify-content: center; text-align: center; }
