/* ==========================================================================
   GEEKFINDER CHILE — GUILD HALL DESIGN SYSTEM (DJANGO 5.2 LTS EDITION)
   Arquitectura UI/UX moderna: Modo Oscuro (Taberna) & Modo Claro (Pergamino)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root, [data-theme="dark"] {
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Fondos y Superficies (Taberna Nocturna / Carbón Cálido) */
  --bg-canvas: #0a0e17;
  --bg-surface: #121927;
  --bg-surface-elevated: #1a2338;
  --bg-surface-hover: #222d47;
  --bg-header: rgba(10, 14, 23, 0.88);
  --bg-glass: rgba(18, 25, 39, 0.85);
  --bg-thumb: #141b2d;
  --backdrop-blur: 16px;

  /* Bordes & Separadores */
  --border-subtle: rgba(212, 175, 55, 0.12);
  --border-main: rgba(212, 175, 55, 0.22);
  --border-hover: rgba(212, 175, 55, 0.45);
  --border-focus: #d4af37;

  /* Paleta Gremial / Marca */
  --brand-gold: #d4af37;
  --brand-gold-glow: rgba(212, 175, 55, 0.25);
  --brand-gold-hover: #e5c158;
  --brand-amber: #e0a96d;
  --brand-amber-light: rgba(224, 169, 109, 0.12);
  --brand-amber-ink: #0a0e17;
  --brand-crimson: #e63946;
  --brand-crimson-light: rgba(230, 57, 70, 0.15);

  /* Estados de Stock */
  --stock-in-text: #10b981;
  --stock-in-bg: rgba(16, 185, 129, 0.12);
  --stock-in-border: rgba(16, 185, 129, 0.25);
  --stock-out-text: #94a3b8;
  --stock-out-bg: rgba(148, 163, 184, 0.10);
  --stock-out-border: rgba(148, 163, 184, 0.20);

  /* Tipografía */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Sombras y Elevación */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 1px rgba(212, 175, 55, 0.2);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.65), 0 0 12px rgba(212, 175, 55, 0.35);
  --shadow-modal: 0 20px 50px rgba(0, 0, 0, 0.85);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Fondos y Superficies (Pergamino Fresco / Marfil Cálido) */
  --bg-canvas: #f8f5ee;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #fcfbf9;
  --bg-surface-hover: #f3ede2;
  --bg-header: rgba(248, 245, 238, 0.90);
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-thumb: #f1ece2;
  --backdrop-blur: 16px;

  /* Bordes & Separadores */
  --border-subtle: rgba(154, 107, 47, 0.14);
  --border-main: rgba(154, 107, 47, 0.24);
  --border-hover: rgba(154, 107, 47, 0.45);
  --border-focus: #9a6b2f;

  /* Paleta Gremial / Marca */
  --brand-gold: #9a6b2f;
  --brand-gold-glow: rgba(154, 107, 47, 0.20);
  --brand-gold-hover: #825722;
  --brand-amber: #b45309;
  --brand-amber-light: rgba(180, 83, 9, 0.10);
  --brand-amber-ink: #ffffff;
  --brand-crimson: #dc2626;
  --brand-crimson-light: rgba(220, 38, 38, 0.10);

  /* Estados de Stock */
  --stock-in-text: #059669;
  --stock-in-bg: rgba(5, 150, 105, 0.10);
  --stock-in-border: rgba(5, 150, 105, 0.25);
  --stock-out-text: #64748b;
  --stock-out-bg: rgba(100, 116, 139, 0.08);
  --stock-out-border: rgba(100, 116, 139, 0.20);

  /* Tipografía */
  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --text-dim: #a8a29e;

  /* Sombras y Elevación */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-card: 0 2px 8px rgba(28, 25, 23, 0.06), 0 0 1px rgba(154, 107, 47, 0.15);
  --shadow-hover: 0 8px 24px rgba(154, 107, 47, 0.14), 0 2px 6px rgba(28, 25, 23, 0.06);
  --shadow-modal: 0 20px 40px rgba(28, 25, 23, 0.20);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body.gf-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  background-color: var(--bg-canvas);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
}

