/* ==========================================================================
   Fit.minimalbase.com — Sistema de Estilos v3.0
   Dual Theme · Editorial · Review Page · Gallery · Sin modal
   ========================================================================== */

:root {
  --bg-main:     #F7F7F8;
  --bg-surface:  #FFFFFF;
  --bg-elevated: #EFEFF3;
  --bg-subtle:   #E4E5EB;
  --text-primary:   #17181C;
  --text-secondary: #565968;
  --text-muted:     #8B8F9F;
  --border-light:  #DFE1E8;
  --border-subtle: #ECEEF2;
  --border-focus:  #17181C;

  --verdict-green-bg:   #EDF5EE; --verdict-green-text: #1A5C2A;
  --verdict-blue-bg:    #EAF0F8; --verdict-blue-text:  #1A3A5C;
  --verdict-amber-bg:   #FBF4E6; --verdict-amber-text: #5C3D0F;
  --verdict-red-bg:     #FBECEA; --verdict-red-text:   #5C1A1A;

  --cat-bg:   #EFEFF3;
  --cat-text: #3A3C48;
  --score-fill:  #17181C;
  --score-track: #E4E5EB;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-xs: 4px;  --radius-sm: 6px;  --radius-md: 10px;
  --radius-lg: 16px; --radius-xl: 24px; --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-card:   0 4px 18px -2px rgba(0,0,0,0.05);
  --shadow-hover:  0 12px 30px -4px rgba(0,0,0,0.09);

  --t-fast:   0.16s cubic-bezier(0.4,0,0.2,1);
  --t-normal: 0.26s cubic-bezier(0.4,0,0.2,1);
  --t-theme:  background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

[data-theme="dark"] {
  --bg-main:     #141518;
  --bg-surface:  #1E2024;
  --bg-elevated: #282A30;
  --bg-subtle:   #33363E;
  --text-primary:   #F0F2F5;
  --text-secondary: #B0B5C4;
  --text-muted:     #7E8496;
  --border-light:  #353842;
  --border-subtle: #272A32;
  --border-focus:  #F0F2F5;

  --verdict-green-bg:   #172B1E; --verdict-green-text: #6FD48A;
  --verdict-blue-bg:    #172030; --verdict-blue-text:  #7DB3E8;
  --verdict-amber-bg:   #2C2010; --verdict-amber-text: #DEB76A;
  --verdict-red-bg:     #2A1212; --verdict-red-text:   #E88080;

  --cat-bg:   #282A30; --cat-text: #B0B5C4;
  --score-fill:  #E0E2EC; --score-track: #33363E;

  --shadow-subtle: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-card:   0 4px 20px -2px rgba(0,0,0,0.3);
  --shadow-hover:  0 12px 32px -4px rgba(0,0,0,0.45);
}

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

html {
  font-size: 16px; scroll-behavior: smooth;
  background-color: var(--bg-main); color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: var(--t-theme); overflow-x: hidden;
}
body {
  min-height: 100vh; display: flex; flex-direction: column;
  line-height: 1.6; background-color: var(--bg-main); color: var(--text-primary);
  transition: var(--t-theme); overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-main);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
  transition: var(--t-theme);
}
.header-container {
  max-width: 1240px; margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.brand { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-logo { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.brand-logo span { color: var(--text-muted); font-weight: 500; }
.brand-tagline { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }

.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background-color: var(--bg-elevated); }
.nav-links a.admin-link { color: var(--text-muted); font-size: 0.8rem; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle {
  display: flex; align-items: center; gap: 0.45rem;
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--radius-full); padding: 0.35rem 0.75rem;
  cursor: pointer; color: var(--text-secondary); font-size: 0.8rem; font-weight: 500;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--border-focus); }
.theme-icon { flex-shrink: 0; }

/* En modo luz: el botón invita a ir a noche (mostrar luna, ocultar sol) */
[data-theme="light"] .sun-icon,
:root:not([data-theme="dark"]) .sun-icon { display: none; }
[data-theme="light"] .moon-icon,
:root:not([data-theme="dark"]) .moon-icon { display: inline-block; }

/* En modo noche: el botón invita a ir a luz (mostrar sol, ocultar luna) */
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: inline-block; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.4rem;
}
.nav-hamburger .bar {
  display: block; width: 22px; height: 2px;
  background-color: var(--text-primary); border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
@media (max-width: 820px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle);
    flex-direction: column; padding: 1rem 1.5rem; gap: 0.25rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform var(--t-normal), opacity var(--t-normal); z-index: 99;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { width: 100%; padding: 0.6rem 0.75rem; }
}

