/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f7f6f4;
  --surface: #ffffff;
  --surface-soft: #f1ede7;
  --border: #e2dcd3;
  --text: #201a14;
  --text-muted: #6b6155;
  --accent: #c2540c;
  --accent-hover: #a3450a;
  --accent-soft: #fbe9dc;
  --danger: #b3441f;
  --danger-soft: #fbe9e2;
  --ok: #1f7a4d;
  --ok-soft: #e8f5ee;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-card: 0 1px 2px rgba(32,26,20,.05), 0 8px 24px rgba(32,26,20,.07);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Lexend", var(--sans);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.16; letter-spacing: -0.01em; font-weight: 700; }
::selection { background: var(--accent); color: #fff; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =============================================================
   3. Utilities
   ============================================================= */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 900px; margin-inline: auto; padding-inline: 1.1rem; }
.container-wide { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1.1rem; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem;
  background: var(--text); color: #fff; z-index: 9999; border-radius: 8px;
  font-weight: 600; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Header / footer
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,246,244,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.brand-mark { color: var(--accent); font-size: 1.25rem; }
.header-nav { display: none; gap: 1.3rem; font-size: .88rem; font-weight: 500; color: var(--text-muted); }
.header-nav a:hover, .header-nav a.is-current { color: var(--accent); }
@media (min-width: 780px) { .header-nav { display: flex; } }

.site-footer { border-top: 1px solid var(--border); padding-block: 2rem 1.2rem; margin-top: 3rem; color: var(--text-muted); font-size: .88rem; }
.footer-cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-cols h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text); margin-bottom: .6rem; }
.footer-cols ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-cols a:hover { color: var(--accent); }
.disclaimer-line { margin-top: 1.4rem; font-size: .78rem; opacity: .85; max-width: 76ch; }

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  padding-block: 3.6rem 2rem; text-align: center; position: relative; overflow: clip;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 420px; z-index: -1;
  background:
    radial-gradient(60% 60% at 22% 30%, rgba(194,84,12,.14), transparent 70%),
    radial-gradient(50% 50% at 82% 20%, rgba(15,107,92,.10), transparent 70%);
  filter: blur(2px);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 26ch; margin-inline: auto; }
.hero-sub { margin-top: 1rem; font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--text-muted); max-width: 60ch; margin-inline: auto; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.1rem;
  padding: .4rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; box-shadow: var(--shadow-card);
}
.hero-kicker svg { width: 15px; height: 15px; flex: none; }

.page-hero { padding-block: 1.6rem .6rem; }
.page-hero h1 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); max-width: 36ch; }
.page-hero .hero-sub { margin-inline: 0; max-width: 68ch; }
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: .6rem; }
.breadcrumb a:hover { color: var(--accent); }

/* =============================================================
   6. Hub grid
   ============================================================= */
.hub-layout { display: grid; gap: 1.6rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
@media (min-width: 1024px) { .hub-layout { grid-template-columns: 1fr 260px; align-items: start; } }

.guide-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }

.guide-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: var(--shadow-card); transition: transform .15s var(--ease-out), border-color .15s var(--ease-out);
}
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-card-icon {
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
  width: 52px; height: 52px; border-radius: var(--radius-m); background: var(--accent-soft); margin-bottom: .2rem;
}
.guide-card-icon svg, .icon-guide { width: 26px; height: 26px; flex: none; }
.guide-card h2 { font-size: 1.15rem; }
.guide-card p { color: var(--text-muted); font-size: .92rem; }
.guide-card .card-cta { margin-top: .4rem; font-weight: 700; font-size: .86rem; color: var(--accent); }

.sidebar-ad-slot { display: none; position: sticky; top: 76px; }
@media (min-width: 1024px) { .sidebar-ad-slot { display: block; } }

/* =============================================================
   7. Article / guide content
   ============================================================= */
.article-layout { display: grid; gap: 1.6rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: 1fr 260px; align-items: start; } }

.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin-top: 2rem; margin-bottom: .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 1.3rem; margin-bottom: .5rem; }
.prose p { color: var(--text-muted); margin-bottom: .9rem; font-size: .97rem; }
.prose p strong, .prose li strong { color: var(--text); }
.prose ul, .prose ol { color: var(--text-muted); font-size: .97rem; margin: 0 0 1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.prose .tip-box {
  background: var(--accent-soft); border-radius: var(--radius-m); padding: 1rem 1.2rem;
  margin-block: 1.2rem; font-size: .92rem;
}
.prose .tip-box strong { color: var(--accent-hover); }
.guia-toc {
  display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.6rem 0; padding: 0;
}
.guia-toc li { margin: 0; }
.guia-toc a {
  display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text); font-size: .84rem; font-weight: 600; text-decoration: none;
}
.guia-toc a:hover { border-color: var(--accent); color: var(--accent); }
.prose .segmento-intro { margin-bottom: 1rem; }
.prose h2[id] { scroll-margin-top: 90px; }