.gf-container {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.gf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gf-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.gf-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   3. CABECERA & NAVBAR STICKY
   -------------------------------------------------------------------------- */
.gf-navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.gf-navbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Logo de Marca */
.gf-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.gf-brand-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logotipos Adaptativos Guild Hall (Claro y Oscuro) */
.gf-logo-dark {
  display: inline-block !important;
}
.gf-logo-light {
  display: none !important;
}
[data-theme="light"] .gf-logo-dark {
  display: none !important;
}
[data-theme="light"] .gf-logo-light {
  display: inline-block !important;
}
.gf-brand-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.gf-footer-brand-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

.gf-icon-svg {
  width: 20px;
  height: 20px;
}

.gf-brand-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gf-brand-tld {
  color: var(--brand-gold);
  font-weight: 700;
  font-size: 0.9em;
}

/* Gatillador de Búsqueda / Command Palette */
.gf-search-trigger {
  flex: 1;
  max-width: 480px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.gf-search-trigger:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-elevated);
  box-shadow: 0 0 0 3px var(--brand-gold-glow);
}

.gf-search-trigger-icon {
  display: flex;
  align-items: center;
  color: var(--brand-gold);
}

.gf-search-trigger-placeholder {
  flex: 1;
  text-align: left;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-kbd-shortcut {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

/* Menú de Navegación */
.gf-nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gf-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.gf-nav-link:hover, .gf-nav-link.active {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.gf-nav-link-badge .gf-badge-fire {
  font-size: 0.9em;
}

.gf-nav-link-store {
  color: var(--brand-gold);
  background: var(--brand-amber-light);
  border: 1px solid var(--border-subtle);
}

.gf-nav-link-store:hover {
  background: var(--brand-gold);
  color: var(--brand-amber-ink);
}

/* Acciones y Botones de la Navbar */
.gf-navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gf-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gf-theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--brand-gold);
  transform: rotate(15deg);
}

[data-theme="dark"] .gf-icon-moon { display: none; }
[data-theme="dark"] .gf-icon-sun { display: block; color: var(--brand-gold); }
[data-theme="light"] .gf-icon-sun { display: none; }
[data-theme="light"] .gf-icon-moon { display: block; color: var(--brand-gold); }

.gf-btn-icon-mobile {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gf-mobile-nav-dropdown {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  flex-direction: column;
  gap: 8px;
}

.gf-mobile-nav-dropdown.active {
  display: flex;
}

.gf-mobile-nav-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

.gf-mobile-nav-item:hover, .gf-mobile-nav-item.active {
  background: var(--bg-surface-hover);
  color: var(--brand-gold);
}

.gf-mobile-nav-highlight {
  color: var(--brand-gold);
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   4. HERO SLIDER INTERACTIVO
   -------------------------------------------------------------------------- */
.gf-hero-slider-section {
  padding: 24px 0 36px;
}

.gf-hero-slider {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gf-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.gf-slide {
  min-width: 100%;
  padding: 44px 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
}

.gf-slide-primary {
  background: radial-gradient(circle at 85% 30%, var(--brand-amber-light) 0%, transparent 60%);
}

.gf-slide-deals {
  background: radial-gradient(circle at 85% 30%, var(--brand-crimson-light) 0%, transparent 60%);
}

.gf-slide-news {
  background: radial-gradient(circle at 85% 30%, var(--brand-gold-glow) 0%, transparent 60%);
}

.gf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-amber-light);
  border: 1px solid var(--border-main);
  color: var(--brand-gold);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  width: fit-content;
}

.gf-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 6px var(--brand-gold);
}

.gf-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 760px;
}

.gf-hero-title-highlight {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gf-hero-title-deals {
  color: var(--brand-crimson);
}

.gf-hero-title-news {
  color: var(--brand-gold);
}

.gf-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 26px;
}

/* Buscador Hero */
.gf-hero-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin-bottom: 20px;
}

.gf-hero-search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.gf-hero-search-icon {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--brand-gold);
}

.gf-hero-search-input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 50px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.gf-hero-search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-gold-glow);
}

.gf-btn-hero-submit {
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-amber));
  color: var(--brand-amber-ink);
  border: none;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.gf-btn-hero-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--brand-gold-glow);
}