/* ── MAIN ────────────────────────────────────────────────────────────────── */
.main-content { flex: 1; }

/* ── HERO (index) ────────────────────────────────────────────────────────── */
.hero-section {
  max-width: 1240px; margin: 0 auto; padding: 4rem 1.5rem 3rem;
}
.hero-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1; max-width: 680px; margin-bottom: 1.1rem;
}
.hero-description {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 560px; line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-stat-num { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.05em; }
.hero-stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

/* ── MANIFIESTO EDITORIAL / FILOSOFÍA DEL MES ────────────────────────── */
.manifesto-section {
  max-width: 1240px; margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}
.manifesto-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--text-primary);
  border-radius: var(--radius-md);
  padding: 2.2rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.manifesto-watermark {
  position: absolute;
  right: 1.5rem;
  bottom: -1.5rem;
  font-size: clamp(8rem, 16vw, 13rem);
  font-weight: 800;
  font-family: monospace;
  line-height: 1;
  color: var(--text-primary);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.manifesto-content {
  display: flex;
  flex-direction: column;
}
.manifesto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.manifesto-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.manifesto-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.manifesto-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.manifesto-quote {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  font-style: italic;
  color: var(--text-primary);
  margin: 0 0 0.8rem 0;
  padding-left: 0;
  font-weight: 400;
}
.manifesto-author {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
  margin-bottom: 1.15rem;
  letter-spacing: 0.02em;
}
.manifesto-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.1rem;
}

/* Carrusel Visual Minimalista */
.manifesto-media {
  width: 100%;
}
.manifesto-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.manifesto-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.manifesto-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.manifesto-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.manifesto-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.manifesto-carousel-controls {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
  transition: opacity var(--t-fast);
}
.manifesto-nav-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.15rem 0.35rem;
  opacity: 0.75;
  line-height: 1;
  transition: opacity var(--t-fast);
}
.manifesto-nav-btn:hover {
  opacity: 1;
}
.manifesto-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.manifesto-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}
.manifesto-dot.active {
  width: 18px;
  border-radius: 3px;
  background: #FFFFFF;
}

@media (max-width: 920px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .manifesto-card { padding: 1.75rem 1.5rem; }
  .manifesto-carousel { aspect-ratio: 16 / 10; max-height: 360px; }
}
@media (max-width: 640px) {
  .manifesto-card { padding: 1.35rem 1.15rem; }
  .manifesto-header { flex-direction: column; align-items: flex-start; }
}

