/* =============================================================
   Cocina Experta — hoja de estilos única
   Aplicando el Genesis Design System (precisión editorial):
   dos capas #FAFAFA / #FFFFFF, índigo #6366F1 solo funcional,
   General Sans display + DM Sans texto, tarjetas planas en
   reposo con radio 12 px, rejilla de 4 px, sin emoji.
   1. Tokens              5. Componentes        9. Comparador
   2. Reset y base        6. Cabecera/footer   10. Responsive
   3. Utilidades          7. Home / secciones  11. Movimiento
   4. Tipografía          8. Ficha / guía
   ============================================================= */

/* 1. TOKENS — Genesis ---------------------------------------- */
:root {
  /* paleta base */
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-tint: rgba(99, 102, 241, .12);
  --green-600:  #20970B;
  --gray-050:   #FAFAFA;
  --gray-100:   #F4F4F5;
  --gray-200:   #E8E8EC;
  --gray-400:   #9C9C9C;
  --gray-600:   #6B6B6B;
  --gray-900:   #0A0A0A;
  --white:      #FFFFFF;
  --success:    #10B981;
  --success-ink:#0B6B47;
  --error:      #EF4444;
  --error-ink:  #B3261E;

  /* alias semánticos */
  --bg:         var(--gray-050);
  --surface:    var(--white);
  --surface-2:  var(--gray-100);
  --ink:        var(--gray-900);
  --ink-soft:   var(--gray-600);
  --muted:      var(--gray-400);
  --line:       var(--gray-200);
  --accent:     var(--indigo-500);
  --accent-hover: var(--indigo-600);
  --accent-ink: var(--white);
  --ring:       var(--indigo-tint);

  --ok-bg:  rgba(16, 185, 129, .12);
  --bad-bg: rgba(239, 68, 68, .12);
  --best:   var(--indigo-tint);

  /* radios Genesis — no interpolar */
  --radius-xs:   4px;   /* chips, badges */
  --radius-sm:   6px;   /* botones, inputs, selects */
  --radius-md:   8px;   /* paneles, desplegables */
  --radius-lg:   12px;  /* tarjetas, buscador, secciones destacadas */
  --radius-full: 9999px;/* avatares, puntos, pills */

  /* elevación — plana en reposo; la sombra es estado */
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, .08);
  --shadow-primary-hover: 0 4px 12px rgba(99, 102, 241, .35);
  --shadow-lg: 0 12px 32px rgba(10, 10, 10, .12);
  --ring-focus: 0 0 0 3px rgba(99, 102, 241, .12);

  /* tipografía */
  --display: "General Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:    "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* rejilla de 4 px */
  --wrap: 1280px;
  --gutter: clamp(16px, 5vw, 24px);

  /* movimiento */
  --ease: cubic-bezier(.2, 0, .2, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;
}

/* 2. RESET Y BASE ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: 92px;
}
body {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -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: var(--accent); text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }
::selection { background: var(--indigo-tint); }

/* 3. UTILIDADES ------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.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: 16px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); }
.section { padding-block: clamp(32px, 6vw, 64px); }
.section--alt { background: var(--surface-2); }
.disclosure {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  border-top: 1px solid var(--line); padding-top: 20px; margin-block: 40px 48px;
}

/* 4. TIPOGRAFÍA — General Sans display / DM Sans texto ------ */
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 700; line-height: 1.1;
  letter-spacing: -.03em; text-wrap: balance; color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.kicker, .hero__kicker, .guide__kicker, .card-cat, .crumbs {
  font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.prose p { margin-block: 14px; color: var(--ink-soft); }
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 22px; font-family: var(--display); font-weight: 700; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }
.prose ul { margin: 16px 0; padding-left: 18px; list-style: disc; color: var(--ink-soft); }
.prose li { margin-block: 6px; }

