/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============ Design tokens ============ */
:root {
  --bg: #0b0e16;
  --bg-elevated: #121726;
  --bg-elevated-2: #171d30;
  --border: #232a42;
  --text: #e7ebf7;
  --text-muted: #9aa3bf;
  --accent: #5b8cff;
  --accent-2: #b06bff;
  --accent-gradient: linear-gradient(120deg, #5b8cff, #b06bff);
  --amazon: #ff9900;
  --amazon-dark: #e88a00;
  --success: #35d488;
  --radius: 14px;
  --max-width: 1180px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}
.logo-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.header-right { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.header-controls { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

/* ============ Language switcher ============ */
.lang-switcher { position: relative; }
.lang-switcher-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.lang-switcher-toggle:hover { border-color: var(--accent); }
.lang-switcher-toggle svg { color: var(--text-muted); transition: transform 0.15s ease; }
.lang-switcher.open .lang-switcher-toggle svg { transform: rotate(180deg); }
.lang-flag { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; vertical-align: middle; }
.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}
.lang-switcher.open .lang-switcher-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switcher-menu li + li { margin-top: 2px; }
.lang-switcher-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.lang-switcher-menu a:hover { background: var(--bg-elevated-2); color: var(--text); }
.lang-switcher-menu a.active { color: var(--text); background: var(--bg-elevated-2); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 72px 0;
  background-image:
    linear-gradient(180deg, rgba(11, 14, 22, 0.72), rgba(11, 14, 22, 0.82)),
    url('https://geekngaming.com/wp-content/uploads/2026/08/background-titulo-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero-inner { position: relative; text-align: center; max-width: 720px; }
.hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 0.4em; text-wrap: balance; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
@media (min-width: 640px) {
  .hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); white-space: nowrap; }
}
.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }

/* ============ Home: feed + sidebar ============ */
.home-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.home-main, .home-articles, .home-sidebar { min-width: 0; }
.home-articles .section-heading, .home-sidebar .section-heading { margin-bottom: 16px; }
.home-articles .card-grid, .home-sidebar .card-grid { display: block; }
.home-articles .card, .home-sidebar .card { margin-bottom: 20px; }
.home-feed { display: flex; flex-direction: column; gap: 12px; padding-bottom: 40px; }
.feed-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  transition: border-color 0.15s ease;
}
.feed-item:hover { border-color: var(--accent); }
.feed-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--bg-elevated-2); }
.feed-item-body { flex: 1; min-width: 0; }
.feed-item-meta { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 4px; }
.feed-item h3 { font-size: 0.98rem; margin: 0; }
.feed-item-score { text-align: right; flex-shrink: 0; padding-left: 4px; }
.feed-item-score-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feed-item-score-caption { display: block; font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 2px; }

/* ============ Home: ultimas noticias (carrusel horizontal) ============ */
.home-news { position: relative; }
.news-scroller { position: relative; }
.home-news { min-width: 0; overflow: hidden; }
.news-scroller { position: relative; min-width: 0; }
.news-scroller-track {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.news-scroller-track::-webkit-scrollbar { display: none; }
.news-overlay-card {
  position: relative;
  flex: 0 0 calc((100% - 40px) / 3);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated-2);
  display: block;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.news-overlay-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.news-overlay-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-overlay-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,22,0) 35%, rgba(11,14,22,0.92) 100%); }
.news-overlay-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; }
.news-overlay-meta { color: rgba(231,235,247,0.75); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 6px; }
.news-overlay-body h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-scroller-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(231,235,247,0.25);
  background: rgba(11, 14, 22, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  opacity: 0.85;
}
.news-scroller-arrow:hover { background: rgba(91, 140, 255, 0.55); opacity: 1; }
.news-scroller-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .news-overlay-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 640px) {
  .news-overlay-card { flex-basis: 78%; }
  .news-scroller-arrow { width: 38px; height: 38px; font-size: 1.2rem; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 8px 20px rgba(91, 140, 255, 0.25); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); }
