/* ==========================================================================
   rankingtop10.es - Sistema de Diseño y Estilos Principales
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  /* Paleta Oscura (Default) */
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #1f293d;
  --bg-card-hover: #2a3754;
  --bg-glass: rgba(31, 41, 61, 0.7);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.3);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Colores de Marca y Acento */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);

  --amazon-orange: #ff9900;
  --amazon-hover: #e68a00;
  --amazon-glow: rgba(255, 153, 0, 0.25);

  /* Ranking Metals */
  --gold-color: #fbbf24;
  --gold-bg: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(180, 83, 9, 0.1) 100%);
  --gold-border: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.3);

  --silver-color: #e2e8f0;
  --silver-bg: linear-gradient(135deg, rgba(226, 232, 240, 0.12) 0%, rgba(71, 85, 105, 0.1) 100%);
  --silver-border: #94a3b8;
  --silver-glow: rgba(148, 163, 184, 0.25);

  --bronze-color: #fb923c;
  --bronze-bg: linear-gradient(135deg, rgba(251, 146, 60, 0.12) 0%, rgba(154, 52, 18, 0.1) 100%);
  --bronze-border: #d97706;
  --bronze-glow: rgba(217, 119, 6, 0.25);

  /* Resaltado Producto Más Económico */
  --eco-color: #10b981;
  --eco-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(4, 120, 87, 0.1) 100%);
  --eco-border: #059669;
  --eco-glow: rgba(16, 185, 129, 0.35);

  /* Pros & Contras */
  --pro-color: #10b981;
  --pro-bg: rgba(16, 185, 129, 0.1);
  --con-color: #ef4444;
  --con-bg: rgba(239, 68, 68, 0.1);

  /* General */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --container-width: 1240px;
}

/* Modo Claro */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --border-subtle: #cbd5e1;
  --border-accent: rgba(99, 102, 241, 0.35);

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #475569;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 35px rgba(0, 0, 0, 0.12);

  --gold-color: #d97706;
  --silver-color: #334155;
  --bronze-color: #c2410c;
  --eco-color: #047857;

  --gold-bg: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  --silver-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --bronze-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  --eco-bg: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

/* Ajustes de Contraste para Modo Claro */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #be185d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-tag {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: #4338ca;
}

[data-theme="light"] .hero-search-input,
[data-theme="light"] .nav-search input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .hero-search-input::placeholder,
[data-theme="light"] .nav-search input::placeholder {
  color: #64748b;
}

[data-theme="light"] .hero-search-icon-lg,
[data-theme="light"] .nav-search-icon {
  color: #475569;
}

[data-theme="light"] .popular-chips {
  color: #334155;
}

[data-theme="light"] .popular-chips-label {
  color: #475569;
}

[data-theme="light"] .chip {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme="light"] .chip:hover,
[data-theme="light"] .chip.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--primary);
  color: #4338ca;
}

[data-theme="light"] .no-search-results {
  background: #ffffff;
  border-color: #cbd5e1;
}

