/* =============================================================
   NucleoPC — comparativas de computadoras
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Buttons
   6. Nav  7. Hero  8. Cards  9. Spec table  10. Radar
   11. Gallery  12. Ficha  13. Comparator  14. Filters
   15. Guides/blog  16. Ofertas  17. Footer/legal  18. Responsive
   19. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --ink: #15171c;
  --ink-soft: #454a54;
  --muted: #767c88;
  --border: #e3e1da;
  --accent: #2f5df6;
  --accent-ink: #ffffff;
  --accent-soft: #e8edff;
  --gold: #b8862f;
  --good: #1f8a5f;
  --bad: #d0483a;
  --offer: #d0483a;
  --radar-1: #2f5df6;
  --radar-2: #b8862f;
  --radar-3: #1f8a5f;
  --radar-4: #7c3aed;
  --shadow-sm: 0 1px 2px rgba(20,20,25,.06), 0 1px 1px rgba(20,20,25,.04);
  --shadow-md: 0 8px 24px rgba(20,20,25,.08), 0 2px 6px rgba(20,20,25,.05);
  --shadow-lg: 0 24px 60px rgba(20,20,25,.14), 0 8px 20px rgba(20,20,25,.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container: 1280px;
  --nav-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216;
    --surface: #171a20;
    --surface-2: #1e222a;
    --ink: #f3f2ee;
    --ink-soft: #c7cbd4;
    --muted: #8a8f9c;
    --border: #2a2e37;
    --accent: #6a8bff;
    --accent-ink: #0c1120;
    --accent-soft: #1c2440;
    --gold: #d8ab5b;
    --good: #3fc98a;
    --bad: #f0685a;
    --offer: #f0685a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow-md: 0 8px 24px rgba(0,0,0,.45);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
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 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.muted { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .02em;
  padding: .3rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft);
  border: 1px solid var(--border);
}
.badge.badge-offer { background: var(--offer); color: #fff; border-color: transparent; }
.badge.badge-good { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.divider { height: 1px; background: var(--border); border: 0; margin-block: 2rem; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.15em; color: var(--ink-soft); }
.prose h2, .prose h3 { margin-block: 1.6em .6em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.15em; color: var(--ink-soft); }
.prose ul li { margin-bottom: .4em; }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s var(--ease-out);
  white-space: nowrap;
}
.btn-buy {
  background: linear-gradient(180deg, #ff9f2b, #ff7a00); color: #201200;
  box-shadow: 0 6px 18px rgba(255,122,0,.35);
}
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,122,0,.45); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .55rem 1.05rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* =============================================================
   6. Nav
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
.nav-row { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--radar-4));
  display: grid; place-items: center; color: #fff; font-family: var(--mono); font-size: .8rem; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: color .2s var(--ease-out); position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover {
  color: var(--accent-ink); background: var(--accent); padding: .5rem 1rem; border-radius: 999px; font-weight: 600;
}
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.currency-toggle {
  display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: .2rem; gap: .1rem;
}
.currency-toggle button {
  padding: .35rem .7rem; border-radius: 999px; font-family: var(--mono); font-size: .72rem; font-weight: 700;
  color: var(--muted); transition: all .2s var(--ease-out);
}
.currency-toggle button.is-active { background: var(--accent); color: var(--accent-ink); }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 999px; border: 1px solid var(--border); font-family: var(--mono); font-size: .75rem; font-weight: 700;
  color: var(--ink-soft); transition: all .2s var(--ease-out);
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  align-items: center; justify-content: center; background: var(--surface);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s var(--ease-out);
}
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(6px); }
.nav-toggle span { position: absolute; }
.nav-toggle.is-open::before { transform: translateY(0) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(0) rotate(-45deg); }
.nav-toggle.is-open span { opacity: 0; }
.mobile-panel {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 400;
  background: var(--bg); padding: 1.5rem 1.25rem; overflow-y: auto;
}
.mobile-panel.is-open { display: block; }
.mobile-panel a { display: block; padding: 1rem 0; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--border); }

.compare-bar {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 600;
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
  background: var(--ink); color: var(--bg); border-radius: 999px; box-shadow: var(--shadow-lg);
}
.compare-bar.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.compare-bar a { display: block; padding: .85rem 1.5rem; font-weight: 600; font-size: .92rem; white-space: nowrap; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); position: relative; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
.hero-title { max-width: 15ch; }
.hero-title .accent-word { color: var(--accent); font-style: italic; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2rem; }
.hero-stat b { display: block; font-family: var(--serif); font-size: 1.8rem; }
.hero-stat span { font-size: .82rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-visual {
  border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); padding: 1.5rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: -60% -20% auto -20%; height: 140%;
  background: radial-gradient(45% 45% at 50% 50%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  filter: blur(60px); pointer-events: none;
}

/* =============================================================
   8. Cards
   ============================================================= */
