/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #08080d;
  --bg-alt: #0e0e17;
  --surface: #14141f;
  --surface-2: #1b1b28;
  --border: #26263a;
  --text: #eef0f7;
  --text-dim: #9aa0b8;
  --text-faint: #666c85;

  --accent: #8b6bff;
  --accent-soft: rgba(139, 107, 255, 0.14);
  --accent-2: #22e6c8;
  --accent-2-soft: rgba(34, 230, 200, 0.14);

  --osu: #ff5fa8;
  --osu-soft: rgba(255, 95, 168, 0.12);
  --wow: #f5d130;
  --wow-soft: rgba(245, 209, 48, 0.12);
  --lol: #0ac8b9;
  --lol-soft: rgba(10, 200, 185, 0.12);

  --good: #4ade80;
  --bad: #f87171;

  --tier-1: var(--accent-2);
  --tier-2: var(--accent);
  --tier-3: #f0a83c;
  --tier-3-soft: rgba(240, 168, 60, 0.14);
  --tier-4: #ff5876;
  --tier-4-soft: rgba(255, 88, 118, 0.12);

  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
}

/* =============================================================
   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(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -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; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--font-display); font-weight: 600; }
::selection { background: var(--accent); color: #fff; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 62ch;
}
.prose p + p { margin-top: 1rem; }
.prose p { max-width: 68ch; color: var(--text-dim); }
.prose strong { color: var(--text); font-weight: 600; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- 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 .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6a4bff);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(139, 107, 255, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(139, 107, 255, .75); }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-block { width: 100%; }

/* --- Affiliate slot --- */
.affiliate-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
}
.affiliate-slot__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.affiliate-disclosure {
  font-size: .78rem;
  color: var(--text-faint);
  max-width: 60ch;
  margin-top: .6rem;
}

/* --- Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 8, 13, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .9rem;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
}
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: conic-gradient(from 220deg, var(--accent), var(--accent-2), var(--accent));
  color: #08080d;
  font-size: .8rem;
  font-weight: 800;
}
.nav-links {
  display: none;
  gap: 1.75rem;
  font-size: .92rem;
  color: var(--text-dim);
}
.nav-links a { transition: color .25s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { display: none; }
.nav-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding-block: .5rem 1rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: .7rem .25rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: 0; }

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .4rem;
  font-size: .82rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb span[aria-hidden] { color: var(--text-faint); opacity: .5; }
.breadcrumb .is-current { color: var(--text-dim); }

/* --- Score gauge --- */
.gauge {
  --pct: 90%;
  position: relative;
  width: 128px; height: 128px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent-2) var(--pct), var(--surface-2) var(--pct));
  flex-shrink: 0;
}
.gauge::before {
  content: "";
  position: absolute; inset: 9px;
  border-radius: 50%;
  background: var(--bg-alt);
}
.gauge-value {
  position: relative;
  text-align: center;
  font-family: var(--font-display);
}
.gauge-value strong { display: block; font-size: 2.1rem; line-height: 1; color: var(--text); }
.gauge-value small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-top: .2rem; }

/* --- Meta stat row --- */
.stat-row {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem;
}
.stat {
  display: flex; flex-direction: column; gap: .2rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.section-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem;
  position: relative;
  overflow: clip;
}
.section-card::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 4px;
  background: var(--game-color, var(--accent));
}
.game-head {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.1rem;
}
.game-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: .35rem .7rem;
  border-radius: 999px;
  color: var(--bg);
  background: var(--game-color, var(--accent));
}
.game-role {
  font-size: .82rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.game-list {
  display: flex; flex-direction: column; gap: .75rem;
}
.game-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.6;
}
.game-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--game-color, var(--accent));
}
.game-list strong { color: var(--text); }

.osu   { --game-color: var(--osu); }
.wow   { --game-color: var(--wow); }
.lol   { --game-color: var(--lol); }