/* Chips de Búsqueda Hero */
.gf-hero-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.gf-chips-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.gf-chip {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.gf-chip:hover {
  border-color: var(--border-focus);
  color: var(--brand-gold);
  transform: translateY(-1px);
}

/* Métricas Hero */
.gf-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  max-width: 680px;
}

.gf-stat-pill {
  display: flex;
  flex-direction: column;
}

.gf-stat-val {
  font-weight: 800;
  font-size: 1.25rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.gf-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gf-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

/* Botones y CTA Groups */
.gf-hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.gf-btn-hero-primary {
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  background: var(--brand-gold);
  color: var(--brand-amber-ink);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.gf-btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--brand-gold-glow);
}

.gf-btn-deals {
  background: var(--brand-crimson);
  color: #ffffff;
}

.gf-btn-hero-secondary {
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.gf-btn-hero-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* Controles de Diapositiva */
.gf-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}

.gf-slider-prev { left: 16px; }
.gf-slider-next { right: 16px; }

.gf-slider-btn:hover {
  background: var(--brand-gold);
  color: var(--brand-amber-ink);
  border-color: var(--brand-gold);
}

.gf-slider-dots {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.gf-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-main);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gf-dot.active {
  width: 28px;
  background: var(--brand-gold);
}

/* --------------------------------------------------------------------------
   5. BENTO GRID DE CATEGORÍAS
   -------------------------------------------------------------------------- */
.gf-bento-section {
  padding: 10px 0 40px;
}

.gf-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.gf-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gf-section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.gf-section-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-gold);
}

.gf-section-link:hover {
  text-decoration: underline;
}

.gf-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.gf-bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.gf-bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.gf-bento-boardgames {
  grid-column: span 7;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.94)), url('/static/img/cat_juegos_de_mesa.webp') center/cover no-repeat;
}
[data-theme="light"] .gf-bento-boardgames {
  background: linear-gradient(135deg, rgba(252, 251, 249, 0.90), rgba(248, 245, 238, 0.95)), url('/static/img/cat_juegos_de_mesa.webp') center/cover no-repeat;
}

.gf-bento-tcg {
  grid-column: span 5;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.94)), url('/static/img/cat_tcg.webp') center/cover no-repeat;
}
[data-theme="light"] .gf-bento-tcg {
  background: linear-gradient(135deg, rgba(252, 251, 249, 0.90), rgba(248, 245, 238, 0.95)), url('/static/img/cat_tcg.webp') center/cover no-repeat;
}

.gf-bento-accessories {
  grid-column: span 4;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.94)), url('/static/img/cat_accesorios.webp') center/cover no-repeat;
}
[data-theme="light"] .gf-bento-accessories {
  background: linear-gradient(135deg, rgba(252, 251, 249, 0.90), rgba(248, 245, 238, 0.95)), url('/static/img/cat_accesorios.webp') center/cover no-repeat;
}

.gf-bento-rpg {
  grid-column: span 4;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.94)), url('/static/img/cat_juegos_de_rol.webp') center/cover no-repeat;
}
[data-theme="light"] .gf-bento-rpg {
  background: linear-gradient(135deg, rgba(252, 251, 249, 0.90), rgba(248, 245, 238, 0.95)), url('/static/img/cat_juegos_de_rol.webp') center/cover no-repeat;
}

.gf-bento-wargames {
  grid-column: span 4;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.94)), url('/static/img/cat_wargames.webp') center/cover no-repeat;
}
[data-theme="light"] .gf-bento-wargames {
  background: linear-gradient(135deg, rgba(252, 251, 249, 0.90), rgba(248, 245, 238, 0.95)), url('/static/img/cat_wargames.webp') center/cover no-repeat;
}

.gf-bento-deals-spot {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  background: linear-gradient(90deg, var(--brand-crimson-light), var(--bg-surface));
  border-color: rgba(230, 57, 70, 0.25);
}

.gf-bento-bg-icon {
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 5rem;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.gf-bento-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-gold);
  margin-bottom: 8px;
  display: block;
}