/* Spec / comparison table for buying guides */
.spec-table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--border); margin-block: 1.2rem; }
.spec-table { font-size: .88rem; min-width: 480px; }
.spec-table th, .spec-table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table thead th { background: var(--surface-soft); font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:nth-child(odd) { background: var(--surface); }
.spec-table tbody tr:nth-child(even) { background: var(--bg); }

/* Product recommendation slot — filled in later with real Amazon products */
.product-slot {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-m);
  padding: 1.1rem 1.2rem; margin-block: .8rem;
}
.product-slot-info { flex: 1; min-width: 200px; }
.product-slot-info .slot-category { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.product-slot-info .slot-note { font-size: .84rem; color: var(--text-muted); margin-top: .3rem; }
.product-slot-cta {
  padding: .55rem 1rem; border-radius: 999px; background: var(--surface-soft);
  color: var(--text-muted); font-size: .8rem; font-weight: 600; border: 1px solid var(--border);
}

/* =============================================================
   8. Ad slots (placeholders)
   ============================================================= */
.ad-slot {
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); border-radius: var(--radius-m);
  color: var(--text-muted); font-size: .78rem; letter-spacing: .08em;
  margin-block: 1.6rem;
}
.ad-slot.ad-slot-sidebar { min-height: 480px; margin-block: 0; }
.ad-label { font-weight: 700; opacity: .55; }

/* =============================================================
   9. Content sections (explain, FAQ, more, affiliate notice)
   ============================================================= */
.explain-section, .faq-section, .more-section { padding-block: 1.6rem; }
.explain-section h2, .faq-section h2, .more-section h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-bottom: 1rem; }
.explain-copy { max-width: 76ch; }
.explain-copy p { color: var(--text-muted); margin-bottom: .9rem; font-size: .96rem; }
.explain-copy strong { color: var(--text); }

.faq-list { display: flex; flex-direction: column; gap: .6rem; max-width: 76ch; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: .9rem 1.1rem; }
.faq-item summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-muted); margin-top: .7rem; font-size: .92rem; }

.more-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
.more-card {
  display: flex; flex-direction: column; gap: .3rem; padding: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  transition: border-color .15s var(--ease-out);
}
.more-card:hover { border-color: var(--accent); }
.more-card .card-icon {
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
  width: 42px; height: 42px; border-radius: var(--radius-s); background: var(--accent-soft); margin-bottom: .1rem;
}
.more-card .card-icon svg, .icon-more { width: 21px; height: 21px; flex: none; }
.more-card h3 { font-size: .95rem; }
.more-card p { color: var(--text-muted); font-size: .82rem; }

.affiliate-notice {
  background: var(--surface-soft); border-radius: var(--radius-m); padding: .9rem 1.1rem;
  font-size: .8rem; color: var(--text-muted); margin-block: 1.4rem; max-width: 76ch;
}

/* =============================================================
   10. Header nav (extra items -> dropdown on small screens)
   ============================================================= */
.header-nav a.is-current { color: var(--accent); }
.nav-toggle {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: var(--radius-s); border: 1px solid var(--border);
}
.nav-toggle svg { width: 18px; height: 18px; }
@media (min-width: 780px) { .nav-toggle { display: none; } }
.mobile-nav {
  display: none; flex-direction: column; gap: .1rem; padding: .6rem 0 1rem;
  border-top: 1px solid var(--border);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: .6rem .2rem; font-size: .95rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: 0; }
@media (min-width: 780px) { .mobile-nav { display: none !important; } }

.badge-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 .3rem; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 800; margin-left: .3rem;
}

/* =============================================================
   11. Catalog grid + product card (home, category, ofertas)
   ============================================================= */
.catalog-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 540px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .18s var(--ease-out), border-color .18s var(--ease-out);
  position: relative;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.product-card-media {
  aspect-ratio: 4/3; background: var(--surface-soft); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); overflow: hidden; position: relative;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-media svg, .icon-nicho { width: 42px; height: 42px; flex: none; }