/* ── CONTROLS (index) ────────────────────────────────────────────────────── */
.controls-section {
  max-width: 1240px; margin: 0 auto;
  padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
.search-wrapper { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 0.85rem; color: var(--text-muted); pointer-events: none; }
#searchInput {
  width: 100%; max-width: 500px;
  padding: 0.65rem 2.4rem 0.65rem 2.5rem;
  border: 1px solid var(--border-light); border-radius: var(--radius-full);
  background: var(--bg-surface); color: var(--text-primary);
  font-size: 0.88rem; outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
#searchInput::placeholder { color: var(--text-muted); }
#searchInput:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(23,24,28,0.06); }
.clear-btn {
  position: absolute; left: calc(500px - 2rem);
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 1rem; padding: 0.2rem; transition: color var(--t-fast);
}
.clear-btn:hover { color: var(--text-primary); }

.filter-wrapper { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.filter-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.filter-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pill {
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full); padding: 0.35rem 0.85rem;
  font-size: 0.8rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all var(--t-fast); white-space: nowrap;
}
.pill:hover { background: var(--bg-subtle); color: var(--text-primary); }
.pill.active { background: var(--text-primary); color: var(--bg-main); border-color: var(--text-primary); }

.sort-wrapper { margin-left: auto; }
.sort-select {
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 0.4rem 0.75rem;
  color: var(--text-secondary); font-size: 0.8rem; cursor: pointer;
  outline: none; transition: border-color var(--t-fast);
}
.sort-select:hover { border-color: var(--border-focus); }

/* ── STATUS BAR ──────────────────────────────────────────────────────────── */
.status-bar {
  max-width: 1240px; margin: 0 auto; padding: 0 1.5rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.results-count { font-size: 0.82rem; color: var(--text-muted); }
.status-legend { display: flex; gap: 0.75rem; }
.legend-badge {
  font-size: 0.75rem; color: var(--text-muted); background: var(--bg-elevated);
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full); border: 1px solid var(--border-subtle);
}

/* ── REVIEWS GRID (index) ────────────────────────────────────────────────── */
.reviews-section { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ── REVIEW CARD ─────────────────────────────────────────────────────────── */
.review-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: box-shadow var(--t-normal), transform var(--t-normal), border-color var(--t-normal);
  box-shadow: var(--shadow-subtle); display: flex; flex-direction: column;
  position: relative; text-decoration: none; color: inherit;
}
.review-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--border-light); }
.review-card.featured::before {
  content: "★ Destacado"; position: absolute; top: 0.85rem; left: 0.85rem;
  background: var(--text-primary); color: var(--bg-main);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: var(--radius-full); z-index: 2;
}
.card-image-wrap {
  position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-elevated);
}
.card-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.review-card:hover .card-image-wrap img { transform: scale(1.04); }

.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.card-category {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); background: var(--cat-bg); padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}
.card-price { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.card-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.card-brand { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.card-summary {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem; border-top: 1px solid var(--border-subtle); margin-top: auto;
}
.verdict-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem; border-radius: var(--radius-full);
}
.verdict-badge.green { background: var(--verdict-green-bg); color: var(--verdict-green-text); }
.verdict-badge.blue  { background: var(--verdict-blue-bg);  color: var(--verdict-blue-text); }
.verdict-badge.amber { background: var(--verdict-amber-bg); color: var(--verdict-amber-text); }
.verdict-badge.red   { background: var(--verdict-red-bg);   color: var(--verdict-red-text); }
.card-avg-score { font-size: 0.8rem; font-weight: 700; letter-spacing: -0.02em; }
.card-avg-score span { font-weight: 400; color: var(--text-muted); font-size: 0.72rem; }

/* ── EMPTY STATE ─────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 1.5rem; color: var(--text-muted); }
.empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.88rem; margin-bottom: 1.25rem; }
.btn-reset {
  background: var(--text-primary); color: var(--bg-main); border: none;
  border-radius: var(--radius-full); padding: 0.55rem 1.25rem;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: opacity var(--t-fast);
}
.btn-reset:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════════════════════
   REVIEW PAGE (review.html)
   ═══════════════════════════════════════════════════════════════════════════ */

.review-page { flex: 1; }

/* Breadcrumb */
.review-breadcrumb {
  max-width: 1240px; margin: 0 auto; padding: 1.25rem 1.5rem 0;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.breadcrumb-item {
  font-size: 0.8rem; color: var(--text-muted);
  transition: color var(--t-fast);
}
.breadcrumb-item:hover { color: var(--text-primary); }
.breadcrumb-sep { font-size: 0.75rem; color: var(--text-muted); opacity: 0.5; }
.breadcrumb-current { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }

/* Layout de la review */
.review-layout {
  max-width: 1240px; margin: 0 auto; padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 980px) {
  .review-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* Columna principal */
.review-main {}

/* Cabecera del producto */
.review-header { margin-bottom: 1.75rem; }
.review-eyebrow {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.review-cat-badge {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); background: var(--cat-bg); padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}
.review-price-tag { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.review-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 0.35rem;
}
.review-brand { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.85rem; }
.review-summary { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.65; }

/* Galería de imágenes */
.review-gallery { margin-bottom: 2rem; }
.gallery-main {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-elevated); aspect-ratio: 4/5; max-height: 680px; margin-bottom: 0.75rem;
  position: relative;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity var(--t-normal);
}
.gallery-thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 90px; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; border: 2px solid transparent; background: var(--bg-elevated);
  transition: border-color var(--t-fast), opacity var(--t-fast); flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.active { border-color: var(--border-focus); }

/* Video */
.review-video { margin-bottom: 2rem; }
.review-video-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.75rem;
}
.video-container {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--bg-elevated);
}
.video-container iframe,
.video-container video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: none; border-radius: var(--radius-lg);
}