.gf-tag-hot {
  color: var(--brand-crimson);
}

.gf-bento-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.gf-bento-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 480px;
}

.gf-bento-subcats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gf-subcat-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.gf-bento-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-gold);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   6. CARRUSEL HORIZONTAL DE PRODUCTOS (SLIDERS)
   -------------------------------------------------------------------------- */
.gf-product-slider-section {
  padding: 20px 0 40px;
}

.gf-slider-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gf-slider-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gf-slider-icon {
  font-size: 1.5rem;
}

.gf-slider-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gf-slider-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.gf-slider-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gf-slider-view-all {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-gold);
  white-space: nowrap;
}

.gf-slider-nav-arrows {
  display: flex;
  gap: 8px;
}

.gf-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gf-arrow-btn:hover {
  background: var(--brand-gold);
  color: var(--brand-amber-ink);
  border-color: var(--brand-gold);
}

.gf-product-slider-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 16px;
  scrollbar-width: none;
}

.gf-product-slider-track::-webkit-scrollbar {
  display: none;
}

.gf-slider-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* --------------------------------------------------------------------------
   7. TARJETA DE PRODUCTO UNIVERSAL
   -------------------------------------------------------------------------- */
.gf-product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-card);
  height: 100%;
}

.gf-product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.gf-card-inner-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Contenedor de Imagen Inteligente */
.gf-card-media-wrapper {
  position: relative;
  background: var(--bg-thumb);
  padding: 16px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gf-card-image-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gf-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.gf-product-card:hover .gf-card-img {
  transform: scale(1.04);
}

.gf-card-no-img {
  font-size: 3.5rem;
  opacity: 0.3;
}

/* Badges Superiores e Inferiores */
.gf-card-badges-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.gf-badge-stores {
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-main);
  color: var(--brand-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gf-badge-discount {
  background: var(--brand-crimson);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.gf-card-badges-bottom {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
}

.gf-stock-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gf-stock-in {
  background: var(--stock-in-bg);
  color: var(--stock-in-text);
  border: 1px solid var(--stock-in-border);
}

.gf-stock-out {
  background: var(--stock-out-bg);
  color: var(--stock-out-text);
  border: 1px solid var(--stock-out-border);
}

.gf-dot-stock {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Cuerpo de la Tarjeta */
.gf-card-body {
  padding: 16px 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gf-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-meta-cat {
  color: var(--brand-gold);
}

.gf-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.gf-card-price-block {
  margin-top: auto;
}

.gf-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  display: block;
}

.gf-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.gf-price-current {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-gold);
}

.gf-price-strikethrough {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.gf-cheapest-store {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 4px;
}

/* Footer de la Tarjeta */
.gf-card-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border-subtle);
}

.gf-btn-compare {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.gf-btn-arrow {
  transition: transform var(--transition-fast);
}

.gf-product-card:hover .gf-btn-compare {
  color: var(--brand-gold);
}

.gf-product-card:hover .gf-btn-arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   8. CATÁLOGO GENERAL & PANEL DE FILTROS (SIDEBAR + DRAWER MÓVIL)
   -------------------------------------------------------------------------- */
.gf-catalog-container {
  padding: 24px 20px 60px;
}

.gf-catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.gf-section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: 6px;
}

.gf-catalog-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gf-highlight-term {
  color: var(--brand-gold);
}

.gf-catalog-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.gf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.gf-bc-sep {
  color: var(--text-dim);
}

.gf-bc-current {
  color: var(--text-primary);
  font-weight: 600;
}

.gf-catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gf-btn-mobile-filter {
  display: none;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.gf-active-filters-count {
  color: var(--brand-gold);
}

.gf-select-toolbar {
  height: 42px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Chips de Filtros Activos */
.gf-active-chips-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gf-chips-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.gf-chips-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gf-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-amber-light);
  border: 1px solid var(--border-main);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.gf-chip-remove {
  color: var(--text-muted);
  font-size: 0.85em;
}

.gf-clear-all-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-crimson);
  margin-left: 8px;
}

/* Layout de 2 Columnas */
.gf-catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: flex-start;
}

