/* =============================================================
   NIVEL ULTRA — hardware gaming · hoja de estilos única
   1. Tokens        5. Componentes     9. Reduced motion
   2. Reset/base    6. Secciones
   3. Utilidades    7. Efectos
   4. Tipografía    8. Responsive
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Fondos */
  --bg:          #07080d;
  --bg-alt:      #0a0c13;
  --surface:     #0e1018;
  --card:        #11131c;
  --card-hover:  #161926;
  --border:      rgba(255, 255, 255, .075);
  --border-lit:  rgba(255, 255, 255, .16);

  /* Texto */
  --text:        #e9ebf3;
  --muted:       #888ea6;
  --dim:         #5b6076;

  /* Acentos */
  --cyan:        #22d3ee;
  --cyan-dim:    #0e7490;
  --violet:      #a855f7;
  --violet-dim:  #6d28d9;
  --lime:        #a3e635;
  --amber:       #fbbf24;
  --rose:        #fb7185;

  /* Gradientes */
  --grad-main:   linear-gradient(120deg, var(--cyan), var(--violet));
  --grad-lime:   linear-gradient(120deg, var(--lime), var(--cyan));
  --grad-line:   linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);

  /* Tipografía */
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  /* Radios */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Easings */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-soft:   cubic-bezier(.25, .46, .45, .94);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --t:           .32s var(--ease-out);

  /* Layout */
  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1240px;

  /* Sombras */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .6);
  --glow-cyan: 0 0 0 1px rgba(34, 211, 238, .3), 0 8px 30px rgba(34, 211, 238, .18);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  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%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--cyan); color: var(--bg); }

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

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #22263a;
  border-radius: 10px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #2f3550; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }

/* =============================================================
   4. Tipografía
   ============================================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.section-header { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-header.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: var(--cyan); flex: none;
}
.center .eyebrow::before { display: none; }

.section-title {
  font-size: clamp(1.85rem, 4.4vw, 3.1rem);
  margin-bottom: 16px;
}
.section-title em {
  font-style: normal;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.section-desc {
  color: var(--muted);
  font-size: clamp(.95rem, 1.6vw, 1.06rem);
  max-width: 62ch;
}
.center .section-desc { margin-inline: auto; }

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

/* --- Barra de afiliados --- */
.affiliate-bar {
  background: linear-gradient(90deg, rgba(34,211,238,.09), rgba(168,85,247,.09));
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .74rem;
  text-align: center;
  padding: 7px var(--gutter);
  line-height: 1.5;
}
.affiliate-bar a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

