/* =====================================================
   Affiliate store — Premium CSS Design System
   Dark mode + Glassmorphism + Micro-animations
   ===================================================== */

/* Fuentes del sistema: no se carga ningún recurso de terceros antes del consentimiento. */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Color Palette */
  --clr-bg:         #0d0f14;
  --clr-bg-2:       #12151c;
  --clr-bg-card:    #181b24;
  --clr-bg-card-h:  #1e2230;
  --clr-border:     rgba(255,255,255,0.07);
  --clr-border-h:   rgba(255,255,255,0.15);

  --clr-primary:    #f97316;      /* Amazon-ish orange */
  --clr-primary-d:  #ea6808;
  --clr-primary-glow: rgba(var(--clr-primary-rgb,249,115,22),0.25);
  --clr-accent:     #3b82f6;      /* Blue accent */
  --clr-accent-glow:rgba(59,130,246,0.2);
  --clr-green:      #22c55e;
  --clr-red:        #ef4444;
  --clr-gold:       #f59e0b;

  /* Text */
  --clr-text:       #e2e8f0;
  --clr-text-muted: #94a3b8;
  --clr-text-dim:   #64748b;
  --clr-white:      #ffffff;

  /* Glass */
  --glass-bg:       rgba(255,255,255,0.04);
  --glass-bg-h:     rgba(255,255,255,0.07);
  --glass-border:   rgba(255,255,255,0.08);
  --glass-blur:     blur(16px);

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:      0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg:      0 16px 48px rgba(0,0,0,0.6);
  --shadow-glow:    0 0 24px var(--clr-primary-glow);

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #f97316, #fb923c);
  --grad-hero:      linear-gradient(135deg, #0d0f14 0%, #1a1040 50%, #0d1a2e 100%);
  --grad-card:      linear-gradient(145deg, #181b24, #1e2230);

  /* Typography */
  --font-body:      system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display:   system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Border radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.4s ease;

  /* Layout */
  --container: 1280px;
  --nav-h:     116px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: #2d3748; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary); }

/* --- Layout Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.section-sm { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--clr-white), var(--clr-text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--clr-text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-xl);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--t-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--clr-white);
  box-shadow: 0 4px 16px var(--clr-primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--clr-primary-glow);
}

.btn-amazon {
  background: linear-gradient(135deg, #ff9900, #ffb347);
  color: #000;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(255,153,0,0.3);
}
.btn-amazon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,153,0,0.45);
}

.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--clr-text);
  backdrop-filter: var(--glass-blur);
}
.btn-ghost:hover {
  background: var(--glass-bg-h);
  border-color: var(--clr-border-h);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* --- Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--t-base);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-lg);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
  overflow: visible;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--clr-white);
  background: var(--glass-bg);
}
.nav-link .nav-icon { font-size: 1.1em; }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 200px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t-base);
  z-index: 200;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  transition: all var(--t-fast);
}
.nav-dropdown a:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.nav-dropdown a:last-child  { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.nav-dropdown a:hover { background: var(--glass-bg); color: var(--clr-white); }

/* Search bar */
.nav-search-row {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  padding-bottom: 8px;
}

.nav-search {
  position: relative;
  flex: 0 1 500px;
  width: 100%;
}
.nav-search input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--t-base);
  outline: none;
}
.nav-search input:focus {
  border-color: var(--clr-primary);
  background: var(--glass-bg-h);
  box-shadow: 0 0 0 3px var(--clr-primary-glow);
}
.nav-search input::placeholder { color: var(--clr-text-dim); }
.nav-search-btn {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  background: var(--grad-primary);
  border: none;
  border-radius: var(--radius-full);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity var(--t-fast);
}
.nav-search-btn:hover { opacity: 0.85; }

/* Language Switcher */
.lang-switcher {
  position: relative;
  margin-left: 12px;
  flex-shrink: 0;
}
.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  color: var(--clr-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
}
.lang-switcher-btn:hover {
  border-color: var(--clr-primary);
  background: var(--glass-bg-h);
}
.lang-switcher-btn .lang-code {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.lang-switcher-btn svg {
  opacity: 0.6;
  transition: transform var(--t-base);
}
.lang-switcher-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(24, 27, 36, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--clr-border-h);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
  list-style: none;
  margin: 0;
  animation: langDropIn 0.2s ease;
}
.lang-dropdown.open {
  display: block;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--t-fast);
}
.lang-option:hover {
  background: var(--glass-bg-h);
  color: var(--clr-text);
}
.lang-option.active {
  color: var(--clr-primary);
  background: rgba(var(--clr-primary-rgb, 99, 102, 241), 0.1);
  font-weight: 700;
}
.lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}
@keyframes langDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--t-base);
}