.btn-amazon {
  background: var(--amazon);
  color: #111;
  width: 100%;
  text-align: center;
  margin-top: 14px;
}
.btn-amazon:hover { background: var(--amazon-dark); }
.btn-small { width: auto; padding: 8px 16px; font-size: 0.85rem; margin-top: 0; white-space: nowrap; }

/* Version en ingles: hasta 5 botones (uno por mercado de Amazon: EE.UU.,
   Canada, Reino Unido, Irlanda, Australia) en vez del boton unico "Ver en
   Amazon". Mas pequenos que .btn-amazon normal para que quepan varios en
   fila; se envuelven a la siguiente linea si no caben todos. */
.btn-amazon-countries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; width: 100%; }
.btn-amazon-countries-small { margin-top: 0; gap: 4px; }
.btn-country {
  width: auto;
  flex: 0 0 auto;
  padding: 7px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
  margin-top: 0;
}
.btn-country-small {
  padding: 4px 7px;
  font-size: 0.64rem;
}

/* ============ Sections & headings ============ */
.section { padding: 56px 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { font-size: 1.6rem; }
.see-all { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.section-title { font-size: 1.4rem; margin-top: 2.2em; padding-top: 0.4em; border-top: 1px solid var(--border); }

.page-header { padding: 48px 0 8px; }
.page-header h1 { font-size: 2.2rem; }
.page-intro { color: var(--text-muted); max-width: 640px; }

/* ============ Card grid (noticias / comparativas) ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-image-link { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-elevated-2); }
.card-image-link img { width: 100%; height: 100%; object-fit: contain; }
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 14, 22, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.card-body h3 { font-size: 1.1rem; }
.card-body h3 a:hover { color: var(--accent); }
.card-excerpt { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.card-readmore { margin-top: 12px; color: var(--accent); font-weight: 700; font-size: 0.88rem; }

/* ============ Article ============ */
.article { max-width: 760px; padding-top: 40px; padding-bottom: 60px; }
.article-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; }
.article-meta a { color: var(--accent); }
.article h1 { font-size: 2rem; margin-bottom: 20px; }
.article-hero { width: 100%; max-height: 460px; aspect-ratio: 16 / 9; object-fit: contain; background: var(--bg-elevated); border-radius: var(--radius); margin-bottom: 28px; border: 1px solid var(--border); }
.credits-table img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.article-body { color: #d6dbef; font-size: 1.05rem; }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { font-size: 1.4rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.4em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em 1.4em; }
.article-body li { margin-bottom: 0.4em; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-page .article-body { max-width: 680px; }
.disclosure-inline { color: var(--text-muted); font-size: 0.85rem; margin-top: 30px; font-style: italic; }

/* ============ Tabla comparativa ============ */
.table-wrapper { overflow-x: auto; margin: 24px 0 40px; border: 1px solid var(--border); border-radius: var(--radius); }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--bg-elevated); }
.comparison-table th, .comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.comparison-table th { color: var(--text-muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; }
.comparison-table tr:last-child td { border-bottom: none; }
.table-rank { color: var(--accent); font-weight: 700; }
.table-product { display: flex; align-items: center; gap: 12px; }
.table-product img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.stars { color: #ffb100; letter-spacing: 1px; }
.rating-value { color: var(--text-muted); font-size: 0.85rem; margin-left: 4px; }

/* ============ Product grid (comparativas detalle) ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin: 24px 0 20px;
}
.product-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
/* Panel de ficha tecnica ("infograma") de ancho completo, con las secciones
   distribuidas en columnas internas (auto-fit) para aprovechar el ancho en
   vez de quedar como una unica columna muy larga. Va ANTES de la
   product-grid, no al lado — un panel muy largo en paralelo con la tarjeta
   de producto (bastante mas corta) queda descompensado visualmente. */
.specs-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px 8px;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  column-gap: 28px;
}
.specs-panel-title { grid-column: 1 / -1; margin: 0 0 10px; font-size: 1.05rem; }
.specs-section { margin-bottom: 10px; }
.specs-section h4 {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.specs-section dl { margin: 0; }
.specs-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.8rem;
  line-height: 1.3;
}
.specs-row:last-child { border-bottom: none; }
.specs-row dt { color: var(--text-muted); flex: 0 0 42%; }
.specs-row dd { margin: 0; text-align: right; flex: 1; }

/* Enlace "Ver analisis completo", embebido dentro de la product-card justo
   debajo de la imagen del producto. */
.product-card-analysis-link {
  text-align: center;
  margin: 12px 0 4px;
}
/* Cuando una product-card vive dentro del cuerpo de un articulo (comparativas
   con layout personalizado por rango de precio), la regla general
   ".article-body a" pisaria el color/subrayado propio de cada boton — se
   restauran aqui explicitamente. */
.article-body .btn { text-decoration: none; }
.article-body .btn-amazon { color: #111; }
.article-body .btn-outline { color: var(--text); }
.product-rank {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.product-highlight {
  display: inline-block;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}
.product-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; margin-bottom: 14px; background: var(--bg-elevated-2); }
.product-name { font-size: 1.05rem; margin-bottom: 6px; }
.product-rating { margin-bottom: 6px; font-size: 0.9rem; }
.product-price { color: var(--success); font-weight: 700; margin: 0 0 12px; }
.product-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.85rem; }
.product-pros-cons h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin-bottom: 6px; }
.product-pros-cons ul { display: flex; flex-direction: column; gap: 4px; }
.pros li::before { content: "+ "; color: var(--success); font-weight: 700; }
.cons li::before { content: "– "; color: #ff6b6b; font-weight: 700; }

/* ============ Score badge (analisis) ============ */
.score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin: 10px 0 4px;
}
.score-badge small { font-size: 0.75rem; font-weight: 700; opacity: 0.85; }
.score-caption { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 20px; }
.card-score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 9px;
  border-radius: 999px;
}