[data-theme="light"] .featured-ranking-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .badge-featured {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

[data-theme="light"] .card-category-badge {
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .ranking-header-badge {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: #4338ca;
}

[data-theme="light"] .tag-gold {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

[data-theme="light"] .tag-silver {
  background: #f1f5f9;
  color: #334155;
  border-color: #94a3b8;
}

[data-theme="light"] .tag-bronze {
  background: #ffedd5;
  color: #9a3412;
  border-color: #ea580c;
}

[data-theme="light"] .tag-eco {
  background: #d1fae5;
  color: #065f46;
  border-color: #059669;
}

[data-theme="light"] .product-category-tag,
[data-theme="light"] .table-product-category {
  color: #4338ca !important;
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-theme="light"] .guide-article h3,
[data-theme="light"] .legal-content h2 {
  color: #4338ca;
}

[data-theme="light"] .legal-box {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.25);
}

/* Modo Claro: Puntuaciones, Desglose y Metodología */
[data-theme="light"] .score-breakdown-accordion {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .score-breakdown-accordion[open] {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .score-breakdown-summary {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .score-breakdown-summary:hover {
  background: #e2e8f0;
}

[data-theme="light"] .score-breakdown-accordion .score-breakdown-grid {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

[data-theme="light"] .score-breakdown-title {
  color: #0f172a;
}

[data-theme="light"] .score-scale-hint {
  color: #64748b !important;
}

[data-theme="light"] .score-breakdown-accordion .accordion-arrow {
  color: #64748b;
}

[data-theme="light"] .score-breakdown-accordion[open] .accordion-arrow {
  color: #4338ca;
}

[data-theme="light"] .score-bar-name {
  color: #334155;
  font-weight: 700;
}

[data-theme="light"] .score-bar-val {
  color: #0f172a;
  font-weight: 800;
}

[data-theme="light"] .score-bar-track {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .score-bar-fill.fill-high {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

[data-theme="light"] .score-bar-fill.fill-mid {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}

[data-theme="light"] .position-reason-box {
  background: rgba(99, 102, 241, 0.07);
  border-left: 4px solid #4338ca;
  color: #0f172a;
}

[data-theme="light"] .position-reason-box strong {
  color: #4338ca;
}

[data-theme="light"] .global-score-badge {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .global-score-badge .score-num {
  color: #1e1b4b;
}

[data-theme="light"] .global-score-badge.badge-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

[data-theme="light"] .global-score-badge.badge-gold .score-num {
  color: #78350f;
}

[data-theme="light"] .global-score-badge.badge-silver {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #94a3b8;
}

[data-theme="light"] .global-score-badge.badge-silver .score-num {
  color: #0f172a;
}

[data-theme="light"] .global-score-badge.badge-bronze {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  border-color: #f97316;
}

[data-theme="light"] .global-score-badge.badge-bronze .score-num {
  color: #7c2d12;
}

[data-theme="light"] .global-score-badge.badge-eco {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #059669;
}

[data-theme="light"] .global-score-badge.badge-eco .score-num {
  color: #064e3b;
}

[data-theme="light"] .confidence-pill.conf-alta {
  background: #d1fae5;
  border-color: #059669;
  color: #065f46;
}

[data-theme="light"] .confidence-pill.conf-media {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
}

[data-theme="light"] .market-card {
  background: #ffffff;
  border-color: #cbd5e1;
}

[data-theme="light"] .weight-chip {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  color: #1e293b;
}

[data-theme="light"] .source-item-link {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .source-item-link:hover {
  background: #f8fafc;
  border-color: #4338ca;
}


/* Reset y Base Rígido Antidesbordamiento */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  padding-top: 72px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
td,
th {
  overflow-wrap: break-word;
  word-break: break-word;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Tipografía */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navegación (Siempre Visible) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 4px 12px var(--primary-glow);
  display: block;
}

.logo-text span {
  color: var(--primary);
}

.logo-domain {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Enlace a Metodología destacado en menú principal */
.nav-links a.nav-link-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid var(--border-accent);
  color: #a5b4fc;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: var(--transition);
}

.nav-links a.nav-link-highlight:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-links a.nav-link-highlight.active {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-color: transparent;
  color: #ffffff;
}

.nav-links a.nav-link-highlight::after {
  display: none;
}

[data-theme="light"] .nav-links a.nav-link-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
}

[data-theme="light"] .nav-links a.nav-link-highlight:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border-color: #4338ca;
  color: #312e81;
}

[data-theme="light"] .nav-links a.nav-link-highlight.active {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buscador Quick Nav Header */
.nav-search {
  position: relative;
}

.nav-search input {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  width: 200px;
  transition: var(--transition);
}

.nav-search input:focus {
  outline: none;
  border-color: var(--primary);
  width: 260px;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.nav-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  transform: rotate(15deg);
}

.mobile-menu-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* HERO SECTION (Main Page) */
.hero {
  padding: 5rem 0 3.5rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 40%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-accent);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  width: 100%;
  margin: 0 auto 2.5rem;
}

/* Buscador Principal Hero */
.hero-search-box {
  max-width: 650px;
  margin: 0 auto 2rem;
  position: relative;
}

.hero-search-input {
  width: 100%;
  padding: 1.2rem 1.5rem 1.2rem 3.2rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 1.05rem;
  font-family: var(--font-body);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.hero-search-icon-lg {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--text-dim);
}

.hero-search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 1.8rem;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.hero-search-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.popular-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.popular-chips-label {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  font-family: inherit;
}

.chip:hover,
.chip.active {
  border-color: var(--primary);
  color: var(--text-main);
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.no-search-results {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  margin-top: 1.5rem;
}

.no-search-icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  opacity: 0.8;
}

.no-search-results h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.no-search-results p {
  color: var(--text-muted);
  font-size: 0.975rem;
  max-width: 550px;
  margin: 0 auto;
}

/* SECTION TITLES */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* BANNER RANKING DESTACADO */
.featured-ranking-card {
  background: linear-gradient(135deg, rgba(31, 41, 61, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold-color);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.featured-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.featured-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.featured-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-amazon {
  background: var(--amazon-orange);
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 4px 14px var(--amazon-glow);
}

.btn-amazon:hover {
  background: var(--amazon-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--amazon-glow);
  color: #0f172a;
}

.btn-store {
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-store:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
  color: #ffffff;
}

/* Marca Amazon */
.btn-store.btn-amazon, .btn-amazon {
  background: var(--amazon-orange);
  color: #0f172a;
  box-shadow: 0 4px 14px var(--amazon-glow);
}
.btn-store.btn-amazon:hover, .btn-amazon:hover {
  background: var(--amazon-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--amazon-glow);
  color: #0f172a;
}

/* Marca MediaMarkt (Rojo) */
.btn-store.btn-mediamarkt {
  background: #df0000;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(223, 0, 0, 0.4);
}
.btn-store.btn-mediamarkt:hover {
  background: #b80000;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(223, 0, 0, 0.55);
}

/* Marca Sprinter (Verde Lima) */
.btn-store.btn-sprinter {
  background: #76c043;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(118, 192, 67, 0.4);
}
.btn-store.btn-sprinter:hover {
  background: #63a834;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(118, 192, 67, 0.55);
}

/* Marca PcComponentes (Naranja) */
.btn-store.btn-pccomponentes {
  background: #ff6600;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.4);
}
.btn-store.btn-pccomponentes:hover {
  background: #e05500;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.55);
}

/* Marca El Corte Inglés (Verde Oscuro) */
.btn-store.btn-elcorteingles {
  background: #006633;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 102, 51, 0.4);
}
.btn-store.btn-elcorteingles:hover {
  background: #004d26;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 102, 51, 0.55);
}

/* Marca Carrefour (Azul Intenso) */
.btn-store.btn-carrefour {
  background: #0055a5;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 85, 165, 0.4);
}
.btn-store.btn-carrefour:hover {
  background: #00407d;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 85, 165, 0.55);
}

/* Marca Fnac (Amarillo Mostaza) */
.btn-store.btn-fnac {
  background: #e6a100;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(230, 161, 0, 0.4);
}
.btn-store.btn-fnac:hover {
  background: #cc8f00;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(230, 161, 0, 0.55);
}

/* Marca Leroy Merlin (Verde Jardín) */
.btn-store.btn-leroymerlin {
  background: #009245;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 146, 69, 0.4);
}
.btn-store.btn-leroymerlin:hover {
  background: #007a3a;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 146, 69, 0.55);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.featured-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-img-wrapper img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.featured-ranking-card:hover .featured-img-wrapper img {
  transform: scale(1.04);
}

/* GRID DE RANKINGS POPULARES */
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ranking-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.ranking-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.ranking-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: #a5b4fc;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.card-title a:hover {
  color: var(--primary);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.825rem;
  color: var(--text-dim);
}

.card-products-count {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--primary);
}

/* SECCIÓN METODOLOGÍA / CONFIANZA */
.trust-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  margin-bottom: 5rem;
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.trust-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.trust-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.trust-icon {
  width: 54px;
  height: 54px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 auto 1rem;
}

.trust-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.trust-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PÁGINA DE RANKING DETALLADO (ranking-auriculares.html)
   ========================================================================== */

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 1.8rem 0 1rem;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

/* Header del Ranking */
.ranking-header {
  position: relative;
  padding: 3rem 2.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ranking-header-glow {
  position: absolute;
  top: -80px;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(0, 0, 0, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ranking-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-accent);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.ranking-header-badge .badge-icon {
  font-size: 1rem;
}

.ranking-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  width: 100%;
}

.ranking-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 1.8rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.ranking-header-highlights {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.highlight-item .check-icon {
  color: var(--eco-color);
  font-weight: 800;
}

/* SECCIÓN 1: TABLA RESUMEN RÁPIDO */
.quick-summary-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-md);
}

.summary-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.summary-title {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.filter-buttons-group {
  display: flex;
  gap: 0.5rem;
}

.btn-filter-sm {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-filter-sm.active,
.btn-filter-sm:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Tabla Estilo Cards / Responsive Grid */
.summary-table-container {
  overflow: hidden;
}

.summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.8rem;
}

.summary-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 2px solid var(--border-subtle);
}

.summary-table tr.summary-row {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.summary-table tr.summary-row:hover {
  background: var(--bg-card-hover);
}

.summary-table tr.summary-row.is-gold {
  border-left: 4px solid var(--gold-border);
}

.summary-table tr.summary-row.is-silver {
  border-left: 4px solid var(--silver-border);
}

.summary-table tr.summary-row.is-bronze {
  border-left: 4px solid var(--bronze-border);
}

.summary-table tr.summary-row.is-eco {
  border-left: 4px solid var(--eco-border);
}

.summary-table td {
  padding: 1rem;
  vertical-align: middle;
}

.summary-table td:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.summary-table td:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

/* Posiciones y Medallas */
.rank-badge-cell {
  width: 60px;
  text-align: center;
}

.rank-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto;
  background: var(--bg-main);
  border: 2px solid var(--border-subtle);
  color: var(--text-main);
}

.rank-num.gold {
  background: var(--gold-color);
  color: #0f172a;
  border-color: #fef08a;
  box-shadow: 0 0 12px var(--gold-glow);
}

.rank-num.silver {
  background: var(--silver-color);
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 0 12px var(--silver-glow);
}

.rank-num.bronze {
  background: var(--bronze-color);
  color: #0f172a;
  border-color: #fed7aa;
  box-shadow: 0 0 12px var(--bronze-glow);
}

html[data-theme="light"] .rank-num.gold,
html[data-theme="light"] .rank-num.silver,
html[data-theme="light"] .rank-num.bronze {
  color: #ffffff;
}

.rank-num.eco {
  background: var(--eco-color);
  color: #ffffff;
  border-color: #a7f3d0;
  box-shadow: 0 0 12px var(--eco-glow);
}

.table-product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.table-product-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.table-product-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.3;
}

.table-product-tag {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-top: 0.3rem;
}

.tag-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid var(--gold-border);
}

.tag-silver {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  border: 1px solid var(--silver-border);
}

.tag-bronze {
  background: rgba(217, 119, 6, 0.2);
  color: #fb923c;
  border: 1px solid var(--bronze-border);
}

.tag-eco {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid var(--eco-border);
}

.table-rating {
  color: #fbbf24;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.rating-score {
  color: var(--text-muted);
  font-size: 0.825rem;
}

.table-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 140px;
}

.btn-detail-link {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.btn-detail-link:hover {
  text-decoration: underline;
  color: #a5b4fc;
}


/* SECCIÓN 2: LISTADO DETALLADO #1 AL #10 */
.detailed-ranking-section {
  margin-bottom: 4rem;
}

.product-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  scroll-margin-top: 100px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Estilos de Medallas para las Tarjetas Detalladas */
.product-detail-card.card-gold {
  background: var(--gold-bg);
  border: 2px solid var(--gold-border);
  box-shadow: 0 10px 30px var(--gold-glow);
}

.product-detail-card.card-silver {
  background: var(--silver-bg);
  border: 2px solid var(--silver-border);
  box-shadow: 0 10px 30px var(--silver-glow);
}

.product-detail-card.card-bronze {
  background: var(--bronze-bg);
  border: 2px solid var(--bronze-border);
  box-shadow: 0 10px 30px var(--bronze-glow);
}

/* RESALTADO ESPECIAL PRODUCTO MÁS ECONÓMICO */
.product-detail-card.card-eco {
  background: var(--eco-bg);
  border: 2.5px solid var(--eco-border);
  box-shadow: 0 10px 35px var(--eco-glow);
  position: relative;
  overflow: visible;
}

.product-detail-card.card-eco .product-card-header {
  margin-top: 0.6rem;
}

.eco-ribbon-highlight {
  position: absolute;
  top: -14px;
  right: 2rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 1.2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 10;
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  }

  100% {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.7);
  }
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-badge-rank {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-big-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-dim);
}

.card-gold .product-big-num {
  color: var(--gold-color);
}

.card-silver .product-big-num {
  color: var(--silver-color);
}

.card-bronze .product-big-num {
  color: var(--bronze-color);
}

.card-eco .product-big-num {
  color: var(--eco-color);
}

.product-main-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.25;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-sub-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  max-width: 100%;
}

.product-card-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.2rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.product-img-container {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.product-img-container img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: block;
}

.product-img-container:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   NUEVOS COMPONENTES: PUNTUACIONES GLOBALES, DESGLOSE Y METODOLOGÍA
   ========================================================================== */

/* Badge de Puntuación Global */
.product-score-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.global-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.9rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  font-family: var(--font-heading);
}

.global-score-badge.badge-gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(217, 119, 6, 0.2) 100%);
  border-color: var(--gold-border);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.global-score-badge.badge-silver {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.25) 0%, rgba(148, 163, 184, 0.2) 100%);
  border-color: var(--silver-border);
  box-shadow: 0 4px 15px var(--silver-glow);
}