/* Tags */
.review-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tag-chip {
  font-size: 0.72rem; color: var(--text-muted); background: var(--bg-elevated);
  border: 1px solid var(--border-subtle); padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Pros & Cons */
.review-pros-cons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem;
}
@media (max-width: 540px) { .review-pros-cons { grid-template-columns: 1fr; } }
.pros-block, .cons-block {
  background: var(--bg-elevated); border-radius: var(--radius-md); padding: 1.1rem 1.25rem;
}
.pros-block { border-left: 3px solid var(--verdict-green-text); }
.cons-block { border-left: 3px solid var(--verdict-red-text); }
.pc-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.65rem;
}
.pros-block .pc-title { color: var(--verdict-green-text); }
.cons-block .pc-title { color: var(--verdict-red-text); }
.pc-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.pc-list li { font-size: 0.85rem; color: var(--text-secondary); display: flex; gap: 0.5rem; line-height: 1.4; }
.pc-list li::before { flex-shrink: 0; font-size: 0.7rem; margin-top: 0.15rem; }
.pros-block .pc-list li::before { content: "✓"; color: var(--verdict-green-text); }
.cons-block .pc-list li::before { content: "×"; color: var(--verdict-red-text); }

/* Contenido editorial */
.review-editorial {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8;
  border-top: 1px solid var(--border-subtle); padding-top: 1.5rem;
}
.review-editorial h2 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin: 1.5rem 0 0.5rem; letter-spacing: -0.03em; }
.review-editorial h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin: 1.25rem 0 0.4rem; letter-spacing: -0.02em; }
.review-editorial p { margin-bottom: 0.85rem; }
.review-editorial strong { color: var(--text-primary); font-weight: 600; }
.review-editorial em { font-style: italic; }
.review-editorial ul { margin: 0.5rem 0 0.85rem 1.25rem; }
.review-editorial li { margin-bottom: 0.3rem; font-size: 0.92rem; }

/* ── SIDEBAR de la review ─────────────────────────────────────────────────── */
.review-sidebar {}

/* Veredicto sticky */
.review-verdict-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
  position: sticky; top: 90px;
}
.verdict-card-top {
  padding: 1.25rem; border-bottom: 1px solid var(--border-subtle);
}
.verdict-card-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.5rem; }
.verdict-card-text { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; }
.verdict-card-text.green { color: var(--verdict-green-text); }
.verdict-card-text.blue  { color: var(--verdict-blue-text); }
.verdict-card-text.amber { color: var(--verdict-amber-text); }
.verdict-card-text.red   { color: var(--verdict-red-text); }
.verdict-avg-display {
  display: flex; align-items: baseline; gap: 0.25rem; margin-top: 0.25rem;
}
.verdict-avg-num { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.05em; }
.verdict-avg-den { font-size: 0.85rem; color: var(--text-muted); }

/* Score bars (sidebar) */
.sidebar-scores { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; }
.sidebar-scores-title {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.1rem;
}
.score-row { display: flex; align-items: center; gap: 0.75rem; }
.score-icon { font-size: 0.85rem; width: 1rem; text-align: center; color: var(--text-muted); flex-shrink: 0; }
.score-name { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); min-width: 95px; }
.score-bar-wrap { flex: 1; height: 5px; background: var(--score-track); border-radius: var(--radius-full); overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--score-fill); border-radius: var(--radius-full); transition: width 0.9s cubic-bezier(0.4,0,0.2,1); }
.score-value { font-size: 0.78rem; font-weight: 700; min-width: 1.2rem; text-align: right; }