/* ============ Category pill (enlace) ============ */
.category-pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.category-pill:hover { border-color: var(--accent); color: var(--accent); }

/* ============ Categorias (indice) ============ */
.category-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  padding-bottom: 40px;
}
.category-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 700;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.category-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.category-tile-count {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--bg-elevated-2);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ============ Catalogo de productos ============ */
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 28px; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-sort { display: flex; align-items: center; gap: 8px; }
.catalog-sort label { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.catalog-sort-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.catalog-sort-select:hover { border-color: var(--accent); }
.catalog-filter-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.catalog-filter-btn:hover { border-color: var(--accent); color: var(--text); }
.catalog-filter-btn.active { background: var(--bg-elevated-2); color: var(--text); border-color: var(--accent); }
.catalog-card-actions { display: flex; gap: 8px; margin-top: 14px; }
.catalog-card-actions .btn { width: auto; flex: 1; margin-top: 0; }
.catalog-card[hidden] { display: none; }
.catalog-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.catalog-search { position: relative; }
.catalog-search-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  min-width: 220px;
}
.catalog-search-input:hover, .catalog-search-input:focus { border-color: var(--accent); outline: none; }
.catalog-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.catalog-search-suggestions[hidden] { display: none; }
.catalog-search-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}
.catalog-search-suggestion:hover, .catalog-search-suggestion.active { background: var(--bg-elevated-2); }
.catalog-search-suggestion mark { background: none; color: var(--accent); font-weight: 700; }
.catalog-search-empty { padding: 8px 10px; color: var(--text-muted); font-size: 0.85rem; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 0; background: var(--bg-elevated); }
.footer-inner { display: grid; gap: 18px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin: 6px 0 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--text-muted); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--text); }
.affiliate-disclosure { color: var(--text-muted); font-size: 0.82rem; max-width: 720px; }
.affiliate-disclosure a { color: var(--accent); }
.copyright { color: var(--text-muted); font-size: 0.8rem; margin: 0; }