.global-score-badge.badge-bronze {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.25) 0%, rgba(217, 119, 6, 0.2) 100%);
  border-color: var(--bronze-border);
  box-shadow: 0 4px 15px var(--bronze-glow);
}

.global-score-badge.badge-eco {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.2) 100%);
  border-color: var(--eco-border);
  box-shadow: 0 4px 15px var(--eco-glow);
}

.score-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.score-label-text {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

/* Badge Nivel de Confianza */
.confidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.confidence-pill.conf-alta {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.confidence-pill.conf-media {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* Caja de Motivo de Posición */
.position-reason-box {
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
}

.position-reason-box strong {
  color: #818cf8;
}

/* Desglose de Puntuación (Accordion & Bar Grid) */
.score-breakdown-accordion {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.score-breakdown-accordion[open] {
  background: rgba(17, 24, 39, 0.75);
  border-color: rgba(99, 102, 241, 0.35);
}

.score-breakdown-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: rgba(99, 102, 241, 0.08);
  transition: var(--transition);
}

.score-breakdown-summary::-webkit-details-marker,
.score-breakdown-summary::marker {
  display: none;
  content: "";
}

.score-breakdown-summary:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.score-breakdown-summary:hover .score-breakdown-title,
.score-breakdown-summary:hover .score-breakdown-title span:first-child {
  color: #a5b4fc;
}

.score-breakdown-summary .score-breakdown-title {
  margin-bottom: 0;
  gap: 0.8rem;
  flex: 1;
  transition: var(--transition);
}

.score-breakdown-summary .score-breakdown-title span {
  transition: var(--transition);
}

.score-breakdown-accordion .accordion-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}

.score-breakdown-accordion[open] .accordion-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.score-breakdown-accordion .score-breakdown-grid {
  padding: 1rem 1.1rem 1.1rem 1.1rem;
  border-top: 1px solid var(--border-subtle);
}

.score-breakdown-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.score-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}

@media (max-width: 768px) {
  .score-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

.score-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.score-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.score-bar-name {
  color: var(--text-muted);
  font-weight: 600;
}

.score-bar-val {
  color: var(--text-main);
  font-weight: 800;
}

.score-bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary) 0%, #a855f7 100%);
  transition: width 0.6s ease-out;
}