.grid { display: grid; gap: 1.4rem; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

.product-card .card-media { aspect-ratio: 4/3; background: var(--surface-2); position: relative; overflow: hidden; }
.product-card .card-media img { width: 100%; height: 100%; object-fit: contain; padding: 1.1rem; transition: transform .5s var(--ease-out); }
.product-card:hover .card-media img { transform: scale(1.05); }
.card-badges { position: absolute; top: .65rem; left: .65rem; display: flex; gap: .4rem; flex-wrap: wrap; z-index: 2; }
.card-body { padding: 1.15rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-cat { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card-title { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.card-title a { transition: color .2s var(--ease-out); }
.card-title a:hover { color: var(--accent); }
.card-meta { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.stars { color: var(--gold); font-size: .82rem; letter-spacing: 1px; }
.card-specs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .1rem; }
.spec-chip {
  font-family: var(--mono); font-size: .68rem; background: var(--surface-2); color: var(--ink-soft);
  padding: .28rem .5rem; border-radius: 6px; border: 1px solid var(--border);
}
.card-price-row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding-top: .75rem; }
.price-now { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.price-was { font-size: .82rem; color: var(--muted); text-decoration: line-through; }
.card-actions { display: flex; gap: .5rem; margin-top: .85rem; }
.card-actions .btn { flex: 1; }
.card-compare-toggle {
  display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; padding: .4rem .7rem; background: var(--surface);
  transition: all .2s var(--ease-out);
}
.card-compare-toggle input { accent-color: var(--accent); }
.card-compare-toggle.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.category-card {
  padding: 1.6rem; display: flex; flex-direction: column; gap: .5rem; justify-content: space-between; min-height: 160px;
  background: var(--surface);
}
.category-card .cat-icon { font-family: var(--mono); font-size: 1.6rem; color: var(--accent); }
.category-card .cat-count { font-size: .82rem; color: var(--muted); }

.guide-card { padding: 0; }
.guide-card .card-media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); display: grid; place-items: center; }
.guide-card .card-media span { font-family: var(--mono); font-size: .72rem; color: var(--accent); font-weight: 700; text-transform: uppercase; }

/* =============================================================
   9. Spec table
   ============================================================= */
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.spec-table { min-width: 100%; }
.spec-table caption {
  text-align: left; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); background: var(--surface-2);
  font-weight: 700;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th, .spec-table td { text-align: left; padding: .8rem 1.1rem; font-size: .92rem; vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 42%; }
.spec-table td { font-weight: 600; }
.spec-table td .unit { font-weight: 400; color: var(--muted); font-size: .85em; margin-left: .2em; }

/* =============================================================
   10. Radar chart
   ============================================================= */
.radar-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.radar-svg { width: 100%; max-width: 380px; }
.radar-grid { fill: none; stroke: var(--border); stroke-width: 1; }
.radar-axis-line { stroke: var(--border); stroke-width: 1; }
.radar-label { font-family: var(--mono); font-size: 9px; fill: var(--muted); text-transform: uppercase; }
.radar-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; justify-content: center; }
.radar-legend-item { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--ink-soft); }
.radar-legend-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* =============================================================
   11. Gallery
   ============================================================= */
.ficha-gallery { display: grid; grid-template-columns: 84px 1fr; gap: .9rem; }
.gallery-thumbs { display: flex; flex-direction: column; gap: .6rem; max-height: 480px; overflow-y: auto; }
.gallery-thumbs button {
  border-radius: 10px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 1; background: var(--surface-2);
  transition: border-color .2s var(--ease-out);
}
.gallery-thumbs button.is-active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main {
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 1.75rem; }