/* Sidebar / Drawer de Filtros */
.gf-filter-drawer {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.gf-drawer-mobile-header {
  display: none;
}

.gf-filter-group {
  margin-bottom: 20px;
}

.gf-filter-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.gf-form-control {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.gf-form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-gold-glow);
}

.gf-input-clearable {
  position: relative;
}

.gf-btn-clear-input {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Switch Toggle */
.gf-switch-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.gf-switch-input {
  display: none;
}

.gf-switch-slider {
  width: 44px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--border-main);
  position: relative;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.gf-switch-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform var(--transition-fast);
}

.gf-switch-input:checked + .gf-switch-slider {
  background: var(--stock-in-text);
}

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

.gf-switch-text {
  display: flex;
  flex-direction: column;
}

.gf-switch-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Inputs de Precio */
.gf-price-inputs-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gf-price-sep {
  color: var(--text-muted);
}

.gf-price-input {
  font-family: var(--font-mono);
}

/* Acciones del Drawer */
.gf-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.gf-btn-apply-filters {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-gold);
  color: var(--brand-amber-ink);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gf-btn-apply-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--brand-gold-glow);
}

.gf-btn-reset-filters {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Grilla de Productos Principal */
.gf-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Paginación */
.gf-pagination-nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.gf-pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.gf-page-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.gf-page-btn:hover:not(.gf-page-disabled) {
  border-color: var(--border-focus);
  color: var(--brand-gold);
}

.gf-page-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gf-page-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Estado Vacío */
.gf-catalog-empty {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 60px 20px;
  text-align: center;
}

.gf-empty-illustration {
  font-size: 4rem;
  margin-bottom: 16px;
}

.gf-empty-heading {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.gf-empty-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 24px;
}

/* --------------------------------------------------------------------------
   9. COMMAND PALETTE / LIVE SEARCH MODAL
   -------------------------------------------------------------------------- */
.gf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.gf-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.gf-command-palette {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  transform: translateY(-20px);
  transition: transform var(--transition-normal);
}

.gf-modal-overlay.active .gf-command-palette {
  transform: translateY(0);
}

.gf-palette-input-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 14px;
}

.gf-palette-icon {
  color: var(--brand-gold);
  display: flex;
}

.gf-palette-input {
  flex: 1;
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--text-primary);
  outline: none;
}

.gf-palette-close-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.gf-kbd-esc {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.gf-palette-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 16px;
}

.gf-palette-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 10px;
}

.gf-palette-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.gf-tag-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gf-tag-btn:hover {
  border-color: var(--border-focus);
  color: var(--brand-gold);
  background: var(--brand-amber-light);
}

.gf-palette-tip {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.gf-palette-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gf-palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.gf-palette-item:hover, .gf-palette-item.is-selected {
  background: var(--bg-surface-elevated);
}

.gf-palette-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gf-palette-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-thumb);
  object-fit: contain;
  padding: 4px;
}

.gf-palette-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.gf-palette-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gf-palette-item-right {
  text-align: right;
}

.gf-palette-price {
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-gold);
  font-size: 1rem;
}

.gf-palette-stores {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gf-palette-empty {
  padding: 40px 20px;
  text-align: center;
}

.gf-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
}