.tier-1 { --game-color: var(--tier-1); }
.tier-2 { --game-color: var(--tier-2); }
.tier-3 { --game-color: var(--tier-3); }
.tier-4 { --game-color: var(--tier-4); }

/* --- Comparison table --- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: .92rem;
}
.compare th, .compare td {
  padding: .85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface-2);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { color: var(--text-dim); font-weight: 500; font-family: var(--font-body); }
.compare .win { color: var(--accent-2); font-weight: 600; }
.compare .neutral { color: var(--text-dim); }

.compare tfoot th, .compare tfoot td {
  border-bottom: 0;
  border-top: 2px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.buy-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.buy-link {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .01em;
  padding: .3rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-faint);
  white-space: nowrap;
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out);
}
.buy-link:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* --- Notice / callout --- */
.notice {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--tier-3-soft), transparent 55%), var(--surface);
  padding: 1.5rem 1.75rem;
}
.notice-meta {
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-faint);
}

/* --- Cross-link callout --- */
.crosslink {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  border-color: var(--accent-2);
}

/* --- Ad slot (reserved space, filled later) --- */
.ad-slot-wrap {
  display: flex;
  justify-content: center;
  padding-block: .5rem;
}
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ad-slot::after { content: attr(data-ad-label); opacity: .7; }
.ad-slot--leaderboard { max-width: 728px; min-height: 90px; }
.ad-slot--rect {
  max-width: 300px;
  min-height: 250px;
  margin-inline: auto;
}
.ad-slot--rect-float {
  float: right;
  margin: 0 0 1rem 1.5rem;
}
@media (max-width: 539px) {
  .ad-slot--rect-float { float: none; margin-inline: auto; margin-bottom: 1.5rem; }
}

/* --- Rating bars (subjective) --- */
.rating-bars { display: flex; flex-direction: column; gap: .9rem; }
.rating-bar-row { display: grid; grid-template-columns: 9rem 1fr; align-items: center; gap: 1rem; }
.rating-bar-label { font-size: .85rem; color: var(--text-dim); }
.rating-bar-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rating-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%;
  transition: width 1s var(--ease-soft);
}
.rating-bar-row.is-visible .rating-bar-fill { width: var(--fill, 80%); }

/* --- Pull quote --- */
.pull-quote {
  border-left: 3px solid var(--accent-2);
  padding-left: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
  margin-block: 1.5rem;
}

/* --- Verdict box --- */
.verdict {
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
}
.verdict-for {
  display: grid; gap: .55rem;
  margin-block: 1.25rem 1.5rem;
}
.verdict-for li { display: flex; gap: .6rem; color: var(--text-dim); font-size: .95rem; }
.verdict-for li::before { content: "\2713"; color: var(--good); font-weight: 700; }

/* Same list, opposite verdict — "mejor evítalo si..." */
.verdict-avoid { display: grid; gap: .55rem; margin-block: 1.25rem 1.5rem; }
.verdict-avoid li { display: flex; gap: .6rem; color: var(--text-dim); font-size: .95rem; }
.verdict-avoid li::before { content: "\2715"; color: var(--bad); font-weight: 700; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid; gap: 2rem;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .8rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--text-dim); font-size: .92rem; }
.footer-col a:hover { color: var(--accent-2); }
.footer-note { color: var(--text-faint); font-size: .8rem; margin-top: 2rem; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid--3col { grid-template-columns: repeat(3, 1fr); }
}

/* --- Footer legal row --- */
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .78rem;
}
.footer-legal a, .footer-legal-cookie-btn {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: .78rem;
}
.footer-legal a:hover, .footer-legal-cookie-btn:hover { color: var(--accent-2); }
.footer-legal-cookie-btn { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-sep { color: var(--text-faint); opacity: .5; }

/* --- Affiliate disclosure (top-of-page + footer) --- */
.affiliate-disclosure-top {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--accent-2-soft), transparent 60%), var(--surface);
  padding: .9rem 1.25rem;
  max-width: 56rem;
  margin: 0 auto 1.5rem;
  text-align: left;
}
.affiliate-disclosure-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: .2rem;
  color: var(--accent-2);
}
.affiliate-disclosure-top p {
  color: var(--text-dim);
  font-size: .82rem;
  line-height: 1.55;
}