/* --- Hero Section --- */
.hero {
  background: var(--grad-hero);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(var(--clr-primary-rgb,249,115,22),0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--clr-primary-rgb,249,115,22),0.15);
  border: 1px solid rgba(var(--clr-primary-rgb,249,115,22),0.3);
  color: var(--clr-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-weight: 900;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, #fff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 span { color: var(--clr-primary); -webkit-text-fill-color: var(--clr-primary); }

.hero-desc {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--clr-border);
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-primary);
  font-family: var(--font-display);
}
.hero-stat span { font-size: 0.85rem; color: var(--clr-text-muted); }

/* --- Product Cards --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t-base);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-border-h);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(var(--clr-primary-rgb,249,115,22),0.1);
}

.product-card-img-wrap {
  position: relative;
  padding-top: 75%; /* 4:3 aspect */
  background: #1a1d28;
  overflow: hidden;
}
.product-card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform var(--t-slow);
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.06); }

/* Badges */
.badge {
  position: absolute;
  top: 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}
.badge-featured  { left: 12px; background: var(--grad-primary); color: #000; }
.badge-bestseller { left: 12px; background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000; }
.badge-discount  { right: 12px; background: var(--clr-red); color: #fff; }
.badge-new       { right: 12px; background: var(--clr-accent); color: #fff; }

.product-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card-brand {
  font-size: 0.78rem;
  color: var(--clr-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars { display: inline-flex; gap: 1px; }
.star.full  { color: var(--clr-gold); }
.star.half  { color: var(--clr-gold); opacity: 0.6; }
.star.empty { color: #2d3748; }
.rating-count { font-size: 0.78rem; color: var(--clr-text-dim); }

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}
.price-current {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-white);
  font-family: var(--font-display);
}
.price-original {
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  text-decoration: line-through;
}
.price-save {
  font-size: 0.8rem;
  color: var(--clr-green);
  font-weight: 600;
}

.product-card-footer {
  padding: 0 var(--space-md) var(--space-md);
}
.product-card-footer .btn { width: 100%; justify-content: center; }

/* --- Categories Grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.category-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  transition: all var(--t-base);
  cursor: pointer;
  display: block;
  backdrop-filter: var(--glass-blur);
}
.category-card:hover {
  background: var(--glass-bg-h);
  border-color: var(--clr-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 24px var(--clr-primary-glow);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  display: block;
  line-height: 1;
  transition: transform var(--t-base);
}
.category-card:hover .category-icon { transform: scale(1.15) rotate(-5deg); }

.category-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.category-count {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* --- Product Detail Page --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.product-main-img {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-md);
}
.product-main-img img {
  max-height: 400px;
  object-fit: contain;
  margin: 0 auto;
  transition: transform var(--t-slow);
}
.product-main-img:hover img { transform: scale(1.05); }

.product-info h1 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: var(--space-md);
  color: var(--clr-white);
}

.product-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--clr-border);
}

.product-price-wrap {
  margin-bottom: var(--space-lg);
}
.product-price-current {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--clr-white);
  font-family: var(--font-display);
  line-height: 1;
}
.product-price-note {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  margin-top: 4px;
}

.product-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.product-cta-wrap .btn { justify-content: center; }

/* Pros & Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}
.pros-box, .cons-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.pros-box { border-left: 3px solid var(--clr-green); }
.cons-box { border-left: 3px solid var(--clr-red); }
.pros-cons h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}
.pros-box h4 { color: var(--clr-green); }
.cons-box h4 { color: var(--clr-red); }
.pros-cons li {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}
.pros-cons li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.pros-box li::before { content: '✓'; color: var(--clr-green); }
.cons-box li::before { content: '✗'; color: var(--clr-red); }

/* Features list */
.features-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--clr-border);
}
.features-list li::before {
  content: '▸';
  color: var(--clr-primary);
  position: absolute;
  left: 0;
}
.features-list li:last-child { border-bottom: none; }

/* --- Filters Bar --- */
.filters-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
}

.filters-bar label {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  white-space: nowrap;
}

.filters-bar select {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--t-fast);
}
.filters-bar select:focus { border-color: var(--clr-primary); }

.filters-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--t-fast);
  border: 1px solid var(--clr-border);
  background: var(--glass-bg);
}
.pagination a:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.pagination .active {
  background: var(--grad-primary);
  border-color: var(--clr-primary);
  color: #000;
  box-shadow: var(--shadow-glow);
}