.score-bar-fill.fill-high {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.score-bar-fill.fill-mid {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

/* Tarjetas de Estudio de Mercado y Metodología */
.market-study-section, .methodology-section {
  margin-bottom: 3.5rem;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.market-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.3rem;
}

.market-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.weight-chips-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.weight-chip {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.sources-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.source-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.source-item-link:hover {
  border-color: var(--primary);
  background: var(--bg-card);
}

.product-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  max-width: 100%;
}

.product-info-col > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.score-scale-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: normal;
}

@media (max-width: 768px) {
  .score-scale-hint {
    display: none !important;
  }
}

/* Acordeón de Pros y Contras */
.pros-cons-accordion {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.pros-cons-accordion[open] {
  background: rgba(17, 24, 39, 0.7);
  border-color: rgba(99, 102, 241, 0.35);
}

.pros-cons-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: rgba(99, 102, 241, 0.08);
  transition: var(--transition);
}

.pros-cons-summary::-webkit-details-marker,
.pros-cons-summary::marker {
  display: none;
  content: "";
}

.pros-cons-summary:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.pros-cons-accordion .accordion-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.pros-cons-accordion[open] .accordion-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.pros-cons-accordion .pros-cons-grid {
  padding: 1rem;
  margin: 0;
  border-top: 1px solid var(--border-subtle);
}

[data-theme="light"] .pros-cons-accordion {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .pros-cons-accordion[open] {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
}

[data-theme="light"] .pros-cons-summary {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .pros-cons-summary:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

.description-specs-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 850px) {
  .description-specs-wrapper {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

.product-description-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.specs-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
}

.spec-item {
  color: var(--text-muted);
}

.spec-item strong,
.spec-label {
  font-weight: 700;
  color: var(--text-main);
  margin-right: 0.25rem;
}

/* PROS Y CONTRAS */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.pros-box,
.cons-box {
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.pros-box {
  background: var(--pro-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cons-box {
  background: var(--con-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pros-cons-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pros-box .pros-cons-title {
  color: var(--pro-color);
}

.cons-box .pros-cons-title {
  color: var(--con-color);
}

.pros-cons-list li {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.pros-cons-list li:last-child {
  margin-bottom: 0;
}

.icon-pro {
  color: var(--pro-color);
  font-weight: 800;
  flex-shrink: 0;
}

.icon-con {
  color: var(--con-color);
  font-weight: 800;
  flex-shrink: 0;
}

/* Bloque 1: Caja de Precio Destacada (Separada) */
.product-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  margin-top: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-eco .product-price-box {
  border-left-color: var(--eco-color);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(4, 120, 87, 0.05) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18);
}

.product-price-box .price-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.card-eco .product-price-box .price-label {
  color: #34d399;
}

.product-price-box .price-val {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.price-eco-highlight {
  color: var(--eco-color);
  font-size: 1.7rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Bloque 2: Botonera de Tiendas (Separada) */
.product-buy-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

/* Botones visuales por marca de tienda */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  line-height: 1;
}

.store-icon-svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  stroke: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.store-btn .store-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.store-btn .store-price-tag {
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.825rem;
  white-space: nowrap;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Marca: Amazon */
.store-btn-amazon {
  background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%);
  color: #111827;
  border: 1px solid #ffaa22;
}

.store-btn-amazon:hover {
  background: linear-gradient(135deg, #ffa826 0%, #ff9900 100%);
  color: #000000;
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.store-btn-amazon .store-price-tag {
  background: rgba(0, 0, 0, 0.12);
  color: #111827;
}

/* Marca: PcComponentes */
.store-btn-pccomponentes {
  background: linear-gradient(135deg, #ff6600 0%, #d95300 100%);
  color: #ffffff;
  border: 1px solid #ff771b;
}

.store-btn-pccomponentes:hover {
  background: linear-gradient(135deg, #ff771c 0%, #ff6600 100%);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.store-btn-pccomponentes .store-price-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Marca: MediaMarkt */
.store-btn-mediamarkt {
  background: linear-gradient(135deg, #e30613 0%, #b8000b 100%);
  color: #ffffff;
  border: 1px solid #f5222f;
}

.store-btn-mediamarkt:hover {
  background: linear-gradient(135deg, #f51e2b 0%, #e30613 100%);
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

.store-btn-mediamarkt .store-price-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Marca: Leroy Merlin */
.store-btn-leroymerlin {
  background: linear-gradient(135deg, #009900 0%, #007700 100%);
  color: #ffffff;
  border: 1px solid #14b814;
}

.store-btn-leroymerlin:hover {
  background: linear-gradient(135deg, #14b814 0%, #009900 100%);
  box-shadow: 0 6px 20px rgba(0, 153, 0, 0.4);
}

.store-btn-leroymerlin .store-price-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Marca: Carrefour */
.store-btn-carrefour {
  background: linear-gradient(135deg, #0055a5 0%, #00366b 100%);
  color: #ffffff;
  border: 1px solid #0066cc;
}

.store-btn-carrefour:hover {
  background: linear-gradient(135deg, #0066cc 0%, #0055a5 100%);
  box-shadow: 0 6px 20px rgba(0, 85, 165, 0.4);
}

.store-btn-carrefour .store-price-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Marca: CoolMod */
.store-btn-coolmod {
  background: linear-gradient(135deg, #00a8e8 0%, #007ea7 100%);
  color: #ffffff;
  border: 1px solid #33beff;
}

.store-btn-coolmod:hover {
  background: linear-gradient(135deg, #1ab5f5 0%, #00a8e8 100%);
  box-shadow: 0 6px 20px rgba(0, 168, 232, 0.4);
}

.store-btn-coolmod .store-price-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Marca: El Corte Inglés */
.store-btn-elcorteingles {
  background: linear-gradient(135deg, #006633 0%, #004d26 100%);
  color: #ffffff;
  border: 1px solid #008040;
}

.store-btn-elcorteingles:hover {
  background: linear-gradient(135deg, #008040 0%, #006633 100%);
  box-shadow: 0 6px 20px rgba(0, 102, 51, 0.4);
}

.store-btn-elcorteingles .store-price-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Marca: Fnac */
.store-btn-fnac {
  background: linear-gradient(135deg, #e5a800 0%, #b88600 100%);
  color: #111827;
  border: 1px solid #ffbe1a;
}

.store-btn-fnac:hover {
  background: linear-gradient(135deg, #ffbb00 0%, #e5a800 100%);
  color: #000000;
  box-shadow: 0 6px 20px rgba(229, 168, 0, 0.4);
}

.store-btn-fnac .store-price-tag {
  background: rgba(0, 0, 0, 0.12);
  color: #111827;
}

/* Marca: Sprinter */
.store-btn-sprinter {
  background: linear-gradient(135deg, #ff6600 0%, #cc5200 100%);
  color: #ffffff;
  border: 1px solid #ff7a1a;
}

.store-btn-sprinter:hover {
  background: linear-gradient(135deg, #ff771c 0%, #ff6600 100%);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.store-btn-sprinter .store-price-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Marca: Decathlon */
.store-btn-decathlon,
.store-btn[data-store-name*="Decathlon" i],
.store-btn[data-store-name*="decathlon" i] {
  background: linear-gradient(135deg, #0082c3 0%, #005a87 100%);
  color: #ffffff;
  border: 1px solid #0099e6;
}

.store-btn-decathlon:hover,
.store-btn[data-store-name*="Decathlon" i]:hover,
.store-btn[data-store-name*="decathlon" i]:hover {
  background: linear-gradient(135deg, #0096df 0%, #0082c3 100%);
  box-shadow: 0 6px 20px rgba(0, 130, 195, 0.4);
}

.store-btn-decathlon .store-price-tag,
.store-btn[data-store-name*="Decathlon" i] .store-price-tag,
.store-btn[data-store-name*="decathlon" i] .store-price-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Marca: Tiendanimal */
.store-btn-tiendanimal,
.store-btn[data-store-name*="Tiendanimal" i],
.store-btn[data-store-name*="tiendanimal" i] {
  background: linear-gradient(135deg, #008d36 0%, #006627 100%);
  color: #ffffff;
  border: 1px solid #00a843;
}

.store-btn-tiendanimal:hover,
.store-btn[data-store-name*="Tiendanimal" i]:hover,
.store-btn[data-store-name*="tiendanimal" i]:hover {
  background: linear-gradient(135deg, #00a843 0%, #008d36 100%);
  box-shadow: 0 6px 20px rgba(0, 141, 54, 0.4);
}

.store-btn-tiendanimal .store-price-tag,
.store-btn[data-store-name*="Tiendanimal" i] .store-price-tag,
.store-btn[data-store-name*="tiendanimal" i] .store-price-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Marca Genérica / Otras Tiendas */
.store-btn-default {
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-accent);
}

.store-btn-default:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.store-btn-default .store-price-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

/* ==========================================================================
   SECCIÓN 3: GUÍA DE COMPRA Y CRITERIOS TÉCNICOS (SEO)
   ========================================================================== */
.buying-guide-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 5rem;
}

.guide-article h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.guide-article h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1.8rem 0 0.8rem;
  color: #a5b4fc;
}

.guide-article p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.025rem;
  line-height: 1.7;
}

.criteria-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.criteria-card {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.criteria-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.criteria-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.criteria-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.criteria-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ACORDEÓN DE PREGUNTAS FRECUENTES (FAQ) */
.faq-accordion {
  margin-top: 2.5rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-header {
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-header:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-content {
  max-height: 300px;
  padding: 0 1.5rem 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

/* FOOTER (Estilo oscuro constante en ambos modos) */
.site-footer {
  background: #070a11;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 0 2rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.site-footer .logo-text {
  color: #f8fafc;
}

.site-footer .logo-text span {
  color: #818cf8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin: 1rem 0;
  line-height: 1.6;
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-column h4 {
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #818cf8;
}

.affiliate-disclaimer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #94a3b8;
}

.affiliate-disclaimer strong {
  color: #f8fafc;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.825rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-legal-links a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-legal-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* BOTÓN VOLVER ARRIBA / FLOATING */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: var(--primary-hover);
}

/* MODAL DE NOTIFICACIÓN AMAZON */
.amazon-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.amazon-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.amazon-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.amazon-modal-overlay.active .amazon-modal {
  transform: scale(1);
}

.amazon-modal-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 153, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--amazon-orange);
  margin: 0 auto 1.2rem;
}

/* MEDIA QUERIES (RESPONSIVE DESIGN & MOBILE FIT) */
@media (max-width: 992px) {
  .hero h1 {
    font-size: clamp(2rem, 5vw, 2.6rem);
  }

  .featured-ranking-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .featured-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .product-card-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-img-container {
    height: 240px;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }

  .navbar {
    padding: 0.65rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .featured-ranking-card .btn-outline {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem 1.5rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Hero & Headings Mobile */
  .hero {
    padding: 3rem 0 2rem;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.8rem;
  }

  .ranking-header {
    padding: 1.5rem 1rem;
    margin-top: 1rem;
    margin-bottom: 1.8rem;
    border-radius: var(--radius-md);
  }

  .ranking-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-bottom: 0.8rem;
  }

  .ranking-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }

  .ranking-header-highlights {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* Ocultar Tabla Resumen Rápido en Móvil */
  .quick-summary-section {
    display: none !important;
  }

  /* Tarjetas de Producto Detalladas en Móvil */
  .product-detail-card {
    padding: 1.2rem 0.8rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    width: 100%;
  }

  .product-badge-rank {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .product-big-num {
    font-size: 2rem;
  }

  .product-main-title {
    font-size: 1.2rem;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .product-img-container {
    height: 200px;
    padding: 0.8rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-img-container img {
    width: 100%;
    height: 100%;
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
  }

  .product-info-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.8rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .spec-item {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .spec-value {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0.8rem 0.9rem;
    width: 100%;
    box-sizing: border-box;
  }

  .pros-box,
  .cons-box {
    padding: 0.9rem 0.8rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .pros-cons-list li {
    font-size: 0.825rem;
    line-height: 1.4;
    word-break: break-word;
  }

  /* Desplegables / Acordeones en Móvil */
  .score-breakdown-summary,
  .pros-cons-summary {
    padding: 0.75rem 0.9rem;
    gap: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }

  .score-breakdown-summary .score-breakdown-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0;
    width: 100%;
  }

  .score-scale-hint {
    display: none !important;
  }

  .pros-cons-summary span:first-child {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
    word-break: break-word;
    text-align: left;
  }

  .accordion-arrow {
    flex-shrink: 0;
    font-size: 0.8rem;
    margin-left: 0.4rem;
  }

  .score-breakdown-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.8rem 0.9rem;
  }

  /* Botonera de Tiendas en Móvil */
  .product-buy-buttons {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0.6rem;
    margin-top: 0.85rem;
  }

  .store-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    font-size: 0.9rem;
  }

  .store-btn .store-name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    word-break: break-word;
  }

  .store-btn .store-price-tag {
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  /* Bloque CTA / Precio Móvil */
  .product-buy-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.8rem;
    padding: 0.8rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .price-tag-wrapper {
    align-items: center;
  }

  .product-buy-cta .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    white-space: normal;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Secciones Secundarias */
  .buying-guide-section {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    max-width: 100%;
    box-sizing: border-box;
  }

  .guide-article h2 {
    font-size: 1.4rem;
  }

  .guide-article h3 {
    font-size: 1.15rem;
  }

  .criteria-cards-grid {
    grid-template-columns: 1fr;
  }

  .trust-section {
    padding: 2rem 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .legal-container {
    padding: 1.5rem 1rem;
    margin: 1.5rem auto 3rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .legal-container h1 {
    font-size: 1.6rem;
  }

  .legal-content h2 {
    font-size: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .eco-ribbon-highlight {
    position: static;
    display: inline-flex;
    margin-bottom: 0.8rem;
    font-size: 0.725rem;
    padding: 0.3rem 0.8rem;
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
  }

  .featured-ranking-card {
    padding: 1.2rem 0.8rem;
  }

  .product-detail-card {
    padding: 1rem 0.6rem;
  }
}

/* ==========================================================================
   Aviso de Cookies y Configuración de Consentimiento (AEPD / RGPD)
   ========================================================================== */
.cookie-banner-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-banner-wrapper.active {
  opacity: 1;
  visibility: visible;
}

.cookie-banner-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
  animation: cookieSlideUp 0.3s ease-out forwards;
}

@keyframes cookieSlideUp {
  from {
    transform: translateY(20px);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-banner-header {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.cookie-banner-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.cookie-banner-title {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.cookie-banner-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cookie-options-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.cookie-option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cookie-option-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.cookie-option-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cookie-option-info strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.cookie-option-info span {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Switch estilo iOS */
.cookie-switch-wrapper {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-switch-wrapper input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.3s;
  border-radius: 34px;
}

.cookie-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-switch-wrapper input:checked + .cookie-switch-slider {
  background-color: var(--primary);
}

.cookie-switch-wrapper input:focus + .cookie-switch-slider {
  box-shadow: 0 0 1px var(--primary);
}

.cookie-switch-wrapper input:checked + .cookie-switch-slider:before {
  transform: translateX(20px);
}

.cookie-switch-wrapper input:disabled + .cookie-switch-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.btn-cookie-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-cookie-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-cookie-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-outline:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.cookie-banner-footer {
  font-size: 0.825rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.cookie-banner-footer a {
  color: var(--primary);
  text-decoration: none;
}

.cookie-banner-footer a:hover {
  text-decoration: underline;
}

.btn-cookie-settings-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-cookie-settings-link:hover {
  color: var(--primary);
}

@media (max-width: 600px) {
  .cookie-banner-card {
    padding: 1.2rem;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner-actions button {
    width: 100%;
  }

  .cookie-option-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-switch-wrapper {
    align-self: flex-end;
  }
}

/* ==========================================================================
   Ajustes de Contraste para Producto Más Económico (Modo Claro vs Modo Oscuro)
   ========================================================================== */
.eco-callout-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--eco-border);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: #a7f3d0;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.eco-callout-box strong {
  color: #6ee7b7;
}

[data-theme="light"] .card-eco {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #059669;
}

[data-theme="light"] .eco-callout-box,
[data-theme="light"] div[style*="color: #a7f3d0"],
[data-theme="light"] div[style*="color:#a7f3d0"] {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #059669 !important;
  color: #064e3b !important;
}

[data-theme="light"] .eco-callout-box strong,
[data-theme="light"] div[style*="color: #a7f3d0"] strong,
[data-theme="light"] div[style*="color:#a7f3d0"] strong {
  color: #047857 !important;
}

[data-theme="light"] .card-eco .table-rating,
[data-theme="light"] [style*="color: #34d399"],
[data-theme="light"] [style*="color:#34d399"],
[data-theme="light"] .price-label[style*="34d399"] {
  color: #047857 !important;
}

[data-theme="light"] .card-eco .product-description-text {
  color: #0f172a !important;
}

[data-theme="light"] .card-eco .pros-box {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(5, 150, 105, 0.4) !important;
}

[data-theme="light"] .card-eco .pros-box .pros-cons-title,
[data-theme="light"] .card-eco .pros-box .icon-pro {
  color: #047857 !important;
}

[data-theme="light"] .card-eco .pros-cons-list li {
  color: #0f172a !important;
}

[data-theme="light"] .card-eco .spec-label {
  color: #334155 !important;
}

[data-theme="light"] .card-eco .spec-value {
  color: #0f172a !important;
}

[data-theme="light"] .card-eco .product-buy-cta {
  background: #ffffff !important;
  border-color: #059669 !important;
}

[data-theme="light"] .eco-ribbon-highlight {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35);
}

/* ==========================================================================
   Ajustes Definitivos de Modo Claro para Acordeones (Puntuación & Pros/Contras)
   ========================================================================== */
html[data-theme="light"] .score-breakdown-accordion,
[data-theme="light"] .score-breakdown-accordion {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .score-breakdown-accordion[open],
[data-theme="light"] .score-breakdown-accordion[open] {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .score-breakdown-summary,
[data-theme="light"] .score-breakdown-summary {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .score-breakdown-summary:hover,
[data-theme="light"] .score-breakdown-summary:hover {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #4338ca !important;
}

html[data-theme="light"] .score-breakdown-summary:hover .score-breakdown-title,
html[data-theme="light"] .score-breakdown-summary:hover .score-breakdown-title span:first-child,
[data-theme="light"] .score-breakdown-summary:hover .score-breakdown-title,
[data-theme="light"] .score-breakdown-summary:hover .score-breakdown-title span:first-child {
  color: #4338ca !important;
}

html[data-theme="light"] .score-breakdown-accordion .score-breakdown-grid,
[data-theme="light"] .score-breakdown-accordion .score-breakdown-grid {
  border-top: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

html[data-theme="light"] .score-breakdown-title,
[data-theme="light"] .score-breakdown-title,
html[data-theme="light"] .score-breakdown-title *,
[data-theme="light"] .score-breakdown-title * {
  color: #0f172a !important;
}

html[data-theme="light"] .score-scale-hint,
[data-theme="light"] .score-scale-hint {
  color: #64748b !important;
}

html[data-theme="light"] .score-breakdown-accordion .accordion-arrow,
[data-theme="light"] .score-breakdown-accordion .accordion-arrow {
  color: #475569 !important;
}

html[data-theme="light"] .score-breakdown-accordion[open] .accordion-arrow,
[data-theme="light"] .score-breakdown-accordion[open] .accordion-arrow {
  color: #4338ca !important;
}

html[data-theme="light"] .score-bar-name,
[data-theme="light"] .score-bar-name {
  color: #334155 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .score-bar-val,
[data-theme="light"] .score-bar-val {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .score-bar-track,
[data-theme="light"] .score-bar-track {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .score-bar-fill.fill-high,
[data-theme="light"] .score-bar-fill.fill-high {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%) !important;
}

html[data-theme="light"] .score-bar-fill.fill-mid,
[data-theme="light"] .score-bar-fill.fill-mid {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%) !important;
}

/* Acordeón Pros & Contras en Modo Claro */
html[data-theme="light"] .pros-cons-accordion,
[data-theme="light"] .pros-cons-accordion {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .pros-cons-accordion[open],
[data-theme="light"] .pros-cons-accordion[open] {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
}

html[data-theme="light"] .pros-cons-summary,
[data-theme="light"] .pros-cons-summary {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .pros-cons-summary:hover,
[data-theme="light"] .pros-cons-summary:hover {
  background: #cbd5e1 !important;
  color: #4338ca !important;
}

html[data-theme="light"] .pros-cons-accordion .pros-cons-grid,
[data-theme="light"] .pros-cons-accordion .pros-cons-grid {
  border-top: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

html[data-theme="light"] .pros-box,
[data-theme="light"] .pros-box {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
}

html[data-theme="light"] .pros-box .pros-cons-title,
[data-theme="light"] .pros-box .pros-cons-title,
html[data-theme="light"] .pros-box .icon-pro,
[data-theme="light"] .pros-box .icon-pro {
  color: #047857 !important;
}

html[data-theme="light"] .cons-box,
[data-theme="light"] .cons-box {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
}

html[data-theme="light"] .cons-box .pros-cons-title,
[data-theme="light"] .cons-box .pros-cons-title,
html[data-theme="light"] .cons-box .icon-con,
[data-theme="light"] .cons-box .icon-con {
  color: #b91c1c !important;
}

html[data-theme="light"] .pros-cons-list li,
[data-theme="light"] .pros-cons-list li {
  color: #1e293b !important;
}

/* ==========================================================================
   BREADCRUMBS & CATEGORY SEO GUIDE STYLES
   ========================================================================== */
.breadcrumb-container {
  padding: 1rem 0 0.5rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item a {
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary, #6366f1);
}

.breadcrumb-item.active {
  color: var(--text-main, #f8fafc);
  font-weight: 600;
}

.breadcrumb-separator {
  color: var(--border-color, #334155);
  user-select: none;
}

.category-seo-guide {
  margin-top: 4rem;
  margin-bottom: 4rem;
  padding: 2.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.category-seo-guide h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main, #f8fafc);
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-seo-guide h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--primary-light, #818cf8);
}

.category-seo-guide p {
  color: var(--text-muted, #cbd5e1);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

.category-seo-guide ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-muted, #cbd5e1);
  line-height: 1.7;
}

.category-seo-guide li {
  margin-bottom: 0.5rem;
}

.category-seo-guide a {
  color: var(--primary-light, #818cf8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-seo-guide a:hover {
  color: #a5b4fc;
}

[data-theme="light"] .breadcrumb-item a {
  color: #64748b;
}

[data-theme="light"] .breadcrumb-item.active {
  color: #0f172a;
}

[data-theme="light"] .category-seo-guide {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .category-seo-guide h2 {
  color: #0f172a;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .category-seo-guide h3 {
  color: #4338ca;
}

[data-theme="light"] .category-seo-guide p,
[data-theme="light"] .category-seo-guide ul {
  color: #334155;
}

[data-theme="light"] .category-seo-guide a {
  color: #4338ca;
}