/* =============================================================
   12. Ficha (product page)
   ============================================================= */
.ficha-header { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2rem 1rem; }
.ficha-top { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.ficha-info { display: flex; flex-direction: column; gap: 1rem; }
.ficha-crumbs { font-size: .82rem; color: var(--muted); display: flex; gap: .4rem; flex-wrap: wrap; }
.ficha-crumbs a:hover { color: var(--accent); }
.ficha-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.ficha-rating { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.ficha-price-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.4rem;
  display: flex; flex-direction: column; gap: .9rem;
}
.ficha-price-row { display: flex; align-items: baseline; gap: .75rem; }
.ficha-price-now { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; }
.ficha-price-date { font-size: .76rem; color: var(--muted); }
.ficha-highlight {
  background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-sm); padding: .75rem 1rem;
  font-size: .9rem; font-weight: 600;
}
.ficha-section { padding-block: 2rem; border-top: 1px solid var(--border); }
.ficha-section-title { margin-bottom: 1.25rem; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.pros-cons ul { display: flex; flex-direction: column; gap: .65rem; }
.pros-cons li { display: flex; gap: .6rem; font-size: .95rem; align-items: flex-start; }
.pc-col h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.pc-col h3 svg { width: 1.15em; height: 1.15em; flex: none; }
.pc-pros li::before { content: "+"; color: var(--good); font-weight: 700; font-family: var(--mono); flex: none; }
.pc-cons li::before { content: "–"; color: var(--bad); font-weight: 700; font-family: var(--mono); flex: none; }
.ideal-para {
  padding: 1.4rem 1.6rem; background: var(--surface-2); border-radius: var(--radius-md);
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); margin-top: 1.4rem;
  position: relative;
}
.ideal-para::before {
  content: "“"; font-family: var(--serif); font-style: normal; color: var(--accent);
  font-size: 2.4rem; line-height: 0; position: relative; top: .5rem; margin-right: .15rem;
}
.review-list { display: flex; flex-direction: column; gap: 1rem; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; }
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; font-size: .85rem; }
.review-verified { color: var(--good); display: inline-flex; align-items: center; gap: .3rem; }
.review-verified svg { width: 1.15em; height: 1.15em; flex: none; }
.similar-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1rem; overflow-x: auto; overflow-y: visible; padding-block: .4rem 1rem; }
.disclosure-box {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; font-size: .82rem; color: var(--muted); display: flex; gap: .7rem; align-items: flex-start;
}
.disclosure-box svg { flex: none; width: 1.2em; height: 1.2em; margin-top: .1em; }

/* =============================================================
   13. Comparator
   ============================================================= */
.comparator-picker { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 2rem; }
.comparator-search { position: relative; }
.comparator-search input {
  width: 100%; padding: .9rem 1.1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--ink); font-size: .95rem;
}
.comparator-search input:focus { outline: none; border-color: var(--accent); }
.comparator-results {
  position: absolute; top: calc(100% + .5rem); left: 0; right: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto; z-index: 50; display: none;
}
.comparator-results.is-open { display: block; }
.comparator-result-item { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.comparator-result-item:last-child { border-bottom: 0; }
.comparator-result-item img { width: 40px; height: 40px; object-fit: contain; background: var(--surface-2); border-radius: 6px; }
.comparator-result-item button { margin-left: auto; }
.comparator-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; margin-top: 1.2rem; }
.comparator-slot {
  position: relative; border: 1.5px dashed var(--border); border-radius: var(--radius-md); padding: .9rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; min-height: 150px; justify-content: center;
}
.comparator-slot.is-filled { border-style: solid; background: var(--surface); }
.comparator-slot img { width: 56px; height: 56px; object-fit: contain; }
.comparator-slot .slot-name { font-size: .78rem; font-weight: 600; line-height: 1.2; }
.comparator-slot .remove-badge {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bad); color: #fff; display: grid; place-items: center; font-size: .8rem; box-shadow: var(--shadow-sm);
}
.comparator-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.comparator-table-wrap { overflow-x: auto; }
.comparator-table { min-width: 720px; border-collapse: separate; border-spacing: 0; }
.comparator-table th, .comparator-table td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.comparator-table thead th { position: sticky; top: var(--nav-h); background: var(--bg); z-index: 10; padding-top: 1rem; }
.comparator-col-head { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; width: 190px; }
.comparator-col-head img { width: 80px; height: 80px; object-fit: contain; background: var(--surface); border-radius: 10px; padding: .5rem; }
.comparator-row-label { font-weight: 500; color: var(--muted); white-space: nowrap; }
.comparator-table td { text-align: center; font-weight: 600; }
.comparator-table td.is-best { color: var(--good); background: color-mix(in srgb, var(--good) 10%, transparent); border-radius: 8px; }
.comparator-radar-row td { padding: 1.5rem 1rem; }