/* --- Navegación --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 8, 13, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark {
  width: 32px; height: 32px; flex: none;
  border-radius: 9px;
  background: var(--grad-main);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: .95rem; color: #05070c;
  box-shadow: 0 4px 14px rgba(34, 211, 238, .3);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.03rem;
  letter-spacing: .04em; white-space: nowrap;
}
.logo-text span { color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--cyan); }

.nav-cta {
  flex: none;
  padding: 9px 17px;
  border-radius: var(--r-sm);
  background: var(--grad-main);
  color: #05070c;
  font-family: var(--font-display);
  font-weight: 700; font-size: .84rem;
  letter-spacing: .01em;
  transition: transform var(--t), box-shadow var(--t);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(34,211,238,.32); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .hamburger span:nth-child(2) { opacity: 0; }
.nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700; font-size: .92rem;
  letter-spacing: .01em;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  text-align: center;
}
.btn-primary {
  background: var(--grad-main);
  color: #05070c;
  box-shadow: 0 6px 22px rgba(34, 211, 238, .22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(34,211,238,.36); }

.btn-ghost {
  border: 1px solid var(--border-lit);
  color: var(--text);
  background: rgba(255,255,255,.03);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(34,211,238,.07); }

.btn-amazon {
  background: linear-gradient(135deg, #ff9900, #ffb84d);
  color: #1a1200;
  box-shadow: 0 6px 22px rgba(255, 153, 0, .26);
}
.btn-amazon:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,153,0,.4); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .8rem; border-radius: var(--r-sm); }

/* --- Chips / badges --- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.chip-cyan  { color: var(--cyan);   border-color: rgba(34,211,238,.32);  background: rgba(34,211,238,.09); }
.chip-violet{ color: var(--violet); border-color: rgba(168,85,247,.32);  background: rgba(168,85,247,.09); }
.chip-lime  { color: var(--lime);   border-color: rgba(163,230,53,.32);  background: rgba(163,230,53,.09); }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  padding: 5px 11px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: .66rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.badge-top  { background: var(--grad-main); color: #05070c; }
.badge-deal { background: var(--lime); color: #14210a; }
.badge-new  { background: rgba(255,255,255,.14); color: var(--text); border: 1px solid var(--border-lit); }

/* --- Estrellas --- */
.stars { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
.stars-icons { color: var(--amber); letter-spacing: .06em; }
.stars-count { color: var(--dim); font-family: var(--font-mono); font-size: .72rem; }

/* --- Tarjeta de producto --- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px;
}

.pcard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,.4);
  box-shadow: var(--shadow-md);
}

.pcard-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;
}
.pcard-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .5s var(--ease-out);
}
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-img .ph { font-size: 2.4rem; opacity: .25; }

.pcard-body { padding: 16px; display: flex; flex-direction: column; gap: 11px; flex: 1; }

.pcard-brand {
  font-family: var(--font-mono);
  font-size: .66rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim);
}
.pcard-name {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.pcard-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
  padding: 11px 0;
  border-block: 1px solid var(--border);
}
.pcard-spec-k {
  font-family: var(--font-mono);
  font-size: .6rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
}
.pcard-spec-v {
  font-size: .8rem; font-weight: 600;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pcard-foot { margin-top: auto; display: flex; flex-direction: column; gap: 11px; }

.pcard-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price {
  font-family: var(--font-display);
  font-size: 1.42rem; font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.price-old {
  font-size: .82rem; color: var(--dim);
  text-decoration: line-through; margin-left: 7px;
}
.price-none { font-size: .86rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; }

.score-pill {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: rgba(163,230,53,.12);
  border: 1px solid rgba(163,230,53,.3);
  color: var(--lime);
  white-space: nowrap;
}

.pcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* --- Tabla de especificaciones --- */
.spec-block { margin-bottom: 26px; }
.spec-block h3 {
  font-size: .82rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 9px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left; font-weight: 500;
  color: var(--muted); font-size: .84rem;
  padding: 11px 14px 11px 0;
  width: 44%;
}
.spec-table td {
  padding: 11px 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text);
}
.spec-table td.empty { color: var(--dim); }

/* --- Radar --- */
.radar-wrap {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.radar-wrap canvas { width: 100%; height: auto; }
.radar-note {
  margin-top: 10px; text-align: center;
  font-size: .7rem; color: var(--dim);
  font-family: var(--font-mono);
}
.radar-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 12px; }
.radar-legend-item { display: flex; align-items: center; gap: 7px; font-size: .76rem; color: var(--muted); }
.radar-legend-dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* --- Pros / contras --- */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc-box { padding: 20px; border-radius: var(--r-md); border: 1px solid var(--border); }
.pc-box.pros   { background: rgba(163,230,53,.045); border-color: rgba(163,230,53,.22); }
.pc-box.contras{ background: rgba(251,113,133,.045); border-color: rgba(251,113,133,.22); }
.pc-box h4 {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 13px;
}
.pc-box.pros h4 { color: var(--lime); }
.pc-box.contras h4 { color: var(--rose); }
.pc-box li {
  position: relative; padding-left: 20px;
  font-size: .87rem; color: var(--muted);
  margin-bottom: 9px; line-height: 1.55;
}
.pc-box li::before { position: absolute; left: 0; top: -1px; font-weight: 700; }
.pc-box.pros li::before { content: "+"; color: var(--lime); }
.pc-box.contras li::before { content: "−"; color: var(--rose); }

/* --- Caja destacada --- */
.callout {
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: rgba(34,211,238,.06);
  border: 1px solid rgba(34,211,238,.22);
  border-left: 3px solid var(--cyan);
}
.callout h4 {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 8px;
}
.callout p { font-size: .92rem; color: var(--text); }