/* --- Placeholder / "coming soon" hub pages --- */
.hub-empty {
  text-align: center;
  padding: 4rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
}
.hub-empty strong { color: var(--text); }

/* =============================================================
   6. Sections
   ============================================================= */
main { display: block; }

.hero {
  position: relative;
  padding-block: 3rem 3.5rem;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% -60% -10%;
  background:
    radial-gradient(38% 45% at 18% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(32% 40% at 85% 10%, var(--accent-2-soft), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-top {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 2rem;
  margin-top: 1.25rem;
}
.hero-title-block { max-width: 42rem; }
.hero-byline {
  margin-top: 1rem;
  font-size: .95rem;
  color: var(--text-dim);
}
.hero-byline strong { color: var(--text); }
.hero-score-block {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.hero-score-copy { display: flex; flex-direction: column; gap: .5rem; }
.hero-score-title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.hero-stats { margin-top: 2rem; }

.section {
  padding-block: 3rem;
  border-top: 1px solid var(--border);
}
.section-head { margin-bottom: 1.75rem; max-width: 56rem; }
.section-head .eyebrow { margin-bottom: .8rem; }

.games-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 960px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

.setups-stack { display: flex; flex-direction: column; gap: 1.5rem; }

.pair-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .pair-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
}

.setup-card-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-bottom: .3rem;
}
.setup-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}
.setup-total small {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
}

.conclusion-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .conclusion-grid { grid-template-columns: 1.3fr 1fr; }
}

/* =============================================================
   7. Effects
   ============================================================= */
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* =============================================================
   8. Responsive (mobile-first; see component blocks for specific breakpoints)
   ============================================================= */
@media (min-width: 540px) {
  .hero-top { flex-wrap: nowrap; }
}
@media (min-width: 720px) {
  .section { padding-block: 4rem; }
}
@media (min-width: 1280px) {
  .hero { padding-block: 4.5rem 5rem; }
}

/* =============================================================
   9. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .gauge { transition: none; }
}

/* =============================================================
   10. Cookie consent banner
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 500;
  max-width: 760px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .65);
}
.cookie-banner[hidden] { display: none; }

.cookie-banner-text {
  color: var(--text-dim);
  font-size: .88rem;
  line-height: 1.55;
}
.cookie-banner-text a { color: var(--accent-2); }

.cookie-banner-actions {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.1rem;
}
.cookie-banner-actions .btn { flex: 1 1 auto; min-width: 8.5rem; font-size: .88rem; padding: .75rem 1.2rem; }

.cookie-settings {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1rem;
}
.cookie-settings[hidden] { display: none; }
.cookie-settings-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem;
}
.cookie-settings-row strong {
  display: block; color: var(--text); font-size: .9rem; margin-bottom: .2rem;
}
.cookie-settings-row p { color: var(--text-faint); font-size: .8rem; margin: 0; }
.cookie-settings-row input[type="checkbox"] {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: .15rem;
  accent-color: var(--accent-2);
}
.cookie-settings-actions { display: flex; justify-content: flex-end; }

@media (min-width: 720px) {
  .cookie-banner-inner { display: flex; align-items: center; gap: 1.75rem; }
  .cookie-banner-text { flex: 1; }
  .cookie-banner-actions { margin-top: 0; flex-shrink: 0; }
}

/* =============================================================
   11. Product image placeholders (pending Amazon Associates)
   ============================================================= */
.product-image {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--text-faint);
  padding: .5rem;
  text-align: center;
}
.product-image-inner svg { opacity: .4; }

