/* =============================================================
   RoboMatch — hoja de estilo única
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Comparador · 8. Ficha
   9. Efectos · 10. Responsive · 11. Movimiento reducido
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* superficies */
  --ink:        #080b14;
  --ink-2:      #101728;
  --ink-3:      #1b2438;
  --page:       #f6f7fb;
  --surface:    #ffffff;
  --surface-2:  #eef1f7;
  --line:       #dfe3ec;
  --line-soft:  #ecEFF5;

  /* texto */
  --text:       #101728;
  --text-2:     #4d566b;
  --text-3:     #7c8497;
  --on-dark:    #f2f4f9;
  --on-dark-2:  #a6afc4;

  /* acentos */
  --accent:      #4a5bff;
  --accent-dark: #3444e0;
  --accent-soft: #e8eaff;
  --mint:        #0fae7c;
  --mint-soft:   #dcf6ec;
  --deal:        #ff5533;
  --deal-soft:   #ffe8e3;
  --amber:       #f2a20c;

  /* forma */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --maxw: 1240px;

  --shadow-1: 0 1px 2px rgba(16, 23, 40, .05), 0 4px 14px rgba(16, 23, 40, .05);
  --shadow-2: 0 2px 6px rgba(16, 23, 40, .06), 0 18px 44px rgba(16, 23, 40, .10);
  --shadow-3: 0 30px 70px rgba(8, 11, 20, .22);

  /* tipos */
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* curvas */
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --ease-soft:  cubic-bezier(.25, .46, .45, .94);
  --ease-bounce: cubic-bezier(.34, 1.4, .64, 1);
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--page);
  -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; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.08; letter-spacing: -.025em; font-weight: 600; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .65rem 1.1rem; background: var(--ink); color: var(--on-dark);
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--text-2); }
.tiny { font-size: .8rem; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--display);
  font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow.on-dark { color: #98a6ff; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-block: .35rem .7rem; }
.section-head p { color: var(--text-2); font-size: 1.02rem; }

/* =============================================================
   4. Tipografía
   ============================================================= */
.h-xl { font-size: clamp(2.3rem, 6vw, 4.1rem); }
.h-lg { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-2); }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.05rem; color: var(--text-2); font-size: 1.03rem; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 2.4rem 0 .9rem; color: var(--text); }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.15rem; color: var(--text-2); }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: .93rem; letter-spacing: -.01em;
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(74, 91, 255, .28); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 10px 26px rgba(74, 91, 255, .34); }

.btn-buy { background: var(--amber); color: #251900; box-shadow: 0 6px 18px rgba(242, 162, 12, .3); }
.btn-buy:hover { background: #ffb01f; color: #251900; box-shadow: 0 10px 26px rgba(242, 162, 12, .38); }

.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--ink-3); color: #fff; }

.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* --- chips / etiquetas --- */
.chip {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .3rem .68rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: -.005em;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--line-soft);
}
.chip svg { width: 1em; height: 1em; flex: none; }
.chip-accent { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; }
.chip-mint  { background: var(--mint-soft); color: #067a56; border-color: transparent; }
.chip-deal  { background: var(--deal-soft); color: #c8341a; border-color: transparent; }
.chip-dark  { background: rgba(255,255,255,.1); color: var(--on-dark); border-color: rgba(255,255,255,.16); }

/* --- estrellas --- */
.stars { display: inline-flex; align-items: center; gap: .34rem; font-size: .84rem; color: var(--text-2); }
.stars-icons { display: inline-flex; gap: 1px; }
.stars-icons svg { width: 14px; height: 14px; flex: none; color: var(--amber); }
.stars-icons svg.off { color: var(--line); }

/* --- precio --- */
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-now { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.price-old { font-size: .9rem; color: var(--text-3); text-decoration: line-through; }
.price-note { font-size: .74rem; color: var(--text-3); }

/* --- tarjeta de producto --- */
.grid-cards {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out),
              border-color .45s var(--ease-out);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--line); }

.card-media {
  position: relative; aspect-ratio: 4 / 3; background: var(--surface-2);
  display: grid; place-items: center; padding: 1.1rem; overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .6s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.055); }