/* 5. COMPONENTES ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--body); font-weight: 500; font-size: 14px; line-height: 1;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-buy { background: var(--accent); color: #fff; }
.btn-buy:hover { background: var(--accent-hover); box-shadow: var(--shadow-primary-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); transform: translateY(-1px); background: transparent; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { display: flex; width: 100%; margin-block: 20px; padding-block: 12px; }
[data-compare-toggle][aria-pressed="true"] {
  background: var(--indigo-tint); color: var(--accent-hover); box-shadow: inset 0 0 0 1px var(--accent);
}

.stars { --r: 0; position: relative; display: inline-block; width: 5.4em; height: 1em; vertical-align: -.12em;
  background: linear-gradient(var(--line), var(--line)); -webkit-mask: var(--star-mask); mask: var(--star-mask); }
.stars-on { position: absolute; inset: 0; width: calc(var(--r) / 5 * 100%); background: var(--ink);
  -webkit-mask: var(--star-mask); mask: var(--star-mask); }
:root { --star-mask: repeat-x left center / 1.08em 1em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.8 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z'/%3E%3C/svg%3E"); }
.stars-val { font-family: var(--mono); font-size: 12px; font-weight: 500; margin-left: .5em; color: var(--ink-soft); }
.stars-count { color: var(--muted); font-size: 12px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.price-now { font-family: var(--mono); font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.price-was { font-family: var(--mono); text-decoration: line-through; color: var(--muted); font-size: 13px; }
.price-badge { background: var(--bad-bg); color: var(--error-ink); font-weight: 500; font-size: 12px;
  padding: 2px 6px; border-radius: var(--radius-xs); font-family: var(--mono); }
.price-none { font-size: 15px; font-family: var(--body); color: var(--ink-soft); }
.price-note { flex-basis: 100%; font-size: 12px; color: var(--muted); }

/* card — todo lienzo de galería: blanco, borde 1px, radio 12, plano en reposo */
.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--cats { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden;
  border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card-flag { position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-xs); }