.gf-empty-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.gf-empty-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gf-palette-footer {
  padding: 12px 20px;
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gf-palette-shortcuts {
  display: flex;
  gap: 12px;
}

.gf-palette-shortcuts kbd {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.gf-palette-catalog-link {
  font-weight: 700;
  color: var(--brand-gold);
}

/* --------------------------------------------------------------------------
   10. FICHA DE PRODUCTO (PDP DASHBOARD)
   -------------------------------------------------------------------------- */
.gf-pdp-container {
  padding: 24px 20px 60px;
}

.gf-pdp-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: flex-start;
}

.gf-pdp-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gf-pdp-media-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.gf-pdp-image-box {
  background: var(--bg-thumb);
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.gf-pdp-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.gf-pdp-img:hover {
  transform: scale(1.03);
}

.gf-pdp-no-img {
  font-size: 5rem;
  opacity: 0.3;
}

/* Termómetro de Precio */
.gf-pdp-thermometer-card, .gf-pdp-specs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.gf-card-header-sm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.gf-card-title-sm {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gf-verdict-badge {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gf-verdict-best {
  background: var(--stock-in-bg);
  border: 1px solid var(--stock-in-border);
  color: var(--stock-in-text);
}

.gf-verdict-good {
  background: var(--brand-amber-light);
  border: 1px solid var(--border-main);
  color: var(--brand-gold);
}

.gf-verdict-normal {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.gf-verdict-badge span {
  font-weight: 800;
  font-size: 0.95rem;
}

.gf-verdict-badge small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gf-thermometer-scale {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gf-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.gf-scale-min {
  color: var(--stock-in-text);
}

.gf-scale-bar-track {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-canvas);
  overflow: hidden;
}

.gf-scale-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--stock-in-text), var(--brand-gold), var(--brand-crimson));
}

.gf-scale-hist-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Ficha Técnica */
.gf-specs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gf-spec-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

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

.gf-spec-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* Columna Derecha PDP */
.gf-pdp-main-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gf-pdp-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.gf-pdp-badges-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.gf-tag-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.gf-tag-cat {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.gf-tag-sub {
  background: var(--bg-canvas);
  color: var(--text-muted);
}

.gf-tag-id {
  background: var(--brand-amber-light);
  border: 1px solid var(--border-main);
  color: var(--brand-gold);
  font-family: var(--font-mono);
}

.gf-tag-stock-in {
  background: var(--stock-in-bg);
  color: var(--stock-in-text);
  border: 1px solid var(--stock-in-border);
}

.gf-tag-stock-out {
  background: var(--stock-out-bg);
  color: var(--stock-out-text);
}

.gf-pdp-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 22px;
}

/* Banner de Mejor Opción */
.gf-pdp-best-banner {
  background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.gf-best-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-gold);
  display: block;
  margin-bottom: 4px;
}

.gf-best-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.gf-best-price-val {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-gold);
}

.gf-best-saving {
  background: var(--stock-in-bg);
  color: var(--stock-in-text);
  border: 1px solid var(--stock-in-border);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.gf-best-store-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.gf-btn-best-cta {
  height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-amber));
  color: var(--brand-amber-ink);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.gf-btn-best-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--brand-gold-glow);
}

/* Tabla Comparativa Multi-Tienda */
.gf-pdp-offers-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.gf-offers-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 14px;
  flex-wrap: wrap;
}

.gf-offers-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.gf-offers-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gf-offers-verified-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--stock-in-text);
}

.gf-offers-table-wrapper {
  overflow-x: auto;
}

.gf-offers-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.gf-offers-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-main);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.gf-offers-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.gf-offer-cheapest {
  background: var(--brand-amber-light);
}

.gf-store-name-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gf-store-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.gf-store-best-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-gold);
}

.gf-stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.gf-chip-in {
  background: var(--stock-in-bg);
  color: var(--stock-in-text);
}

.gf-chip-out {
  background: var(--stock-out-bg);
  color: var(--stock-out-text);
}

.gf-region-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.gf-td-price {
  font-family: var(--font-mono);
}

.gf-price-cell-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-gold);
  display: block;
}

.gf-price-diff {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gf-btn-go-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.gf-btn-go-store:hover {
  background: var(--brand-gold);
  color: var(--brand-amber-ink);
  border-color: var(--brand-gold);
}

.gf-btn-lead {
  background: var(--brand-gold);
  color: var(--brand-amber-ink);
  border-color: var(--brand-gold);
}

.gf-offers-footer {
  margin-top: 16px;
  padding-top: 12px;
}

.gf-offers-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
}

/* --------------------------------------------------------------------------
   11. PIE DE PÁGINA (FOOTER)
   -------------------------------------------------------------------------- */
.gf-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.gf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.gf-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.gf-footer-tld {
  color: var(--brand-gold);
}

.gf-footer-mission {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 18px;
}