/* --- Reseñas --- */
.review {
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.review-author { font-weight: 600; font-size: .86rem; }
.review-title { font-family: var(--font-display); font-size: .95rem; margin-bottom: 7px; }
.review-text { font-size: .87rem; color: var(--muted); line-height: 1.65; }
.review-verified { font-size: .66rem; color: var(--lime); font-family: var(--font-mono); }

/* --- Editorial --- */
.prose p { color: var(--muted); font-size: .95rem; line-height: 1.8; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose h3 {
  font-size: 1.15rem; margin: 28px 0 12px;
  color: var(--text);
}
.prose ul { margin: 0 0 16px; }
.prose ul li {
  position: relative; padding-left: 20px; margin-bottom: 8px;
  color: var(--muted); font-size: .93rem;
}
.prose ul li::before {
  content: ""; position: absolute; left: 3px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
}
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* --- Filtros --- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
  margin-bottom: 26px;
}
.filter-btn {
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: .82rem; font-weight: 500;
  color: var(--muted);
  transition: all var(--t);
}
.filter-btn:hover { border-color: var(--border-lit); color: var(--text); }
.filter-btn.active {
  background: rgba(34,211,238,.12);
  border-color: var(--cyan);
  color: var(--cyan);
}
.select {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .82rem;
  cursor: pointer;
}
.select:focus { outline: none; border-color: var(--cyan); }

/* --- Comparador --- */
.cmp-picker {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 26px;
}
.cmp-search {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .9rem;
}
.cmp-search:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.cmp-search::placeholder { color: var(--dim); }

.cmp-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 9px;
  margin-top: 14px;
  max-height: 290px;
  overflow-y: auto;
}
.cmp-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  transition: all var(--t);
  width: 100%;
}
.cmp-opt:hover { border-color: var(--border-lit); background: var(--card-hover); }
.cmp-opt.selected { border-color: var(--cyan); background: rgba(34,211,238,.09); }
.cmp-opt img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 5px; flex: none; }
.cmp-opt-name {
  font-size: .78rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.cmp-selected { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.cmp-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 100px;
  background: rgba(34,211,238,.11);
  border: 1px solid rgba(34,211,238,.3);
  font-size: .78rem; color: var(--cyan);
}
.cmp-tag button {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  font-size: .8rem; line-height: 1; color: var(--text);
}
.cmp-tag button:hover { background: var(--rose); color: #fff; }

.cmp-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.cmp-table { min-width: 640px; background: var(--card); }
.cmp-table th, .cmp-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.cmp-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: .84rem;
}
.cmp-table .row-label {
  font-size: .78rem; color: var(--muted); font-weight: 500;
  white-space: nowrap;
}
.cmp-table td.val { font-family: var(--font-mono); font-size: .82rem; }
.cmp-table td.best {
  color: var(--lime); font-weight: 700;
  background: rgba(163,230,53,.07);
}
.cmp-table td.best::after { content: " ★"; font-size: .7rem; }
.cmp-head-img {
  width: 62px; height: 62px; object-fit: contain;
  background: #fff; border-radius: var(--r-sm);
  margin-bottom: 9px;
}

.empty-state {
  padding: 60px 24px; text-align: center;
  border: 1px dashed var(--border-lit);
  border-radius: var(--r-lg);
  color: var(--muted);
}
.empty-state-icon { font-size: 2.4rem; margin-bottom: 12px; opacity: .5; }

/* --- Galería --- */
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid; place-items: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 11px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb {
  width: 62px; height: 62px; flex: none;
  border-radius: var(--r-sm);
  background: #fff;
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color var(--t);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.gallery-thumb.active { border-color: var(--cyan); }

/* --- Tarjeta de categoría --- */
.cat-card {
  position: relative;
  display: block;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t);
}
.cat-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad-line); opacity: 0; transition: opacity var(--t);
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--border-lit); }
.cat-card:hover::before { opacity: 1; }
.cat-card-icon { font-size: 1.9rem; margin-bottom: 13px; }
.cat-card h3 { font-size: 1.06rem; margin-bottom: 7px; }
.cat-card p { font-size: .84rem; color: var(--muted); line-height: 1.55; }
.cat-card-count {
  margin-top: 13px;
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--cyan);
}