/* --- Breadcrumb --- */
.breadcrumb {
  margin-bottom: var(--space-lg);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
}
.breadcrumb a { color: var(--clr-text-muted); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--clr-primary); }
.breadcrumb [aria-current="page"] { color: var(--clr-text); font-weight: 500; }
.bc-sep { color: var(--clr-text-dim); font-size: 0.9em; }

/* --- Affiliate Disclosure Banner --- */
.disclosure-banner {
  background: rgba(var(--clr-primary-rgb,249,115,22),0.08);
  border: 1px solid rgba(var(--clr-primary-rgb,249,115,22),0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  text-align: center;
  margin-bottom: var(--space-xl);
}
.disclosure-banner strong { color: var(--clr-primary); }

/* --- Footer --- */
.site-footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  margin-top: var(--space-sm);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-md);
}
.footer-col a {
  display: block;
  color: var(--clr-text-dim);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--clr-primary); }

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--clr-text-dim);
}

/* --- Skeleton Loading --- */
.skeleton {
  background: linear-gradient(90deg, var(--clr-bg-card) 25%, var(--clr-bg-card-h) 50%, var(--clr-bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- Toast Notifications --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  transition: all var(--t-base);
  z-index: 1000;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.animate-fade-up  { animation: fadeInUp 0.5s ease forwards; }
.animate-fade-in  { animation: fadeIn   0.4s ease forwards; }

/* Staggered animation for grid items */
.products-grid .product-card:nth-child(1)  { animation-delay: 0.05s; }
.products-grid .product-card:nth-child(2)  { animation-delay: 0.1s; }
.products-grid .product-card:nth-child(3)  { animation-delay: 0.15s; }
.products-grid .product-card:nth-child(4)  { animation-delay: 0.2s; }
.products-grid .product-card:nth-child(5)  { animation-delay: 0.25s; }
.products-grid .product-card:nth-child(6)  { animation-delay: 0.3s; }
.products-grid .product-card:nth-child(7)  { animation-delay: 0.35s; }
.products-grid .product-card:nth-child(8)  { animation-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; flex-direction: column; background: var(--clr-bg); padding: var(--space-xl) var(--space-lg); overflow-y: auto; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-search { display: block; }
  .nav-search-row { padding-left: var(--space-md); padding-right: var(--space-md); }
  .hero { padding: var(--space-2xl) 0; }
  .hero-stats { gap: var(--space-lg); flex-wrap: wrap; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  :root { --space-lg: 16px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .product-card-body { padding: var(--space-sm); }
}

/* --- Utility Classes --- */
.text-primary { color: var(--clr-primary); }
.text-muted   { color: var(--clr-text-muted); }
.text-sm      { font-size: 0.875rem; }
.text-center  { text-align: center; }
.font-bold    { font-weight: 700; }
.mt-auto      { margin-top: auto; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Cookie Consent Banner (GDPR Compliance) --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 760px;
  background: rgba(24, 27, 36, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--clr-border-h);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 24px;
  z-index: 1000;
  animation: cookieFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  animation: spinSlow 12s linear infinite;
}

.cookie-banner-content p {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-content p a {
  color: var(--clr-primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-content p a:hover {
  color: var(--clr-primary-d);
}

.btn-cookie-accept,
.btn-cookie-reject {
  flex-shrink: 0;
  padding: 8px 20px;
  font-size: 0.85rem;
}

@keyframes cookieFadeInUp {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
    width: 95%;
    padding: 14px 18px;
  }
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .btn-cookie-accept,
.btn-cookie-reject {
    width: 100%;
    justify-content: center;
  }
}

/* Rechazar y Aceptar tienen el mismo peso visual */
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-link-cookies { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.price-date { display: block; font-size: 0.72rem; color: var(--clr-text-dim); }

/* Contenido editorial de las guías (tablas y listas escritas en HTML desde el panel o un perfil) */
.guide-body h3{font-size:1.15rem;color:var(--clr-text);margin:var(--space-lg) 0 var(--space-sm)}
.guide-body ul,.guide-body ol{padding-left:1.3em;margin:0 0 var(--space-md)}
.guide-body li{margin-bottom:.35em}
.guide-body table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:.9rem;margin:var(--space-md) 0 var(--space-lg)}
.guide-body th,.guide-body td{padding:10px;border-bottom:1px solid var(--clr-border);text-align:left;vertical-align:top;min-width:120px}
.guide-body th{color:var(--clr-text);font-weight:600;background:rgba(127,127,127,.08)}