/* Real product photo (once inserted): show it whole, never cropped.
   The dark surface background shows through as letterboxing if the
   photo's aspect ratio doesn't match the container. */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-image--filled {
  border-style: solid;
  padding: 0;
  position: relative;
  box-shadow: inset 0 0 22px 3px rgba(0, 0, 0, 0.35);
}
/* Amazon photos come on a pure white background, which fights the dark
   theme. Filter instead of blend-mode: it dims/desaturates that white
   toward the surface tone without darkening the product itself into
   mush like mix-blend-mode:multiply would against a background this dark. */
.product-image--filled img { filter: brightness(0.93) contrast(0.96) saturate(0.96); }

/* Card variant: full-width image slot on top of a product card */
.product-image--card {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.1rem;
}

/* Keyboards are wide/flat — a squarer box leaves too much empty space
   beside them. Widen the frame to match each photo's real proportions
   instead of zooming/cropping it (product shots vary: --kb-ratio lets
   each instance match its own photo; 1.9/1 is a sane default). Sized to
   fill most of its card instead of floating small in a lot of dark
   space — max-width caps it on very wide layouts, not on typical ones. */
.product-image--keyboard {
  width: 100%;
  max-width: 640px;
  aspect-ratio: var(--kb-ratio, 1.9 / 1);
  margin-inline: auto;
}
.product-image--card .product-image-inner svg { width: 32px; height: 32px; }
.product-image--card .product-image-inner span {
  font-family: var(--font-mono);
  font-size: .7rem;
  line-height: 1.35;
  max-width: 20ch;
}

/* Thumb variant: small square for table cells */
.product-image--thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.product-image--thumb .product-image-inner { padding: 0; gap: 0; }
.product-image--thumb .product-image-inner svg { width: 18px; height: 18px; }
.product-image--thumb .product-image-inner span { display: none; }

.compare th.compare-col-img, .compare td.compare-col-img { width: 68px; }

/* =============================================================
   12. Home preview cards (Setups / Periféricos teasers)
   ============================================================= */
.preview-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.preview-card {
  position: relative;
  overflow: clip;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 1.4rem;
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.preview-card::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 4px;
  background: var(--game-color, var(--accent));
}
.preview-card:hover { border-color: var(--game-color, var(--accent-2)); transform: translateY(-2px); }
.preview-card-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
}
.preview-card-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}
.preview-card-price {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--game-color, var(--accent-2));
  white-space: nowrap;
  flex-shrink: 0;
}
.preview-card p { color: var(--text-dim); font-size: .88rem; margin: 0; line-height: 1.5; }

.preview-cta {
  margin-top: 1.5rem;
  display: flex; justify-content: center;
}

/* Philosophy mini-tiles reuse .section-card; icon-free, compact */
.philosophy-tile h3 { font-size: 1rem; color: var(--accent-2); }
.philosophy-tile p { margin-top: .4rem; }

/* =============================================================
   13. Image lightbox (click a product photo to enlarge)
   ============================================================= */
.product-image--filled img { cursor: zoom-in; }
.product-image--filled { transition: opacity .15s var(--ease-out); }
.product-image--filled:hover { opacity: .88; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(4, 4, 9, 0.92);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease-out);
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-overlay img {
  max-width: min(90vw, 760px);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  transform: scale(.94);
  transition: transform .2s var(--ease-out);
}
.lightbox-overlay.is-open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.lightbox-close:hover, .lightbox-close:focus-visible { border-color: var(--accent-2); color: var(--accent-2); }

/* =============================================================
   14. PcComponentes buttons — hidden pending Awin approval
   =============================================================
   Every "PcComponentes" button site-wide (Setups, Periféricos, Cases,
   Monitores) shares data-affiliate="pccomponentes", so this ONE rule
   hides all of them at once. Nothing was removed from the HTML.

   TO REACTIVATE once Awin is approved and every button has a real
   href: delete this rule (or comment it out). Each button reverts to
   its own class's normal display (.btn or .buy-link) automatically —
   no need to touch a single HTML file.
   ============================================================= */
[data-affiliate="pccomponentes"] { display: none; }