/* --- Guía numerada --- */
.guide-step {
  display: grid; grid-template-columns: auto 1fr; gap: 22px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.guide-num {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 700; line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.guide-step h3 { font-size: 1.1rem; margin-bottom: 9px; }
.guide-step p { color: var(--muted); font-size: .92rem; line-height: 1.75; }

/* --- Banner de oferta --- */
.deal {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(163,230,53,.08), rgba(34,211,238,.05));
  border: 1px solid rgba(163,230,53,.25);
  overflow: hidden;
}
.deal-tag {
  display: inline-block;
  padding: 4px 12px; border-radius: 100px;
  background: var(--lime); color: #14210a;
  font-family: var(--font-display); font-weight: 700;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.deal-save {
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--lime); font-weight: 600;
}

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: .98rem; font-weight: 600;
}
.faq-q::after {
  content: "+"; position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; color: var(--cyan); font-weight: 400;
  transition: transform var(--t);
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { display: none; padding: 0 0 20px; color: var(--muted); font-size: .91rem; line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* --- Breadcrumb --- */
.crumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: .78rem; color: var(--dim);
  margin-bottom: 20px;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--cyan); }
.crumb span { color: var(--dim); }

/* --- Aviso de precio --- */
.price-note {
  font-size: .7rem; color: var(--dim);
  font-family: var(--font-mono);
  margin-top: 5px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: clamp(44px, 6vw, 68px) 0 28px;
}
.footer-grid {
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--muted); font-size: .86rem;
  line-height: 1.7; margin-top: 14px; max-width: 34ch;
}
.footer-col h4 {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text); margin-bottom: 15px;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--muted); font-size: .86rem; transition: color var(--t); }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  max-width: var(--maxw); margin-inline: auto;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.footer-legal { font-size: .74rem; color: var(--dim); line-height: 1.7; }
.footer-legal strong { color: var(--muted); }
.footer-copy { font-size: .74rem; color: var(--dim); font-family: var(--font-mono); }

/* =============================================================
   6. Secciones
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0 clamp(52px, 7vw, 88px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(680px 420px at 12% 8%, rgba(34,211,238,.13), transparent 62%),
    radial-gradient(620px 400px at 88% 22%, rgba(168,85,247,.13), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 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(ellipse 78% 62% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.12fr .88fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
  color: var(--muted);
  font-size: clamp(.98rem, 1.7vw, 1.1rem);
  max-width: 52ch; margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 40px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 44px);
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.hero-stat-label {
  font-size: .74rem; color: var(--dim);
  letter-spacing: .05em; text-transform: uppercase;
}

.hero-visual { position: relative; }
.hero-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-lit);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad-line);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.hero-card-img {
  position: relative;
  aspect-ratio: 4/3; background: #fff;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  overflow: hidden; margin-bottom: 16px;
}
.hero-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.hero-card-name { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; margin-bottom: 11px; }
.hero-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.hero-card-price { display: flex; align-items: baseline; gap: 9px; }

.float-badge {
  position: absolute; z-index: 2;
  padding: 9px 15px;
  border-radius: 100px;
  background: rgba(14,16,24,.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-lit);
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.float-1 { top: 8%; right: -14px; color: var(--cyan); }
.float-2 { bottom: 12%; left: -20px; color: var(--lime); }

/* --- Ficha (layout) --- */
.ficha-top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-bottom: 52px;
}
.ficha-title { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.ficha-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.ficha-price-box {
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.ficha-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }

.ficha-section { margin-bottom: clamp(40px, 6vw, 64px); }
.ficha-section-title {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }

/* =============================================================
   7. Efectos
   ============================================================= */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Fallback: si el JS no arranca, el contenido se ve igual */
.no-js .reveal { opacity: 1; transform: none; }

@view-transition { navigation: auto; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 1279px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 959px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .float-1 { right: 0; }
  .float-2 { left: 0; }
  .ficha-top { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 719px) {
  .nav-links {
    position: fixed; inset: calc(var(--nav-h) + 26px) 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: .95rem; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .pc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .guide-step { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .hero-stats { gap: 22px; }
  .deal { padding: 22px; }
}

@media (max-width: 479px) {
  .grid-products { grid-template-columns: 1fr; }
  .pcard-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   9. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  @view-transition { navigation: none; }
}

/* Impresión */
@media print {
  .nav, .footer, .affiliate-bar, .hero-bg, .hero-grid { display: none; }
  body { background: #fff; color: #000; }
}