.product-card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.product-card-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.product-card h3 { font-size: 1.02rem; line-height: 1.3; }
.product-card .card-desc { font-size: .86rem; color: var(--text-muted); flex: 1; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .3rem; }
.product-card-price { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.product-card-price .price-before { font-family: var(--sans); font-weight: 500; font-size: .8rem; color: var(--text-muted); text-decoration: line-through; margin-right: .35rem; }
.product-card-rating { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: .25rem; }

.demo-ribbon {
  position: absolute; top: .7rem; left: -.5rem; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 0 999px 999px 0; box-shadow: 0 2px 6px rgba(0,0,0,.15);
  z-index: 2;
}
.demo-banner {
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-m);
  padding: 1rem 1.2rem; margin-block: 1.2rem; font-size: .88rem; color: var(--accent-hover); max-width: 90ch;
}
.demo-banner strong { color: var(--accent-hover); }

.offer-badge {
  display: inline-block; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800;
  padding: .22rem .55rem; border-radius: 999px; letter-spacing: .02em;
}

.empty-state {
  text-align: center; padding: 2.6rem 1.4rem; background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius-l); color: var(--text-muted); max-width: 70ch; margin-inline: auto;
}
.empty-state .empty-icon { display: flex; justify-content: center; margin-bottom: .6rem; color: var(--accent); }
.empty-state .empty-icon svg, .icon-empty { width: 40px; height: 40px; flex: none; }

/* =============================================================
   12. Ficha (product page)
   ============================================================= */
.ficha-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-block: 1.6rem 2rem; }
@media (min-width: 960px) { .ficha-layout { grid-template-columns: 1fr 1.15fr; align-items: start; } }

.ficha-galeria { position: sticky; top: 76px; }
.ficha-img-main {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-l);
  background: var(--surface-soft); border: 1px solid var(--border);
}
.ficha-img-placeholder {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-l); background: var(--surface-soft);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.ficha-img-placeholder svg, .icon-placeholder { width: 64px; height: 64px; flex: none; }
.ficha-thumbs { display: flex; gap: .5rem; margin-top: .6rem; list-style: none; flex-wrap: wrap; }
.ficha-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--border); cursor: pointer; }
.ficha-thumbs img.is-active { border-color: var(--accent); border-width: 2px; }