/* Links de afiliados con Regiones y Geo-Detección */
.affiliate-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}
.affiliate-card-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.affiliate-title {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin: 0;
}
.affiliate-geo-badge {
  font-size: 0.66rem; font-weight: 500; color: var(--text-muted);
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.5rem; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.affiliate-region-tabs {
  display: flex; gap: 0.35rem; flex-wrap: wrap;
  margin-bottom: 0.85rem; padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}
.affiliate-region-tab {
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full); padding: 0.25rem 0.65rem;
  font-size: 0.74rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all var(--t-fast); white-space: nowrap;
}
.affiliate-region-tab:hover {
  background: var(--bg-subtle); color: var(--text-primary);
  border-color: var(--border-light);
}
.affiliate-region-tab.active {
  background: var(--text-primary); color: var(--bg-main);
  border-color: var(--text-primary);
}
.affiliate-links-list { display: flex; flex-direction: column; gap: 0.5rem; }
.affiliate-link-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.65rem 0.9rem;
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: all var(--t-fast); cursor: pointer;
}
.affiliate-link-btn:hover {
  background: var(--text-primary); color: var(--bg-main);
  border-color: var(--text-primary);
}
.affiliate-link-btn span { font-size: 0.9rem; }
.affiliate-link-store-name {
  display: flex; align-items: center; gap: 0.4rem;
}
.affiliate-link-region-tag {
  font-size: 0.68rem; font-weight: 500; opacity: 0.65;
}
.affiliate-link-empty { font-size: 0.82rem; color: var(--text-muted); text-align: center; padding: 0.5rem 0; }

/* Navegación entre reviews (back) */
.review-nav-bar {
  max-width: 1240px; margin: 0 auto; padding: 0 1.5rem 1rem;
}
.btn-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  background: none; border: none; cursor: pointer; padding: 0.5rem 0;
  transition: color var(--t-fast);
}
/* ── SECCIÓN DE CONTACTO B2B / MARCAS / PUBLICIDAD ───────────────────────── */
.contact-section {
  max-width: 1240px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}
.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.8rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.b2b-details {
  list-style: none;
}
.b2b-details > summary {
  list-style: none;
}
.b2b-details > summary::-webkit-details-marker {
  display: none;
}
.b2b-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: opacity var(--t-fast);
}
.b2b-summary:hover {
  opacity: 0.92;
}
.b2b-summary:hover .b2b-toggle-btn {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
}
.contact-header-text {
  flex: 1;
}
.contact-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.contact-title {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0;
}
.b2b-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--t-fast);
  pointer-events: none;
}
.b2b-toggle-icon {
  font-size: 0.9rem;
  transition: transform var(--t-fast);
}
.b2b-details[open] .b2b-toggle-icon {
  transform: rotate(180deg);
}
.b2b-collapse-body {
  margin-top: 1.75rem;
}
.contact-notice {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--text-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.notice-icon {
  font-size: 1.1rem;
  color: var(--text-primary);
  flex-shrink: 0;
  line-height: 1.3;
}
.notice-text strong {
  color: var(--text-primary);
  font-weight: 700;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-label-clean {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.input-clean {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input-clean:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(23, 24, 28, 0.06);
}
.textarea-clean {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
.contact-type-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.type-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.type-pill:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.type-pill.active {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
}
.contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}
.btn-submit-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-primary);
  color: var(--bg-main);
  border: 1px solid var(--text-primary);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}
.btn-submit-contact:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.direct-email-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.direct-email-note a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
}