.not-found { text-align: center; padding: 100px 0; }
.not-found h1 { font-size: 5rem; }

/* ============ Responsive ============ */
@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav a { display: block; padding: 14px 0; }
  .product-pros-cons { grid-template-columns: 1fr; }
  .home-columns { grid-template-columns: 1fr; }
  .feed-item h3 { font-size: 0.92rem; }
}

/* ============ Paginacion de archivos (comparativas, analisis...) ============ */
.pagination, .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 32px 0 48px;
}
.pagination .page-numbers, .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}
.pagination .page-numbers.current, .nav-links .page-numbers.current {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}
.pagination .page-numbers.dots, .nav-links .page-numbers.dots {
  background: none;
  border: none;
}
.pagination a.page-numbers:hover, .nav-links a.page-numbers:hover {
  border-color: var(--accent);
}

/* Tablas dentro de noticias (todos los idiomas), consistentes con el estilo de wp-block-table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid var(--border);
}
.article-body table th,
.article-body table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.article-body table th {
  background: var(--bg-elevated-2);
  font-weight: 600;
}

/* ============ Imagenes intercaladas en el cuerpo del articulo ============
   El cuerpo de los articulos no tenia ninguna regla para <figure>: las
   imagenes salian pegadas al texto y los pies de foto como parrafo normal.
   Anadido el 24-08-2026 para el analisis de la Gamescom. */
.article-body figure {
  margin: 30px 0;
}
.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
}
.article-body figcaption {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 10px;
  text-align: center;
}
.article-body figcaption a {
  color: var(--accent);
}
/* Las tablas ya venian envueltas en <figure class="wp-block-table">: no
   deben heredar el borde ni el radio de las imagenes, y necesitan scroll
   horizontal propio en movil. */
.article-body figure.wp-block-table {
  margin: 24px 0;
  overflow-x: auto;
}
.article-body figure.wp-block-table img {
  border: 0;
  border-radius: 0;
}

/* --- Tira de tres imagenes en horizontal dentro del articulo.
   Una imagen 4:3 a todo el ancho de la columna queda demasiado alta; en
   tira de tres se recorta a 16:10 y ocupa una franja proporcionada.
   En movil se apilan, porque a 3 columnas cada una bajaria de 100px. --- */
.article-body figure.gng-trio .trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.article-body figure.gng-trio img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 640px) {
  .article-body figure.gng-trio .trio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .article-body figure.gng-trio img {
    aspect-ratio: 16 / 9;
  }
}

/* ============ Ficha de producto: tarjeta horizontal ============
   En una comparativa la rejilla lleva muchas tarjetas en columnas estrechas y
   la disposicion vertical es la correcta. En un analisis hay UNA sola tarjeta,
   y a lo ancho se lee mejor: imagen a la izquierda, datos a la derecha.
   Se acota con body.single-analisis para no tocar las comparativas, que
   comparten la misma clase .product-card.  (03-09-2026) */
body.single-analisis .product-grid {
    grid-template-columns: 1fr;
}
body.single-analisis .product-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    column-gap: 24px;
    align-items: start;
}
body.single-analisis .product-image {
    /* ocupa la columna izquierda entera, sean las filas que sean */
    grid-area: 1 / 1 / 100 / 2;
    width: 240px;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
    align-self: start;
}
body.single-analisis .product-card > :not(.product-image) {
    grid-column: 2;
}
body.single-analisis .product-pros-cons {
    grid-template-columns: 1fr 1fr;
    margin-top: 4px;
}
body.single-analisis .btn-amazon {
    justify-self: start;
    margin-top: 14px;
}
@media (max-width: 700px) {
    /* en movil no cabe: se vuelve a la disposicion vertical de siempre */
    body.single-analisis .product-card {
        display: flex;
        flex-direction: column;
    }
    body.single-analisis .product-image {
        width: 100%;
        margin-bottom: 14px;
    }
    body.single-analisis .product-pros-cons {
        grid-template-columns: 1fr;
    }
}