.gf-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--stock-in-text);
  background: var(--stock-in-bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.gf-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.gf-footer-heading {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.gf-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gf-footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.gf-footer-links a:hover {
  color: var(--brand-gold);
}

.gf-footer-highlight-link {
  color: var(--brand-gold) !important;
  font-weight: 700;
}

.gf-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.gf-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gf-footer-badges {
  display: flex;
  gap: 12px;
}

.gf-badge-region, .gf-badge-guild {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE MEDIA QUERIES (MOBILE-FIRST POLISH)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .gf-bento-boardgames { grid-column: span 12; }
  .gf-bento-tcg { grid-column: span 12; }
  .gf-bento-accessories, .gf-bento-rpg, .gf-bento-wargames { grid-column: span 4; }
  .gf-catalog-layout { grid-template-columns: 1fr; }
  .gf-layout-sidebar { display: none; }
  .gf-btn-mobile-filter { display: inline-flex; }
  .gf-pdp-grid { grid-template-columns: 1fr; }
  .gf-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .gf-nav-menu, .gf-search-trigger { display: none; }
  .gf-btn-icon-mobile { display: flex; }
  .gf-hero-title { font-size: 2rem; }
  .gf-slide { padding: 32px 20px 30px; }
  .gf-hero-search-form { flex-direction: column; width: 100%; }
  .gf-btn-hero-submit { width: 100%; justify-content: center; }
  .gf-hero-stats { flex-wrap: wrap; gap: 12px; }
  .gf-stat-divider { display: none; }
  
  .gf-bento-accessories, .gf-bento-rpg, .gf-bento-wargames { grid-column: span 12; }
  .gf-bento-deals-spot { flex-direction: column; align-items: flex-start; }

  /* Drawer de Filtros Móvil (Bottom Sheet) */
  .gf-layout-sidebar { display: block; }
  .gf-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 86vw);
    height: 100vh;
    z-index: 999;
    background: var(--bg-surface);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 20px 16px 40px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    border-radius: 0;
  }

  .gf-filter-drawer.mobile-open {
    transform: translateX(0);
  }

  .gf-drawer-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-main);
  }

  .gf-drawer-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .gf-drawer-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-gold);
  }

  .gf-drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
  }

  /* Grilla Móvil de 2 Columnas */
  .gf-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gf-card-body { padding: 10px; }
  .gf-card-title { font-size: 0.88rem; min-height: 2.5em; }
  .gf-price-current { font-size: 1.1rem; }
  .gf-card-footer { padding: 8px 10px; }

  .gf-pdp-best-banner { flex-direction: column; align-items: flex-start; }
  .gf-btn-best-cta { width: 100%; justify-content: center; }

  .gf-footer-grid { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   13. PÁGINAS ESTÁTICAS, EDITORIAL (/novedades), POSTULACIÓN (/unete) Y LEGAL
   -------------------------------------------------------------------------- */
.gf-news-container, .landing-hero, .form-container, .legal-container {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.gf-filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.gf-filter-chip:hover, .gf-filter-chip.active {
  background: var(--brand-amber-light);
  border-color: var(--border-focus);
  color: var(--brand-gold);
}

.gf-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gf-news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.gf-news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.gf-news-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-thumb);
  overflow: hidden;
}

.gf-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gf-news-card:hover .gf-news-thumb {
  transform: scale(1.05);
}

.gf-news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  color: var(--brand-gold);
  border: 1px solid var(--border-main);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.gf-news-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gf-news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.gf-news-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.gf-news-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.gf-news-read-more {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-gold);
}

/* Landing Únete / Suma tu Tienda */
.landing-hero {
  text-align: center;
  padding: 40px 20px 20px;
}

.hero-badge {
  display: inline-block;
  background: var(--brand-amber-light);
  border: 1px solid var(--border-main);
  color: var(--brand-gold);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.prop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.prop-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.prop-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.prop-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-container, .legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-gold-glow);
}

.btn-submit-landing {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-amber));
  color: var(--brand-amber-ink);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-submit-landing:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--brand-gold-glow);
}

.alert-success-box {
  background: var(--stock-in-bg);
  border: 1px solid var(--stock-in-border);
  color: var(--stock-in-text);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  margin-bottom: 24px;
}

/* Páginas Legales */
.legal-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 28px 0 10px;
  color: var(--brand-gold);
}

.legal-body p, .legal-body li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