/* =============================================================
   14. Filters / category toolbar
   ============================================================= */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.75rem; }
.toolbar select, .toolbar .select-wrap select {
  padding: .6rem 2.2rem .6rem .9rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path d="M0 0l5 6 5-6z" fill="%23767c88"/></svg>') no-repeat right 0.9rem center;
  color: var(--ink); font-size: .85rem; appearance: none; cursor: pointer;
}
.toolbar-count { margin-left: auto; font-size: .82rem; color: var(--muted); }
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pill {
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); font-size: .82rem; background: var(--surface);
  transition: all .2s var(--ease-out);
}
.filter-pill.is-active, .filter-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* =============================================================
   15. Guides / blog article
   ============================================================= */
.article-header { padding-block: 2.5rem 1.5rem; text-align: center; }
.article-header .eyebrow { justify-content: center; }
.article-meta { display: flex; justify-content: center; gap: 1rem; font-size: .82rem; color: var(--muted); margin-top: .75rem; }
.article-body { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.shortlist { display: flex; flex-direction: column; gap: 1.1rem; margin-block: 1.5rem; }
.shortlist-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.1rem; align-items: center;
}
.shortlist-item img { width: 90px; height: 90px; object-fit: contain; background: var(--surface-2); border-radius: 8px; padding: .5rem; }
.shortlist-rank {
  font-family: var(--serif); font-weight: 700; color: var(--accent); font-size: 1.4rem; width: 2ch;
}
.faq-item { border-bottom: 1px solid var(--border); padding-block: 1.1rem; }
.faq-item summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: .75rem; color: var(--ink-soft); }

/* =============================================================
   16. Ofertas
   ============================================================= */
.offer-card { position: relative; }
.offer-percent {
  position: absolute; top: .65rem; right: .65rem; z-index: 2; background: var(--offer); color: #fff;
  font-family: var(--mono); font-weight: 700; font-size: .78rem; padding: .3rem .55rem; border-radius: 8px;
}

/* =============================================================
   17. Footer / legal / disclosure banner
   ============================================================= */
.aff-banner { background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: .78rem; color: var(--muted); padding-block: .55rem; text-align: center; }
.aff-banner a { text-decoration: underline; color: var(--muted); }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 3rem 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .9rem; }
.footer-col a { display: block; font-size: .92rem; color: var(--ink-soft); padding-block: .35rem; transition: color .2s var(--ease-out); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.footer-legal-note { max-width: 720px; font-size: .78rem; color: var(--muted); margin-top: 1.5rem; line-height: 1.6; }

/* =============================================================
   18. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .grid-cols-2-sm { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .ficha-top { grid-template-columns: 1fr 1fr; }
  .article-body { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 960px) {
  .grid-cols-3, .grid-cols-4, .grid-cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 959px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; position: relative; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 719px) {
  .grid-cols-3, .grid-cols-4, .grid-cols-6 { grid-template-columns: repeat(2, 1fr); }
  .ficha-gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: visible; }
  .gallery-thumbs button { width: 64px; flex: none; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .comparator-slots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 539px) {
  .grid-cols-3, .grid-cols-4, .grid-cols-6 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.1rem; }
}

/* =============================================================
   19. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual::before { animation: none; }
}