.card-flag--offer { left: auto; right: 12px; background: var(--bad-bg); color: var(--error-ink); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; flex: 1; }
.card-cat { margin: 0; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.3; letter-spacing: -.02em; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-rating { display: flex; align-items: center; gap: 6px; min-height: 1.2em; }
.card-specs { display: flex; gap: 6px; margin: 2px 0 4px; }
.card-specs li { flex: 1; min-width: 0; background: var(--surface-2); border-radius: var(--radius-md); padding: 7px 4px; text-align: center; }
.card-specs span { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-specs b { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.card .price { margin-top: auto; }
.card .price-now { font-size: 1.1rem; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .btn { flex: 1; }

/* 6. CABECERA / FOOTER — nav 56 px, blur no sombra --------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 56px; }
/* logo GuiadeElectro — teja índigo + rayo, con palabra */
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 27px; height: 27px; flex: none; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand__word {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -.03em; color: var(--ink); white-space: nowrap;
}
.brand--footer .brand__word { color: #fff; }
/* móvil estrecho: versión compacta = solo la teja */
@media (max-width: 400px) { .brand__word { display: none; } }
.nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 1px; margin-left: auto; white-space: nowrap; }
.nav a { padding: 8px 8px; border-radius: var(--radius-sm); font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
@media (min-width: 861px) and (max-width: 1060px) {
  .site-header__inner { gap: 10px; }
  .nav a { padding: 8px 7px; font-size: 12.5px; }
  .nav a.nav-cta { padding-inline: 12px; }
}
/* escritorio grande: menú y logo más grandes */
@media (min-width: 1061px) {
  .site-header__inner { min-height: 66px; gap: 20px; }
  .brand { gap: 11px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand__word { font-size: 1.4rem; }
  .nav { gap: 3px; }
  .nav a { font-size: 15.5px; padding: 11px 14px; }
  .nav a.nav-cta { padding-inline: 18px; gap: 8px; }
  .nav-cta__count { font-size: 12px; }
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a.nav-cta {
  background: var(--accent); color: #fff; margin-left: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a.nav-cta:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--shadow-primary-hover); }
.nav-cta__count { background: #fff; color: var(--accent-hover); font-family: var(--mono);
  font-size: 11px; font-weight: 500; min-width: 1.4em; height: 1.4em; display: inline-flex;
  align-items: center; justify-content: center; border-radius: var(--radius-full); padding: 0 .3em; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; margin-left: auto; }
.nav-toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform var(--dur-slow) var(--ease); }
.compare-tray:not([hidden]) { transform: translateY(0); }
.compare-tray__inner { display: flex; align-items: center; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.compare-tray__items { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.compare-tray__chip { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12);
  border-radius: var(--radius-full); padding: 4px 8px 4px 12px; font-size: 12px; }
.compare-tray__chip button { color: #fff; opacity: .7; font-size: 15px; line-height: 1; }
.compare-tray__chip button:hover { opacity: 1; }
.compare-tray__clear { color: rgba(255, 255, 255, .7); font-size: 13px; text-decoration: underline; }
.compare-tray .btn-buy { background: #fff; color: var(--ink); }
.compare-tray .btn-buy:hover { background: var(--surface-2); box-shadow: none; }

.site-footer { background: var(--ink); color: var(--gray-400); margin-top: 64px; padding-block: 48px 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font-family: var(--body); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 12px; }
.site-footer a { color: var(--gray-400); font-size: 13px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer li { margin-block: 6px; }
.footer-tag { font-size: 13px; margin-top: 12px; max-width: 36ch; color: var(--gray-400); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; }
.footer-legal p { font-size: 12px; line-height: 1.6; color: #8A8A8A; }
.footer-copy { margin-top: 8px; }

/* 7. HOME / SECCIONES — fondo plano + rejilla de puntos ---- */
.hero { position: relative; padding-block: clamp(40px, 8vw, 88px); background: var(--bg); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.4px);
  background-size: 20px 20px;
  -webkit-mask: radial-gradient(120% 90% at 20% 0%, #000 0%, transparent 70%);
  mask: radial-gradient(120% 90% at 20% 0%, #000 0%, transparent 70%);
}
.hero__inner { position: relative; max-width: 46rem; }
.hero__title { margin-block: 12px 16px; }
.hero__title em { font-style: normal; color: inherit; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__stats { display: flex; gap: 40px; margin-top: 40px; }
.hero__stats dt { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.hero__stats dd { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head__link { color: var(--accent); font-weight: 500; font-size: 13px; white-space: nowrap; }
.section-head__link:hover { color: var(--accent-hover); text-decoration: underline; }

/* Modelos destacados: bloque por categoría (categoría primero, luego modelos) */
.feat-cats { display: flex; flex-direction: column; gap: 40px; }
.feat-cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.feat-cat__head h3 { font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: -.02em; color: var(--ink); }

.cat-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.cat-card__count { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cat-card h3 { font-family: var(--display); font-size: 1.2rem; }
.cat-card p { font-size: 13px; color: var(--ink-soft); flex: 1; }
.cat-card__go { color: var(--accent); font-weight: 500; font-size: 13px; }

.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.trust__item { border-left: 1px solid var(--line); padding-left: 16px; }
.trust__num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.trust__item h3 { font-family: var(--display); font-weight: 700; margin-block: 4px 6px; font-size: 1.05rem; }
.trust__item p { font-size: 13px; color: var(--ink-soft); }

.hub-block { margin-block: 40px; }
.hub-block__intro { color: var(--ink-soft); max-width: 68ch; margin-bottom: 20px; margin-top: -8px; }

/* toolbar categoría */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 20px; flex-wrap: wrap; }
.toolbar label { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.toolbar select, .cmp-picker select { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.toolbar select:focus-visible, .cmp-picker select:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--ring-focus); }
.toolbar__count { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.page-head { padding-block: clamp(20px, 4vw, 36px) 0; }
.page-head h1 { max-width: 24ch; }
.page-head p { margin-top: 12px; color: var(--ink-soft); max-width: 64ch; }
.crumbs { display: flex; gap: 6px; align-items: center; padding-block: 16px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* 8. FICHA / GUÍA --------------------------------------- */
.ficha { padding-bottom: 32px; }
.ficha__top { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.gallery__main { aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 72px; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.thumb.is-active { border-color: var(--accent); box-shadow: var(--ring-focus); }

.ficha__buy { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; }
.ficha__brand { font-family: var(--body); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ficha__name { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.85rem); letter-spacing: -.03em; }
.ficha__rating { display: flex; align-items: center; gap: 6px; }
.ficha__highlight { background: var(--indigo-tint); border-radius: var(--radius-md); padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--accent-hover); }
.ficha__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.ficha__quick li { background: var(--surface-2); border-radius: var(--radius-md); padding: 9px 6px; text-align: center; }
.ficha__quick span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ficha__quick b { font-family: var(--mono); font-size: 13px; font-weight: 500; }

.ficha__section { margin-top: clamp(32px, 5vw, 48px); }
.ficha__section > h2 { margin-bottom: 16px; }
.radar-wrap { width: min(440px, 92vw); max-width: 100%; margin-inline: auto; }

/* radar svg */
.radar { width: 100%; height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-label { font-family: var(--body); font-size: 9px; fill: var(--muted); }
.radar-area { fill-opacity: .14; stroke-width: 2; stroke-linejoin: round; }

.spec-table { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.spec-table th, .spec-table td { text-align: left; padding: 10px 16px; font-size: 13px; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th[scope="row"] { color: var(--ink-soft); font-weight: 400; width: 45%; }
.spec-table td { font-family: var(--mono); font-size: 12px; }
.spec-group th { background: var(--surface-2); font-family: var(--body); font-weight: 500;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.specs-extra { margin-top: 12px; }
.specs-extra summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--accent); padding: 8px 0; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 20px; }
.pros-cons h3 { font-family: var(--display); font-size: .95rem; margin-bottom: 8px; }
.pros, .cons { padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.pros { background: var(--ok-bg); border-color: transparent; }
.cons { background: var(--bad-bg); border-color: transparent; }
.pros ul, .cons ul { display: grid; gap: 6px; }
.pros li, .cons li { position: relative; padding-left: 22px; font-size: 13px; }
.pros li::before, .cons li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.pros li::before { content: "+"; color: var(--success-ink); }
.cons li::before { content: "\2013"; color: var(--error-ink); }
.ideal-para { background: var(--surface-2); border-radius: var(--radius-md); padding: 12px 16px; font-size: 13px; }

.reviews { display: grid; gap: 16px; }
.review { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; background: var(--surface); }
.review__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.review__verified { font-size: 11px; color: var(--success-ink); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.review p { font-size: 13px; color: var(--ink-soft); }
.resenas-resumen { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; max-width: 62ch; }

/* guía */
.guide { padding-bottom: 32px; }
.guide__head { padding-block: 24px 16px; max-width: 48rem; }
.guide__lead { font-size: 1.05rem; color: var(--ink-soft); margin-top: 8px; }
.guide__toc { display: flex; gap: 16px; flex-wrap: wrap; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); margin-block: 24px; font-size: 13px; }
.guide__toc strong { color: var(--ink); }
.guide__toc a { color: var(--accent); font-weight: 500; }
.guide section { margin-block: 40px; }
.picks { display: grid; gap: 16px; }
.pick { display: grid; grid-template-columns: 48px 200px 1fr; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.pick__rank { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--accent); text-align: center; letter-spacing: -.03em; }
.pick__media { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.pick__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pick__body h3 { font-family: var(--display); font-weight: 700; }
.pick__why { font-size: 13px; color: var(--ink-soft); margin-block: 6px 8px; }
.pick__specs { display: flex; gap: 8px; margin-bottom: 10px; }
.pick__specs li { background: var(--surface-2); border-radius: var(--radius-md); padding: 6px 8px; text-align: center; min-width: 0; }
.pick__specs span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pick__specs b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink); }
.pick__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-family: var(--body); }
.faq p { margin-top: 8px; color: var(--ink-soft); font-size: 13px; }

/* ranking */
.rank-list { display: grid; gap: 12px; }
.rank-row { display: grid; grid-template-columns: 40px 120px 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; }
.rank-row__pos { font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--accent); text-align: center; }
.rank-row img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: contain; background: var(--surface); padding: 4px; border: 1px solid var(--line); }
.rank-row__info h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.rank-row__info p { font-size: 13px; color: var(--muted); }
.rank-row__buy { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

.doc { padding-block: 16px 32px; max-width: 46rem; }

/* 9. COMPARADOR ---------------------------------------- */
.cmp-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 24px; }
.cmp-picker label { font-weight: 500; font-size: 13px; }
.cmp-picker select { flex: 1; min-width: 200px; }
.cmp-picker__clear { color: var(--muted); text-decoration: underline; font-size: 13px; }
.cmp-empty { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--surface);
  border-radius: var(--radius-lg); border: 1px dashed var(--line); }
.cmp-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.cmp-radar { text-align: center; }
.cmp-radar figure { width: min(460px, 92vw); max-width: 100%; margin: 16px auto 0; }
.cmp-table-scroll { min-width: 0; }
.cmp-legend { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.cmp-legend li { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.cmp-legend .swatch { width: 12px; height: 12px; border-radius: var(--radius-xs); flex: none; }
.cmp-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cmp-table { min-width: 560px; background: var(--surface); }
.cmp-table th, .cmp-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.cmp-table thead th { background: var(--surface-2); position: sticky; top: 0; }
.cmp-table tbody th[scope="row"] { color: var(--ink-soft); font-weight: 400; white-space: nowrap; position: sticky; left: 0; background: var(--surface); }
.cmp-table td { font-family: var(--mono); font-size: 12px; }
.cmp-table .cmp-row-group th { background: var(--surface-2); font-family: var(--body); font-weight: 500;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.cmp-table .is-best { background: var(--indigo-tint); position: relative; }
.cmp-table .is-best::after { content: "mejor"; position: absolute; top: 4px; right: 6px; font-family: var(--body);
  font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-hover); }
.cmp-prod-head { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.cmp-prod-head img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: contain; background: var(--surface); padding: 4px; border: 1px solid var(--line); }
.cmp-prod-head strong { font-family: var(--display); font-size: 13px; line-height: 1.25; }
.cmp-prod-head button.remove { align-self: flex-start; color: var(--muted); font-size: 12px; text-decoration: underline; }

/* 10. RESPONSIVE -------------------------------------- */
@media (max-width: 960px) {
  .ficha__top { grid-template-columns: 1fr; }
  .ficha__buy { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .pick { grid-template-columns: 44px 1fr; }
  .pick__media { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 56px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    gap: 2px; margin-left: 0; transform: translateY(-120%); transition: transform var(--dur-slow) var(--ease);
    max-height: calc(100dvh - 56px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); box-shadow: var(--shadow-lg); }
  .nav a { padding: 12px 10px; }
  .nav .nav-cta { margin-left: 0; margin-top: 8px; }
}
@media (max-width: 720px) {
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .pros-cons { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 32px 1fr; }
  .rank-row img, .rank-row__buy { display: none; }
  .ficha__quick { grid-template-columns: repeat(2, 1fr); }
  /* gráfico de comparación en el celular: que quepa entero con sus etiquetas */
  .cmp-radar figure, .radar-wrap { max-width: 100%; padding-inline: 6px; }
  .radar { overflow: visible; }
  .radar-label { font-size: 8.5px; }
  .cmp-legend { gap: 10px 16px; }
  .cmp-radar h2 { font-size: 1.15rem; }
}
@media (max-width: 540px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
  .radar-label { font-size: 8px; }
  .cmp-legend li { font-size: 12px; }
}

/* 11. MOVIMIENTO — sin animación de entrada (Genesis) ------ */
[data-reveal] { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover, .cat-card:hover, .btn:hover { transform: none; }
}