.ficha-marca { font-size: .84rem; color: var(--text-muted); font-weight: 600; }
.ficha-nombre { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: .2rem; }
.ficha-rating { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .88rem; color: var(--text-muted); }
.stars { color: #d99a1f; letter-spacing: 1px; }

.ficha-precio { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; }
.precio-actual { font-family: var(--display); font-size: 1.7rem; font-weight: 800; }
.precio-antes { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.precio-nota { width: 100%; font-size: .78rem; color: var(--text-muted); }

.btn-comprar {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1.1rem; padding: .9rem 1.6rem; border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: .96rem; box-shadow: 0 6px 18px rgba(194,84,12,.28);
  transition: background .15s var(--ease-out), transform .15s var(--ease-out);
}
.btn-comprar:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-comprar.btn-repeat { margin-block: 1.6rem; }
.btn-comprar.is-demo { background: var(--surface-soft); color: var(--text-muted); box-shadow: none; border: 1px solid var(--border); }

.ficha-radar { margin-top: 2rem; }
.ficha-radar h2, .ficha-specs h2, .ficha-editorial h2, .ficha-resenas h2 { font-size: 1.25rem; margin-bottom: .8rem; }
.radar-wrap { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.radar-wrap canvas { max-width: 100%; }
.radar-legend { display: flex; flex-direction: column; gap: .35rem; font-size: .84rem; }
.radar-legend span { display: flex; align-items: center; gap: .45rem; }
.radar-legend .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.radar-note { font-size: .78rem; color: var(--text-muted); margin-top: .5rem; }

.ficha-specs { margin-top: 2rem; }
.specs-extra { margin-top: .8rem; font-size: .86rem; }
.specs-extra summary { cursor: pointer; font-weight: 600; color: var(--accent); }

.ficha-editorial { margin-top: 2rem; }
.editorial-cuerpo p { color: var(--text-muted); margin-bottom: .9rem; font-size: .96rem; }
.pros-contras { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 560px) { .pros-contras { grid-template-columns: 1fr 1fr; } }
.pros-contras ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.pros-contras li { padding-left: 1.5rem; position: relative; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.contras li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 800; }
.ideal-para { margin-top: 1.2rem; background: var(--accent-soft); border-radius: var(--radius-m); padding: .9rem 1.1rem; font-size: .92rem; }

.ficha-resenas { margin-top: 2rem; }
.resenas-resumen { color: var(--text-muted); font-size: .94rem; margin-bottom: 1rem; }
.resena-item { padding: .9rem 0; border-bottom: 1px solid var(--border); }
.resena-item:last-child { border-bottom: 0; }
.resena-autor { font-weight: 700; font-size: .88rem; }

.ficha-comparar { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn-comparar-add {
  padding: .65rem 1.2rem; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--border);
  font-weight: 700; font-size: .86rem; transition: border-color .15s var(--ease-out);
}
.btn-comparar-add:hover { border-color: var(--accent); }
.btn-comparar-add.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ficha-ir-comparador { font-weight: 700; font-size: .86rem; color: var(--accent); text-decoration: none; }
.ficha-ir-comparador:hover { text-decoration: underline; }
.ficha-relacionados { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.ficha-relacionados h2 { font-size: 1.2rem; margin-bottom: 1rem; }

.similares { margin-top: 2rem; }
.similares h3 { font-size: 1.05rem; margin-bottom: .8rem; }

.aviso-afiliados {
  margin-top: 2.2rem; padding: .9rem 1.1rem; background: var(--surface-soft); border-radius: var(--radius-m);
  font-size: .78rem; color: var(--text-muted);
}

/* =============================================================
   13. Comparador
   ============================================================= */
.comparador-picker {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 1.2rem; margin-block: 1.4rem; box-shadow: var(--shadow-card);
}
.comparador-picker h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.comparador-nicho-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.comparador-nicho-tabs button {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); font-size: .84rem; font-weight: 700;
}
.comparador-nicho-tabs button svg, .icon-tab { width: 16px; height: 16px; flex: none; }
.comparador-nicho-tabs button.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.comparador-checklist { display: grid; gap: .6rem; grid-template-columns: 1fr; }
.comparador-checklist[hidden] { display: none; }
@media (min-width: 640px) { .comparador-checklist { grid-template-columns: repeat(2, 1fr); } }
.comparador-check-item {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 1px solid var(--border);
  border-radius: var(--radius-s); font-size: .88rem; cursor: pointer;
}
.comparador-check-item input { accent-color: var(--accent); width: 16px; height: 16px; }
.comparador-max-hint { font-weight: 400; font-size: .82rem; color: var(--text-muted); }
.comparador-limit-msg { margin-top: .9rem; padding: .7rem .9rem; border-radius: var(--radius-s); background: var(--danger-soft); color: var(--danger); font-size: .86rem; font-weight: 600; }
.comparador-limit-msg[hidden] { display: none; }

.comparador-empty { margin-top: 1.4rem; }

.comparador-result { margin-top: 1.8rem; }
.comparador-radar-overlay { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; margin-bottom: 1.6rem; }

.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--border); }
.compare-table { font-size: .86rem; min-width: 560px; }
.compare-table th, .compare-table td { padding: .65rem .85rem; border-bottom: 1px solid var(--border); text-align: center; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface-soft); font-weight: 600; }
.compare-table thead th { background: var(--surface-soft); font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.compare-table .compare-col-head { padding: .9rem .85rem; }
.compare-table .compare-col-head .compare-name-link { color: inherit; text-decoration: none; display: block; }
.compare-table .compare-col-head .compare-name-link div { color: var(--text); font-weight: 700; }
.compare-table .compare-col-head .compare-name-link:hover div { color: var(--accent); text-decoration: underline; }
.compare-table .compare-col-head img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-s); margin: 0 auto .4rem; }
.compare-table .compare-col-head .compare-ver-ficha { display: block; margin-top: .4rem; font-size: .74rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.compare-table .compare-col-head .compare-ver-ficha:hover { text-decoration: underline; }
.compare-table .compare-col-head .btn-comprar { margin-top: .5rem; padding: .5rem .9rem; font-size: .78rem; }
.compare-table td.is-best { background: var(--ok-soft); font-weight: 700; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .compare-list-cell, .compare-table .compare-text-cell { text-align: left; vertical-align: top; }
.compare-table .compare-list-cell ul { margin: 0; padding-left: 1.1rem; font-size: .82rem; }
.compare-table .compare-list-cell li { margin-bottom: .3rem; }
.compare-table .compare-text-cell { font-size: .84rem; font-style: italic; color: var(--text-muted); }
.compare-remove { font-size: .74rem; color: var(--danger); margin-top: .3rem; }

/* =============================================================
   14. Ranking / listado ordenado
   ============================================================= */
.ranking-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; counter-reset: rank; }
.ranking-item {
  counter-increment: rank; display: flex; gap: 1rem; align-items: center; padding: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
}
.ranking-item::before {
  content: counter(rank); font-family: var(--display); font-size: 1.3rem; font-weight: 800; color: var(--accent);
  width: 2.2rem; text-align: center; flex-shrink: 0;
}
.ranking-item .ranking-info { flex: 1; }
.ranking-item .ranking-info h3 { font-size: .98rem; }
.ranking-item .ranking-metric { font-size: .8rem; color: var(--text-muted); }