.card-flags { position: absolute; inset: .7rem .7rem auto .7rem; display: flex; gap: .35rem; flex-wrap: wrap; }

.card-score {
  position: absolute; right: .7rem; bottom: .7rem;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; line-height: 1;
  background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: .96rem;
  box-shadow: 0 4px 14px rgba(8,11,20,.28);
}
.card-score small { display: block; font-size: .5rem; font-weight: 500; opacity: .6; letter-spacing: .08em; }

.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; gap: .55rem; }
.card-brand { font-size: .73rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.card-title { font-size: 1.03rem; line-height: 1.25; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-specs { display: flex; flex-wrap: wrap; gap: .32rem; margin-top: .1rem; }
.card-foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: end; justify-content: space-between; gap: .6rem; }

.card-compare {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600; color: var(--text-2);
  padding: .4rem .6rem; border-radius: 999px; border: 1px solid var(--line);
  transition: all .3s var(--ease-out);
}
.card-compare svg { width: 13px; height: 13px; flex: none; }
.card-compare:hover { border-color: var(--accent); color: var(--accent); }
.card-compare[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- panel / caja --- */
.panel {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: clamp(1.1rem, 2.5vw, 1.8rem);
}
.panel-dark { background: var(--ink-2); color: var(--on-dark); border-color: var(--ink-3); }
.panel-dark h2, .panel-dark h3 { color: #fff; }
.panel-dark p { color: var(--on-dark-2); }

/* --- aviso de afiliados --- */
.affiliate-note {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .8rem; line-height: 1.5; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: .75rem .9rem;
}
.affiliate-note svg { width: 15px; height: 15px; flex: none; margin-top: .2rem; color: var(--text-3); }

/* =============================================================
   6. Cabecera, navegación, pie
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 247, 251, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease-out), background-color .35s var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--page); } }
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(246,247,251,.94); }

.nav { display: flex; align-items: center; gap: 1rem; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.16rem; letter-spacing: -.035em; }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.brand-mark svg { width: 17px; height: 17px; color: #fff; }
.brand em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav-links a {
  padding: .5rem .72rem; border-radius: 999px;
  font-size: .89rem; font-weight: 500; color: var(--text-2);
  transition: color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* el CTA del menú necesita ganar en especificidad a `.nav-links a` */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover {
  background: var(--accent); color: #fff;
  padding: .5rem .95rem; font-weight: 600;
  box-shadow: 0 4px 14px rgba(74, 91, 255, .26);
}
.nav-links a.nav-cta:hover { background: var(--accent-dark); }
.nav-cta-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  padding-inline: 4px; margin-left: .35rem; border-radius: 999px;
  background: #fff; color: var(--accent-dark);
  font-size: .68rem; font-weight: 700; line-height: 1;
}
.nav-cta-count:empty, .nav-cta-count[hidden] { display: none; }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; margin-left: auto; place-items: center; }
.nav-toggle svg { width: 21px; height: 21px; }

/* pie */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding-block: clamp(2.6rem, 5vw, 4rem) 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.site-footer a { color: var(--on-dark-2); transition: color .25s var(--ease-out); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-brand p { margin-top: .8rem; font-size: .88rem; max-width: 38ch; }
.footer-col h3 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: .8rem; font-family: var(--sans); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .45rem; font-size: .89rem; }
.footer-legal {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem; line-height: 1.6; display: grid; gap: .7rem;
}
.footer-legal p { color: #8a93a8; }

/* =============================================================
   7. Portada
   ============================================================= */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 6.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(58% 46% at 22% 8%, rgba(74, 91, 255, .34), transparent 62%),
    radial-gradient(46% 40% at 84% 22%, rgba(15, 174, 124, .2), transparent 64%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); color: #fff; margin-block: .8rem 1rem; }
.hero h1 em { font-style: normal; background: linear-gradient(96deg, #8b9bff, #4de3b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 56ch; color: var(--on-dark-2); font-size: clamp(1rem, 1.7vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.11); }
.hero-stat b { display: block; font-family: var(--display); font-size: 1.7rem; color: #fff; letter-spacing: -.03em; line-height: 1; }
.hero-stat span { font-size: .8rem; color: #8a93a8; }

/* tarjetas de categoría */
.grid-cats { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  padding: 1.25rem 1.3rem 1.4rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent); }
.cat-card h3 { font-size: 1.08rem; }
.cat-card p { font-size: .85rem; color: var(--text-2); line-height: 1.5; }
.cat-card .cat-count { font-size: .76rem; font-weight: 600; color: var(--accent); margin-top: .3rem; }
.cat-card-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: .35rem; }
.cat-card-ico svg { width: 18px; height: 18px; flex: none; color: var(--accent-dark); }

/* bloque metodología */
.method-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.method-step { display: flex; flex-direction: column; gap: .45rem; }
.method-num {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; font-family: var(--display); font-weight: 600; font-size: .9rem;
}
.method-step h3 { font-size: 1rem; }

/* =============================================================
   8. Ficha de producto
   ============================================================= */
.ficha-top { display: grid; gap: clamp(1.5rem, 3.5vw, 2.6rem); grid-template-columns: 1fr; padding-top: clamp(1.4rem, 3vw, 2.4rem); }

/* galería */
.gallery { display: flex; flex-direction: column; gap: .7rem; }
.gallery-main {
  position: relative; aspect-ratio: 1 / 1; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .45rem; }
.gallery-thumb {
  aspect-ratio: 1 / 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .3rem; overflow: hidden;
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb[aria-current="true"] { border-color: var(--accent); border-width: 2px; }

/* cabecera de compra */
.buy-head { display: flex; flex-direction: column; gap: .85rem; }
.buy-head h1 { font-size: clamp(1.55rem, 3.4vw, 2.4rem); }
.buy-brand { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.buy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; }
.buy-price-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.buy-flags { display: flex; flex-wrap: wrap; gap: .35rem; }
.buy-verdict { font-size: .96rem; color: var(--text-2); }
.buy-verdict strong { color: var(--text); }

/* panel de puntuaciones */
.score-panel { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: center; }
.radar-box { display: grid; place-items: center; }
.score-bars { display: grid; gap: .55rem; }
.score-bar { display: grid; grid-template-columns: 8.5rem 1fr 2.1rem; align-items: center; gap: .7rem; font-size: .85rem; }
.score-bar .sb-name { color: var(--text-2); }
.score-bar .sb-track { display: block; height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.score-bar .sb-fill { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #7d8bff);
  transition: width .9s var(--ease-out); }
.score-bar .sb-val { font-family: var(--display); font-weight: 600; text-align: right; }
.score-bar.is-null .sb-val { color: var(--text-3); font-weight: 500; }

.global-score {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1.1rem; border-radius: var(--r); background: var(--ink-2); color: #fff;
}
.global-score b { font-family: var(--display); font-size: 2.1rem; line-height: 1; letter-spacing: -.04em; }
.global-score span { font-size: .82rem; color: var(--on-dark-2); line-height: 1.4; }

/* tabla de especificaciones */
.spec-group + .spec-group { margin-top: 1.6rem; }
.spec-group h3 {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-3); font-family: var(--sans); font-weight: 600;
  padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.spec-list { display: grid; }
.spec-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  padding: .62rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: .9rem; align-items: baseline;
}
.spec-row dt { color: var(--text-2); }
.spec-row dd { text-align: right; font-weight: 500; }
.spec-row dd.na { color: var(--text-3); font-weight: 400; }
.spec-row dd .yes { color: var(--mint); font-weight: 600; }
.spec-row dd .no { color: var(--text-3); }

/* pros y contras */
.pc-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.pc-col { border-radius: var(--r); padding: 1.1rem 1.2rem; border: 1px solid var(--line-soft); }
.pc-col.pros { background: var(--mint-soft); border-color: #bfe9d8; }
.pc-col.contras { background: #fff4f1; border-color: #ffd9d0; }
.pc-col h3 { display: flex; align-items: center; gap: .45rem; font-size: 1rem; margin-bottom: .7rem; font-family: var(--sans); font-weight: 700; }
.pc-col h3 svg { width: 1.1em; height: 1.1em; flex: none; }
.pc-col.pros h3 { color: #067a56; }
.pc-col.contras h3 { color: #c8341a; }
.pc-col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.pc-col li { display: grid; grid-template-columns: 1.15em 1fr; gap: .5rem; font-size: .9rem; line-height: 1.45; }
.pc-col li svg { width: 1.1em; height: 1.1em; flex: none; margin-top: .18rem; }
.pc-col.pros li svg { color: var(--mint); }
.pc-col.contras li svg { color: var(--deal); }

.ideal-box {
  display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start;
  background: var(--accent-soft); border-radius: var(--r); padding: 1.05rem 1.2rem;
}
.ideal-box .ideal-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.ideal-box .ideal-ico svg { width: 17px; height: 17px; flex: none; color: #fff; }
.ideal-box h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); font-family: var(--sans); font-weight: 600; margin-bottom: .25rem; }
.ideal-box p { font-size: .96rem; color: var(--ink-2); }

/* reseñas */
.reviews-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem;
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.review-author { font-size: .84rem; font-weight: 600; }
.review-title { font-size: .95rem; font-weight: 600; line-height: 1.35; }
.review-text { font-size: .88rem; color: var(--text-2); line-height: 1.55; }
.review-foot { display: flex; align-items: center; gap: .5rem; font-size: .74rem; color: var(--text-3); flex-wrap: wrap; }
.review-verified { display: inline-flex; align-items: center; gap: .25rem; color: var(--mint); font-weight: 600; }
.review-verified svg { width: 1em; height: 1em; flex: none; }

/* barra fija de compra en móvil */
.buy-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: none; align-items: center; gap: .8rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.buy-bar .bb-price { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.buy-bar .btn { margin-left: auto; }

/* =============================================================
   9. Comparador
   ============================================================= */
.cmp-picker { display: grid; gap: 1rem; }
.cmp-slots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem;
  /* sin overflow: los badges «quitar» sobresalen de la esquina */
  padding: .55rem .55rem 0;
}
.cmp-slot-wrap { position: relative; }
.cmp-slot {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem;
  padding: .8rem .6rem; min-height: 148px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  text-align: center;
}
.cmp-slot.empty {
  border-style: dashed; background: transparent; color: var(--text-3);
  justify-content: center; gap: .35rem;
}
.cmp-slot.empty svg { width: 20px; height: 20px; flex: none; }
.cmp-slot-thumb { width: 100%; aspect-ratio: 1/1; max-height: 78px; overflow: hidden; display: grid; place-items: center; }
.cmp-slot-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cmp-slot-name { font-size: .78rem; font-weight: 600; line-height: 1.25; }
.cmp-slot-price { font-size: .78rem; color: var(--text-2); }
.cmp-remove {
  position: absolute; top: -8px; right: -8px; z-index: 3;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(8,11,20,.3);
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.cmp-remove svg { width: 11px; height: 11px; flex: none; }
.cmp-remove:hover { background: var(--deal); transform: scale(1.08); }

.cmp-search { position: relative; }
.cmp-search input {
  width: 100%; padding: .8rem 1rem .8rem 2.5rem; font: inherit; font-size: .95rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--text);
}
.cmp-search input::placeholder { color: var(--text-3); }
.cmp-search > svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.cmp-results {
  position: absolute; z-index: 30; inset: calc(100% + .4rem) 0 auto 0;
  max-height: 330px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-2); padding: .35rem;
}
.cmp-results:empty { display: none; }
.cmp-result {
  display: grid; grid-template-columns: 40px 1fr auto; gap: .7rem; align-items: center;
  width: 100%; padding: .5rem .6rem; border-radius: var(--r-sm); text-align: left;
  transition: background-color .2s var(--ease-out);
}
.cmp-result:hover, .cmp-result:focus-visible { background: var(--surface-2); }
.cmp-result img { width: 40px; height: 40px; object-fit: contain; }
.cmp-result b { display: block; font-size: .87rem; font-weight: 600; }
.cmp-result span { font-size: .76rem; color: var(--text-3); }
.cmp-result em { font-style: normal; font-size: .85rem; font-weight: 600; color: var(--accent); }
.cmp-result[disabled] { opacity: .42; cursor: default; }

/* tabla comparativa */
.cmp-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.cmp-table { min-width: 640px; font-size: .875rem; }
.cmp-table th, .cmp-table td { padding: .68rem .85rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.cmp-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); }
.cmp-table tbody th {
  position: sticky; left: 0; z-index: 1; background: var(--surface);
  font-weight: 500; color: var(--text-2); min-width: 175px;
  box-shadow: 1px 0 0 var(--line-soft);
}
.cmp-table tr.group-row th {
  background: var(--surface-2); font-family: var(--sans); font-weight: 600;
  font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.cmp-table td.best { background: var(--mint-soft); font-weight: 600; }
.cmp-table td.best::after { content: "★"; margin-left: .35rem; color: var(--mint); font-size: .8em; }
.cmp-table td.na { color: var(--text-3); }
.cmp-head-prod { display: flex; flex-direction: column; gap: .35rem; min-width: 145px; }
.cmp-head-prod img { width: 100%; max-width: 92px; aspect-ratio: 1/1; object-fit: contain; }
.cmp-head-prod b { font-size: .85rem; line-height: 1.25; }
.cmp-head-prod .btn { padding: .5rem .85rem; font-size: .8rem; }

.cmp-empty { display: grid; place-items: center; gap: .7rem; padding: clamp(2rem, 6vw, 4rem) 1rem; text-align: center; color: var(--text-2); }
.cmp-empty svg { width: 40px; height: 40px; color: var(--text-3); }

.cmp-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .8rem; font-size: .78rem; color: var(--text-3); }
.cmp-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.cmp-swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }


/* =============================================================
   7b. Estimación de durabilidad
   ============================================================= */
.dur-form {
  display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.dur-form label { display: grid; gap: .3rem; }
.dur-form label span {
  font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-3);
}
.dur-form select {
  width: 100%; padding: .6rem 2.2rem .6rem .85rem;
  font: inherit; font-size: .9rem; color: var(--text);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8497' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm); appearance: none;
}
.dur-form select:hover { border-color: var(--accent); }

.dur-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }

.dur-card {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.dur-card.is-best { border-color: var(--mint); background: var(--mint-soft); }
.dur-card.is-best::after {
  content: "Aguantaría más"; position: absolute; top: -9px; right: .9rem;
  background: var(--mint); color: #fff; font-size: .68rem; font-weight: 700;
  padding: .18rem .55rem; border-radius: 999px; letter-spacing: .02em;
}
.dur-head { display: flex; align-items: center; gap: .45rem; font-size: .88rem; line-height: 1.25; }
.dur-head .cmp-swatch { margin-top: 1px; }

.dur-anios { display: flex; align-items: baseline; gap: .4rem; }
.dur-anios span {
  font-family: var(--display); font-size: 1.75rem; font-weight: 600;
  letter-spacing: -.03em; line-height: 1;
}
.dur-anios small { font-size: .75rem; color: var(--text-3); }

.dur-barra { height: 6px; border-radius: 999px; background: rgba(16,23,40,.09); overflow: hidden; }
.dur-barra i { display: block; height: 100%; border-radius: 999px; transition: width .8s var(--ease-out); }

.dur-datos { display: grid; gap: .3rem; margin: 0; }
.dur-datos > div { display: flex; justify-content: space-between; gap: .6rem; font-size: .8rem; }
.dur-datos dt { color: var(--text-3); }
.dur-datos dd { margin: 0; font-weight: 600; text-align: right; }

.dur-factores { list-style: none; padding: 0; margin: .2rem 0 0; display: grid; gap: .3rem; }
.dur-factores li {
  font-size: .77rem; line-height: 1.4; padding-left: .1rem;
  color: var(--text-2);
}
.dur-factores li b { font-weight: 700; }
.dur-factores li b.malo { color: var(--deal); }
.dur-factores li b.bueno { color: #067a56; }

.dur-metodo {
  margin-top: 1.4rem; border-top: 1px solid var(--line);
  padding-top: 1rem; font-size: .88rem; color: var(--text-2);
}
.dur-metodo summary {
  cursor: pointer; font-weight: 600; color: var(--accent);
  font-size: .88rem; list-style: none;
}
.dur-metodo summary::-webkit-details-marker { display: none; }
.dur-metodo summary::before { content: "▸ "; }
.dur-metodo[open] summary::before { content: "▾ "; }
.dur-metodo p { margin-top: .8rem; line-height: 1.6; }
.dur-metodo ul { margin: .8rem 0 0 1.1rem; display: grid; gap: .45rem; }
.dur-metodo strong { color: var(--text); }

/* =============================================================
   10. Filtros de categoría / ofertas
   ============================================================= */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.4rem; }
.filter-btn {
  padding: .45rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  transition: all .25s var(--ease-out);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters select {
  padding: .45rem 2rem .45rem .85rem; border-radius: 999px; font: inherit; font-size: .84rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8497' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center / 13px;
  border: 1px solid var(--line); color: var(--text-2); appearance: none;
}
.filters-count { margin-left: auto; font-size: .82rem; color: var(--text-3); }

/* fila de oferta */
.deal-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: .9rem 1rem;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.deal-row:hover { border-color: var(--accent); box-shadow: var(--shadow-1); }
.deal-media { aspect-ratio: 1/1; display: grid; place-items: center; background: var(--surface-2); border-radius: var(--r-sm); padding: .4rem; }
.deal-media img { width: 100%; height: 100%; object-fit: contain; }
.deal-info { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.deal-info h3 { font-size: 1rem; }
.deal-actions { display: flex; flex-direction: column; align-items: end; gap: .5rem; }
.deal-save { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--deal); }

/* =============================================================
   11. Revelados y efectos
   ============================================================= */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-d1.in { transition-delay: .06s; }
.reveal-d2.in { transition-delay: .12s; }
.reveal-d3.in { transition-delay: .18s; }
/* si el JS no llega a arrancar, el contenido se ve igualmente */
.no-js .reveal, html:not(.is-ready) .reveal { opacity: 1; transform: none; }

.radar-poly { transition: opacity .4s var(--ease-out); }

/* migas */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--text-3); padding-top: 1.1rem; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--line); }

/* =============================================================
   12. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .7rem var(--gutter) 1.1rem; box-shadow: var(--shadow-2);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .7rem .6rem; font-size: .98rem; }
  .nav-links a.nav-cta { justify-content: center; margin-top: .4rem; }
  .nav-toggle { display: grid; }
  .cmp-slots { grid-template-columns: repeat(2, 1fr); }
  .deal-row { grid-template-columns: 68px 1fr; }
  .deal-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .gallery-thumbs { grid-template-columns: repeat(6, 1fr); gap: .3rem; }
  .buy-bar { display: flex; }
  body.has-buybar { padding-bottom: 72px; }
  .score-bar { grid-template-columns: 6.6rem 1fr 2rem; font-size: .8rem; }
}

@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
  .pc-grid { grid-template-columns: 1fr 1fr; }
  .score-panel { grid-template-columns: minmax(0, 290px) 1fr; gap: 2rem; }
  .footer-legal { grid-template-columns: 1fr; }
}

@media (min-width: 720px) {
  .pc-grid { grid-template-columns: 1fr 1fr; }
  .score-panel { grid-template-columns: minmax(0, 300px) 1fr; gap: 2rem; }
}

@media (min-width: 960px) {
  .ficha-top { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: start; }
  .ficha-sticky { position: sticky; top: 88px; }
}

@media (min-width: 1024px) {
  .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
}

/* =============================================================
   13. Movimiento reducido — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* =============================================================
   14. Impresión
   ============================================================= */
@media print {
  .site-header, .site-footer, .buy-bar, .cmp-search, .btn { display: none !important; }
  body { background: #fff; }
  .card, .panel, .cmp-tablewrap { box-shadow: none; border-color: #ccc; }
}