@media (max-width: 820px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 1.75rem 1.4rem;
  }
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle); background-color: var(--bg-main);
  padding: 2rem 1.5rem; transition: var(--t-theme); margin-top: auto;
}
.footer-container {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-title { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--text-primary); }
.footer-meta { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.footer-meta span { font-size: 0.75rem; color: var(--text-muted); }

/* ── TOAST ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  background: var(--text-primary); color: var(--bg-main);
  padding: 0.7rem 1.4rem; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600; z-index: 9999; opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-section { padding: 2.5rem 1.25rem 2rem; }
  .controls-section, .status-bar, .reviews-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  #searchInput { max-width: 100%; }
  .clear-btn { left: calc(100% - 2.5rem); }
  .review-layout { padding: 1.5rem 1.25rem 3rem; }
  .review-title { font-size: 1.6rem; }
  .gallery-thumb { width: 64px; height: 46px; }
}
@media (max-width: 860px) { .sort-wrapper { margin-left: 0; } }

/* ── Página de error (review no encontrada) ───────────────────────────────── */
.not-found-page {
  flex: 1; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem; text-align: center; padding: 3rem 1.5rem;
}
.not-found-page h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.not-found-page p { color: var(--text-muted); font-size: 0.9rem; }
.btn-go-home {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--text-primary); color: var(--bg-main);
  border: none; border-radius: var(--radius-full);
  padding: 0.65rem 1.4rem; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; margin-top: 0.5rem; transition: opacity var(--t-fast);
  text-decoration: none;
}
.btn-go-home:hover { opacity: 0.8; }

/* ── MODAL FICHA RÁPIDA / POPUP MINIMALISTA (OPCIÓN B) ─────────────────── */
.card-type-tag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 0.2rem 0.55rem; border-radius: var(--radius-full);
  letter-spacing: 0.02em; z-index: 2; pointer-events: none;
}
.review-card.quick-pick {
  border-style: solid;
}
.card-footer.quick-footer {
  justify-content: flex-end;
  border-top: 1px dashed var(--border-subtle);
}
.quick-shop-btn {
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.25rem;
  transition: transform var(--t-fast);
}
.review-card.quick-pick:hover .quick-shop-btn {
  transform: translateX(3px);
}

.quick-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.quick-modal-overlay.active {
  opacity: 1; visibility: visible;
}
.quick-modal {
  position: relative;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 820px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
}
.quick-modal-overlay.active .quick-modal {
  transform: translateY(0) scale(1);
}
.quick-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 34px; height: 34px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  z-index: 10;
}
.quick-modal-close:hover {
  background: var(--bg-subtle);
  transform: scale(1.05);
}
.qm-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.qm-gallery { display: flex; flex-direction: column; gap: 0.75rem; }
.qm-main-img-box {
  width: 100%; height: 320px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.qm-main-img-box img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.2s;
}
.qm-thumbs {
  display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem;
}
.qm-thumb {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  overflow: hidden; cursor: pointer;
  transition: border-color var(--t-fast), opacity var(--t-fast);
  opacity: 0.65;
}
.qm-thumb:hover, .qm-thumb.active {
  border-color: var(--text-primary);
  opacity: 1;
}
.qm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qm-info { display: flex; flex-direction: column; }
.qm-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.qm-title {
  font-size: 1.45rem; font-weight: 700;
  letter-spacing: -0.02em; margin: 0 0 0.25rem 0;
  color: var(--text-primary); line-height: 1.25;
}
.qm-brand {
  font-size: 0.85rem; color: var(--text-muted);
  margin: 0 0 1rem 0; font-weight: 500;
}
.qm-desc {
  font-size: 0.92rem; color: var(--text-secondary);
  line-height: 1.6; margin: 0 0 1.25rem 0;
}
.qm-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.5rem;
}
.qm-tag {
  font-size: 0.72rem; padding: 0.2rem 0.55rem;
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full); color: var(--text-muted);
}
.qm-stores-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-top: 0.5rem;
}
.qm-section-title {
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.qm-links-list { display: flex; flex-direction: column; gap: 0.55rem; }
.qm-link-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  transition: all var(--t-fast);
}
.qm-link-btn:hover {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
}
.qm-link-store { display: flex; align-items: center; gap: 0.5rem; }
.qm-link-store small {
  font-size: 0.72rem; font-weight: normal; opacity: 0.8;
}
.qm-link-action {
  font-size: 0.82rem; font-weight: 700;
}

@media (max-width: 720px) {
  .quick-modal { padding: 1.5rem 1.25rem; }
  .qm-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .qm-main-img-box { height: 230px; }
}

