/**
 * Chrome GeoComplexity — Labs Complexity Studio
 * Hero premium, prueba técnica, glass panels, locale dropdown
 */

/* —— Hero premium —— */
.lab-hero-geo {
  position: relative;
  overflow: hidden;
  padding-bottom: 1rem;
}

.lab-hero-glow {
  pointer-events: none;
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 45% at 30% 20%, hsl(var(--primary) / 0.14), transparent 65%),
    radial-gradient(ellipse 40% 35% at 85% 10%, hsl(var(--primary) / 0.08), transparent 60%);
  z-index: 0;
}

.lab-hero-geo .hero-grid,
.lab-hero-geo .lab-mega-stats {
  position: relative;
  z-index: 1;
}

.lab-hero-geo h1 {
  font-size: clamp(2.1rem, 5.5vw, 3rem);
  line-height: 1.08;
}

.lab-mega-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.lab-mega-stat {
  padding: 1.35rem 1.25rem 1.4rem;
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.lab-mega-stat:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 16px 48px hsl(var(--primary) / 0.12);
}

.lab-mega-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand-blue);
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.lab-mega-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
}

.lab-mega-stat p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

/* Glass panel con grid interior (paridad marketing-glass-panel) */
.panel-glass-enhanced {
  border-color: hsl(var(--primary) / 0.22);
  background:
    linear-gradient(160deg, hsl(var(--primary) / 0.06) 0%, transparent 42%),
    hsl(var(--card) / 0.72);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px hsl(var(--border) / 0.35),
    0 8px 40px hsl(var(--primary) / 0.08);
}

.panel-glass-enhanced::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(hsl(var(--border)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border)) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black, transparent);
}

html.light .panel-glass-enhanced::after {
  opacity: 0.05;
}

.hero-card.panel-glass-enhanced .preview-chart {
  border-color: hsl(var(--primary) / 0.25);
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.08);
}

/* —— Series Lab · Hero Engine (puerta de entrada) —— */
.sl-hero-engine {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.15rem 1rem;
  border-color: hsl(var(--primary) / 0.35) !important;
  box-shadow:
    0 0 0 1px hsl(var(--primary) / 0.12),
    0 24px 64px -16px hsl(var(--primary) / 0.35),
    inset 0 1px 0 hsl(var(--primary) / 0.15);
}

.sl-hero-engine-fx {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.sl-hero-engine-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, hsl(var(--primary) / 0.14) 90deg, transparent 180deg, hsl(var(--primary) / 0.08) 270deg, transparent 360deg);
  animation: slHeroGlowSpin 14s linear infinite;
}

.sl-hero-engine-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(hsl(var(--primary) / 0.5) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary) / 0.5) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, black, transparent);
}

.sl-hero-engine-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 28%;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.7), transparent);
  box-shadow: 0 0 18px hsl(var(--primary) / 0.5);
  animation: slHeroScan 4.5s ease-in-out infinite;
}

@keyframes slHeroGlowSpin {
  to { transform: rotate(360deg); }
}

@keyframes slHeroScan {
  0%, 100% { top: 22%; opacity: 0.35; }
  50% { top: 72%; opacity: 0.85; }
}

.sl-hero-engine-head {
  margin-bottom: 0.65rem;
  z-index: 2;
}

.sl-hero-engine-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sl-hero-engine-title strong {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.sl-hero-engine-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: slHeroLivePulse 1.8s ease-in-out infinite;
}

@keyframes slHeroLivePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.sl-hero-engine-badge {
  font-size: 9px !important;
  letter-spacing: 0.08em;
  transition: opacity 0.3s ease;
}

.sl-hero-hud {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.sl-hero-hud-metric {
  padding: 0.35rem 0.4rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border) / 0.45);
  background: hsl(var(--card) / 0.55);
  backdrop-filter: blur(8px);
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sl-hero-hud-metric--accent {
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 0 16px -4px hsl(var(--primary) / 0.35);
}

.sl-hero-hud-label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2px;
}

.sl-hero-hud-val {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-blue);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sl-hero-hud-val.is-updating {
  transform: translateY(-2px);
  opacity: 0.5;
}

.sl-hero-chart-wrap {
  height: 300px !important;
  min-height: 300px;
  z-index: 1;
  border-color: hsl(var(--primary) / 0.28) !important;
  background: hsl(var(--background) / 0.35) !important;
  box-shadow: inset 0 0 48px hsl(var(--primary) / 0.06);
}

.sl-hero-engine-progress {
  position: relative;
  z-index: 2;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: hsl(var(--border) / 0.35);
  overflow: hidden;
}

.sl-hero-engine-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-blue), hsl(var(--primary) / 0.6));
  border-radius: inherit;
  box-shadow: 0 0 10px hsl(var(--primary) / 0.5);
}

.sl-hero-engine-progress-fill.is-running {
  animation: labShowcaseProgress 6s linear forwards;
}

.sl-hero-pills {
  margin-top: 0.65rem !important;
  gap: 6px !important;
}

.sl-hero-pills .preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  font-size: 9px;
}

.sl-hero-pills .preview-pill.active {
  box-shadow: 0 0 20px -4px hsl(var(--primary) / 0.55);
}

.sl-hero-pill-icon {
  font-size: 11px;
  line-height: 1;
}

@media (max-width: 720px) {
  .sl-hero-hud {
    grid-template-columns: repeat(2, 1fr);
  }

  .sl-hero-chart-wrap {
    height: 240px !important;
    min-height: 240px;
  }
}

/* —— Prueba técnica (superioridad del producto) —— */
.lab-proof-section {
  position: relative;
  overflow: hidden;
}

.lab-proof-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, hsl(var(--primary) / 0.06), transparent 70%);
  pointer-events: none;
}

.lab-proof-section > .container {
  position: relative;
  z-index: 1;
}

.lab-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lab-proof-card {
  padding: 1.5rem 1.35rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.lab-proof-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.4);
}

.lab-proof-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand-blue);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.lab-proof-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.lab-proof-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  position: relative;
  z-index: 1;
}

.lab-proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.lab-proof-tags span {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border) / 0.45);
  background: hsl(var(--surface) / 0.4);
  color: hsl(var(--muted-foreground));
}

/* —— Header refinado (paridad geoportal) —— */
.header-float-wrap {
  padding-left: clamp(0.5rem, 2vw, 1rem);
  padding-right: clamp(0.5rem, 2vw, 1rem);
}

.header-pill {
  border-radius: 1.25rem;
  max-width: 68rem;
  min-width: 0;
  flex-wrap: nowrap;
  gap: clamp(4px, 0.8vw, 10px);
}

.header-brand {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(38vw, 15rem);
}

.header-product-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  flex: 0 0 auto;
  margin-inline: auto;
  padding-inline: 0.15rem;
}

@media (min-width: 768px) {
  .demo-body .header-nav,
  .demo-page .header-nav {
    display: flex;
  }
}

.header-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: 0;
  gap: clamp(3px, 0.55vw, 8px);
}

.header-actions .btn-sm {
  padding-inline: clamp(7px, 1vw, 12px);
  font-size: clamp(11px, 1.15vw, 13px);
}

.header-actions .header-demo-btn,
.header-actions .btn-gold,
.header-actions .complexity-nav-panel,
.header-actions .locale-switcher {
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .header-actions #btn-guided-tour {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-actions .complexity-nav-panel {
    display: none !important;
  }
}

/* —— Locale dropdown (paridad LanguageSelector) —— */
.locale-switcher {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.locale-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid hsl(var(--border) / 0.4);
  border-radius: 8px;
  background: transparent;
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.locale-trigger:hover {
  color: var(--brand-blue);
  border-color: hsl(var(--primary) / 0.45);
  background: hsl(var(--surface) / 0.5);
}

.locale-globe {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}

.locale-trigger-code {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.locale-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 10.5rem;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border) / 0.55);
  background: hsl(var(--card) / 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px hsl(0 0% 0% / 0.18);
  z-index: 10300;
}

.locale-menu[hidden] {
  display: none;
}

.locale-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: hsl(var(--foreground));
  font-size: 13px;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.locale-menu-item:hover,
.locale-menu-item.is-active {
  background: hsl(var(--primary) / 0.12);
  color: var(--brand-blue);
}

/* —— Casos de uso · MarketingLiveShowcase —— */
.lab-live-showcase {
  padding: 5rem 0;
}

.lab-live-showcase-head {
  text-align: center;
  margin-bottom: 3rem;
}

.lab-live-showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: hsl(var(--foreground));
}

.lab-live-showcase-subtitle {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

.lab-live-showcase-grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .lab-live-showcase-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2.5rem;
  }

  .lab-live-showcase-panel {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

.lab-live-showcase-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lab-showcase-card {
  width: 100%;
  padding: 1rem 1.15rem 0.85rem;
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 1rem;
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(6px);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease, transform 0.22s ease;
}

.lab-showcase-card:hover:not(.is-active) {
  border-color: hsl(var(--primary) / 0.3);
  background: hsl(var(--primary) / 0.04);
}

.lab-showcase-card.is-active {
  border-color: hsl(var(--primary) / 0.5);
  background: hsl(var(--primary) / 0.1);
  box-shadow: 0 0 24px -8px hsl(var(--primary) / 0.45);
}

.lab-showcase-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.lab-showcase-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  background: hsl(var(--primary) / 0.1);
  transition: background 0.28s ease, color 0.28s ease;
}

.lab-showcase-card.is-active .lab-showcase-icon {
  background: var(--brand-blue);
  box-shadow: 0 4px 14px hsl(var(--primary) / 0.35);
}

.lab-showcase-card-copy {
  min-width: 0;
  flex: 1;
}

.lab-showcase-card-copy h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: hsl(var(--foreground));
}

.lab-showcase-card-copy p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.lab-showcase-active-dot {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  flex-shrink: 0;
}

.lab-showcase-card.is-active .lab-showcase-active-dot {
  display: inline-block;
}

.lab-showcase-progress {
  margin-top: 0.75rem;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(var(--border) / 0.4);
}

.lab-showcase-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--brand-blue);
  border-radius: inherit;
}

.lab-showcase-card.is-active .lab-showcase-progress-fill {
  animation: labShowcaseProgress 5.5s linear forwards;
}

@keyframes labShowcaseProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.lab-showcase-panel-shell {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  border-color: hsl(var(--primary) / 0.25);
  background:
    linear-gradient(145deg, hsl(var(--card) / 0.92) 0%, hsl(var(--background) / 0.82) 55%, hsl(var(--primary) / 0.05) 100%);
  box-shadow: 0 0 40px -12px hsl(var(--primary) / 0.35);
}

.lab-showcase-demo {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 380px;
  position: relative;
  z-index: 1;
  animation: labShowcaseFadeIn 0.35s ease;
}

.lab-showcase-demo.is-active {
  display: flex;
}

@keyframes labShowcaseFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lab-showcase-demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.lab-showcase-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #10b981;
}

.lab-showcase-demo-tag {
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.lab-showcase-demo-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.lab-showcase-demo-metrics > div {
  padding: 0.55rem 0.5rem;
  border-radius: 0.6rem;
  border: 1px solid hsl(var(--border) / 0.45);
  background: hsl(var(--surface) / 0.35);
  text-align: center;
}

.lab-showcase-demo-metrics strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2px;
}

.lab-showcase-demo-metrics span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.lab-showcase-demo-visual {
  flex: 1;
  min-height: 200px;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.2);
  background:
    linear-gradient(hsl(var(--border) / 0.35) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.35) 1px, transparent 1px),
    hsl(var(--background) / 0.5);
  background-size: 24px 24px, 24px 24px, auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lab-showcase-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  max-width: 280px;
  height: 120px;
}

.lab-showcase-chart-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand-blue), hsl(var(--primary) / 0.35));
  opacity: 0.85;
}

.lab-showcase-chart-line {
  width: 100%;
  max-width: 320px;
  height: 100px;
}

.lab-showcase-demo-insight {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  border-top: 1px solid hsl(var(--border) / 0.35);
  padding-top: 0.75rem;
}

.lab-showcase-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.lab-showcase-words span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-blue);
}

.lab-showcase-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 200px;
}

.lab-showcase-matrix span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: hsl(var(--primary) / 0.15);
  border: 1px solid hsl(var(--primary) / 0.25);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.lab-showcase-matrix span.is-high {
  background: hsl(var(--primary) / 0.45);
  color: #fff;
}

/* —— Series Lab · demos en showcase —— */
.sl-showcase-visual {
  position: relative;
  min-height: 260px;
  padding: 0.65rem;
  align-items: stretch;
  justify-content: stretch;
}

.sl-showcase-visual svg {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
}

.sl-mc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  justify-content: center;
}

.sl-mc-legend span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border) / 0.4);
}

.sl-mc-legend span:nth-child(1) { background: hsl(var(--primary) / 0.08); color: var(--brand-blue); }
.sl-mc-legend span:nth-child(2) { background: hsl(var(--primary) / 0.18); color: var(--brand-blue); }
.sl-mc-legend span:nth-child(3) { background: hsl(var(--primary) / 0.28); color: #fff; }

.sl-mc-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: slMcDrift 5s ease-in-out infinite;
}

.sl-mc-path--sim { stroke: hsl(var(--primary) / 0.22); stroke-width: 1; }
.sl-mc-path--sim:nth-child(2) { animation-delay: 0.4s; }
.sl-mc-path--sim:nth-child(3) { animation-delay: 0.8s; }
.sl-mc-path--sim:nth-child(4) { animation-delay: 1.2s; }
.sl-mc-path--p50 { stroke: var(--brand-blue); stroke-width: 2.5; animation: none; }

@keyframes slMcDrift {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}

.sl-arima-band {
  animation: slBandPulse 3s ease-in-out infinite;
}

@keyframes slBandPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}

.sl-pub-stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.sl-pub-bars-wrap,
.sl-pub-box-wrap {
  border-radius: 0.55rem;
  border: 1px solid hsl(var(--border) / 0.35);
  background: hsl(var(--background) / 0.45);
  padding: 0.45rem 0.4rem 0.35rem;
  display: flex;
  flex-direction: column;
}

.sl-pub-bars-wrap strong,
.sl-pub-box-wrap strong {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.35rem;
  text-align: center;
}

.sl-pub-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  min-height: 100px;
}

.sl-pub-bars span {
  flex: 1;
  max-width: 22px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--brand-blue), hsl(var(--primary) / 0.35));
}

.sl-pub-box-svg {
  flex: 1;
  width: 100%;
}

.sl-anomaly-stage {
  width: 100%;
  height: 100%;
  min-height: 220px;
  position: relative;
}

.sl-anomaly-marker {
  animation: slAnomalyPing 2s ease-in-out infinite;
}

.sl-anomaly-marker:nth-child(2) { animation-delay: 0.5s; }
.sl-anomaly-marker:nth-child(3) { animation-delay: 1s; }

@keyframes slAnomalyPing {
  0%, 100% { r: 5; opacity: 0.85; }
  50% { r: 7; opacity: 1; }
}

@media (max-width: 720px) {
  .sl-pub-stage {
    grid-template-columns: 1fr;
  }
}

/* —— TextLab · demos PLN en showcase —— */
.tl-showcase-visual {
  position: relative;
  min-height: 260px;
  padding: 0.85rem;
  align-items: stretch;
  justify-content: stretch;
}

.tl-sentiment-stage {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.85rem;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.tl-sentiment-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tl-sentiment-donut {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(
    #10b981 0% 42%,
    #64748b 42% 77%,
    #ef4444 77% 100%
  );
  position: relative;
  box-shadow: 0 0 28px hsl(160 84% 39% / 0.25);
  animation: tlDonutPulse 3s ease-in-out infinite;
}

.tl-sentiment-donut::after {
  content: "+0.19";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: hsl(var(--card) / 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #10b981;
  border: 1px solid hsl(var(--border) / 0.4);
}

.tl-sentiment-donut-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.tl-sentiment-feed {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
}

.tl-sentiment-quote {
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid hsl(var(--border) / 0.45);
  background: hsl(var(--surface) / 0.45);
  font-size: 11px;
  line-height: 1.45;
  color: hsl(var(--foreground));
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.tl-sentiment-quote em {
  font-style: normal;
  flex: 1;
}

.tl-sent-tag {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
}

.tl-sent-tag--pos { background: #10b98122; color: #10b981; border: 1px solid #10b98144; }
.tl-sent-tag--neu { background: #64748b22; color: #94a3b8; border: 1px solid #64748b44; }
.tl-sent-tag--neg { background: #ef444422; color: #ef4444; border: 1px solid #ef444444; }

.tl-sentiment-spark {
  grid-column: 1 / -1;
  height: 52px;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border) / 0.35);
  background: hsl(var(--surface) / 0.3);
  padding: 0.35rem 0.5rem 0.2rem;
}

.tl-sentiment-spark svg {
  width: 100%;
  height: 100%;
}

.tl-wc-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
}

.tl-wc-stage::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, hsl(var(--primary) / 0.08), transparent 70%);
  pointer-events: none;
}

.tl-wc-w {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.92;
  animation: tlWcFloat 4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.tl-wc-w.w-xl { font-size: clamp(1.4rem, 3vw, 1.85rem); color: #6CAED1; }
.tl-wc-w.w-lg { font-size: clamp(1rem, 2.2vw, 1.25rem); color: #5B9FC3; }
.tl-wc-w.w-md { font-size: clamp(0.75rem, 1.6vw, 0.95rem); color: #8ecae6; }
.tl-wc-w.w-sm { font-size: clamp(0.6rem, 1.2vw, 0.72rem); color: #94A3B8; font-weight: 700; }
.tl-wc-w.w-xs { font-size: 0.58rem; color: #64748B; font-weight: 600; opacity: 0.75; }

@keyframes tlWcFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); }
  50% { transform: translate(-50%, calc(-50% - 3px)) rotate(var(--r, 0deg)) scale(1.03); }
}

@keyframes tlDonutPulse {
  0%, 100% { box-shadow: 0 0 28px hsl(160 84% 39% / 0.2); }
  50% { box-shadow: 0 0 36px hsl(160 84% 39% / 0.38); }
}

.tl-cluster-stage {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.tl-cluster-plot {
  position: relative;
  border-radius: 0.6rem;
  border: 1px solid hsl(var(--border) / 0.35);
  background: hsl(var(--background) / 0.55);
  overflow: hidden;
}

.tl-cluster-plot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsl(var(--border) / 0.25) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.25) 1px, transparent 1px);
  background-size: 20% 20%;
}

.tl-cluster-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px currentColor;
  animation: tlClusterPulse 2.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.tl-cluster-dot--c1 { background: #6CAED1; color: #6CAED1; }
.tl-cluster-dot--c2 { background: #a855f7; color: #a855f7; }
.tl-cluster-dot--c3 { background: #10b981; color: #10b981; }
.tl-cluster-dot--c4 { background: #f59e0b; color: #f59e0b; }

.tl-cluster-legend {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
}

.tl-cluster-leg-item {
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border) / 0.4);
  background: hsl(var(--surface) / 0.35);
  font-size: 10px;
}

.tl-cluster-leg-item strong {
  display: block;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tl-cluster-leg-item span {
  color: hsl(var(--muted-foreground));
  line-height: 1.35;
}

.tl-cluster-leg-item--c1 strong { color: #6CAED1; }
.tl-cluster-leg-item--c2 strong { color: #a855f7; }
.tl-cluster-leg-item--c3 strong { color: #10b981; }
.tl-cluster-leg-item--c4 strong { color: #f59e0b; }

@keyframes tlClusterPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

.tl-sim-stage {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  height: 100%;
}

.tl-sim-labels {
  display: grid;
  grid-template-columns: 52px repeat(6, 1fr);
  gap: 3px;
  font-size: 8px;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.tl-sim-labels span:first-child { visibility: hidden; }

.tl-sim-grid {
  display: grid;
  grid-template-columns: 52px repeat(6, 1fr);
  gap: 3px;
  flex: 1;
}

.tl-sim-row-label {
  font-size: 8px;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
}

.tl-sim-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  border: 1px solid hsl(var(--border) / 0.25);
  font-size: 7px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground) / 0.85);
  transition: transform 0.2s ease;
}

.tl-sim-cell:hover {
  transform: scale(1.08);
  z-index: 1;
}

.tl-sim-cell--hi { background: hsl(var(--primary) / 0.75); color: #fff; }
.tl-sim-cell--md { background: hsl(var(--primary) / 0.45); color: #fff; }
.tl-sim-cell--lo { background: hsl(var(--primary) / 0.18); }
.tl-sim-cell--diag { background: hsl(var(--surface) / 0.5); opacity: 0.35; }

.tl-sim-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tl-sim-pair {
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid hsl(var(--primary) / 0.35);
  background: hsl(var(--primary) / 0.1);
  color: var(--brand-blue);
  font-weight: 700;
}

@media (max-width: 720px) {
  .tl-sentiment-stage,
  .tl-cluster-stage {
    grid-template-columns: 1fr;
  }

  .tl-sentiment-donut-wrap {
    flex-direction: row;
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .lab-mega-stats,
  .lab-proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lab-live-showcase {
    padding: 3.5rem 0;
  }
}

@media (max-width: 720px) {
  .lab-mega-stats,
  .lab-proof-grid {
    grid-template-columns: 1fr;
  }

  .lab-mega-stat {
    text-align: left;
  }
}

/* —— Galería horizontal de producto —— */
.lab-product-gallery {
  position: relative;
  margin-top: 2.5rem;
}

.lab-product-gallery-viewport {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lab-product-gallery-viewport::before,
.lab-product-gallery-viewport::after {
  content: '';
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(24px, 6vw, 72px);
  z-index: 2;
}

.lab-product-gallery-viewport::before {
  left: 2.5rem;
  background: linear-gradient(90deg, hsl(var(--background)), transparent);
}

.lab-product-gallery-viewport::after {
  right: 2.5rem;
  background: linear-gradient(270deg, hsl(var(--background)), transparent);
}

.section-alt .lab-product-gallery-viewport::before {
  background: linear-gradient(90deg, hsl(var(--card) / 0.4), transparent);
}

.section-alt .lab-product-gallery-viewport::after {
  background: linear-gradient(270deg, hsl(var(--card) / 0.4), transparent);
}

.lab-product-gallery-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.85);
  backdrop-filter: blur(8px);
  color: hsl(var(--foreground));
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.lab-product-gallery-arrow:hover {
  border-color: hsl(var(--primary) / 0.55);
  background: hsl(var(--primary) / 0.12);
  box-shadow: 0 8px 28px hsl(var(--primary) / 0.18);
  transform: scale(1.06);
}

.lab-product-gallery-track {
  flex: 1;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1.25rem 0.5rem 1.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lab-product-gallery-track::-webkit-scrollbar {
  display: none;
}

.lab-product-gallery-card {
  flex: 0 0 min(88vw, 360px);
  scroll-snap-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.35rem 1.1rem;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.55);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.72;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.lab-product-gallery-card.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: hsl(var(--primary) / 0.5);
  box-shadow:
    0 0 0 1px hsl(var(--primary) / 0.15),
    0 20px 56px hsl(var(--primary) / 0.14);
}

.lab-product-gallery-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lab-product-gallery-step {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  font-family: var(--font-display);
}

.lab-product-gallery-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px hsl(var(--primary) / 0.25));
}

.lab-product-gallery-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lab-product-gallery-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.lab-product-gallery-visual {
  position: relative;
  min-height: 96px;
  border-radius: 12px;
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--surface) / 0.35);
  overflow: hidden;
}

.lab-product-gallery-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lab-product-gallery-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid hsl(var(--primary) / 0.3);
  background: hsl(var(--primary) / 0.08);
  color: var(--brand-blue, hsl(var(--primary)));
}

.lab-product-gallery-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: hsl(var(--border) / 0.5);
  opacity: 0;
  transition: opacity 0.25s;
}

.lab-product-gallery-card.is-active .lab-product-gallery-progress {
  opacity: 1;
}

.lab-product-gallery-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary) / 0.6));
  animation: labProductGalleryProgress var(--lab-pg-cycle, 6s) linear forwards;
}

@keyframes labProductGalleryProgress {
  from { width: 0; }
  to { width: 100%; }
}

.lab-product-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.lab-product-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: hsl(var(--border));
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.lab-product-gallery-dot.is-active {
  background: hsl(var(--primary));
  transform: scale(1.25);
}

/* Visuales mini — Series Lab */
.sl-pg-ingest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem;
  font-size: 9px;
}

.sl-pg-file {
  grid-column: 1 / -1;
  padding: 6px 8px;
  border-radius: 6px;
  background: hsl(var(--primary) / 0.12);
  border: 1px dashed hsl(var(--primary) / 0.4);
  font-weight: 700;
  color: var(--brand-blue);
}

.sl-pg-col {
  padding: 5px 6px;
  border-radius: 5px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
}

.sl-pg-col--date { border-color: hsl(142 70% 45% / 0.5); }
.sl-pg-col--val { border-color: hsl(var(--primary) / 0.5); }

.sl-pg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0.55rem;
  align-content: flex-start;
}

.sl-pg-chip {
  font-size: 8px;
  padding: 3px 6px;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.15);
  border: 1px solid hsl(var(--primary) / 0.35);
  font-weight: 700;
}

.sl-pg-spark {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 28px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.sl-pg-spark span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: hsl(var(--primary) / 0.55);
  animation: slPgSpark 2.4s ease-in-out infinite alternate;
}

.sl-pg-spark span:nth-child(2) { height: 45%; animation-delay: 0.15s; }
.sl-pg-spark span:nth-child(3) { height: 70%; animation-delay: 0.3s; }
.sl-pg-spark span:nth-child(4) { height: 55%; animation-delay: 0.45s; }
.sl-pg-spark span:nth-child(5) { height: 85%; animation-delay: 0.6s; }
.sl-pg-spark span:nth-child(6) { height: 60%; animation-delay: 0.75s; }

@keyframes slPgSpark {
  from { opacity: 0.55; transform: scaleY(0.92); }
  to { opacity: 1; transform: scaleY(1.08); }
}

.sl-pg-chart {
  padding: 0.5rem 0.65rem 0.65rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sl-pg-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
}

.sl-pg-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, hsl(var(--primary)), hsl(var(--primary) / 0.45));
  min-height: 12px;
}

.sl-pg-forecast {
  padding: 0.65rem;
  height: 100%;
  position: relative;
}

.sl-pg-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 2px;
  background: hsl(var(--foreground) / 0.35);
  border-radius: 2px;
}

.sl-pg-line--proj {
  left: 55%;
  background: repeating-linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary)) 4px, transparent 4px, transparent 8px);
  top: 38%;
}

.sl-pg-fan {
  position: absolute;
  inset: 12px 16px;
  background:
    linear-gradient(180deg, transparent 40%, hsl(var(--primary) / 0.08) 40%, hsl(var(--primary) / 0.22) 100%);
  clip-path: polygon(50% 20%, 100% 100%, 0 100%);
}

.sl-pg-export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  font-size: 10px;
  font-weight: 800;
}

.sl-pg-export span {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

/* Visuales mini — TextLab */
.tl-pg-sentiment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  padding: 0.55rem;
  align-items: center;
}

.tl-pg-donut {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(hsl(142 60% 45%) 0 42%, hsl(45 90% 50%) 42% 68%, hsl(0 70% 55%) 68% 100%);
  mask: radial-gradient(circle at center, transparent 52%, #000 53%);
}

.tl-pg-kpis {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 8px;
  font-weight: 700;
}

.tl-pg-cloud {
  position: relative;
  height: 100%;
  min-height: 88px;
}

.tl-pg-cloud b {
  position: absolute;
  font-size: 9px;
  font-weight: 800;
  color: hsl(var(--primary));
  opacity: 0.85;
}

.tl-pg-cloud b:nth-child(1) { left: 12%; top: 18%; font-size: 14px; }
.tl-pg-cloud b:nth-child(2) { left: 42%; top: 8%; font-size: 11px; }
.tl-pg-cloud b:nth-child(3) { left: 68%; top: 22%; font-size: 10px; }
.tl-pg-cloud b:nth-child(4) { left: 28%; top: 48%; font-size: 12px; }
.tl-pg-cloud b:nth-child(5) { left: 58%; top: 52%; font-size: 9px; }

.tl-pg-clusters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0.55rem;
  height: 100%;
}

.tl-pg-cluster {
  border-radius: 6px;
  border: 1px solid hsl(var(--primary) / 0.25);
  background: hsl(var(--primary) / 0.08);
  min-height: 36px;
}

.tl-pg-sankey {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0.65rem;
  gap: 0.35rem;
  height: 100%;
}

.tl-pg-sankey-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.tl-pg-sankey-col i {
  flex: 1;
  border-radius: 3px;
  background: hsl(var(--primary) / 0.35);
  min-height: 8px;
}

/* Visuales mini — GameLab */
.gl-pg-domains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 0.55rem;
}

.gl-pg-domains i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: hsl(var(--primary) / 0.2);
  border: 1px solid hsl(var(--primary) / 0.3);
}

.gl-pg-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 0.55rem;
  height: 100%;
}

.gl-pg-metric {
  border-radius: 6px;
  padding: 6px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
}

.gl-pg-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0.55rem;
  height: 100%;
}

.gl-pg-matrix i {
  border-radius: 4px;
  background: hsl(var(--primary) / 0.25);
  min-height: 28px;
  border: 1px solid hsl(var(--primary) / 0.35);
}

.gl-pg-evolution {
  position: relative;
  height: 100%;
  padding: 0.55rem;
}

.gl-pg-evolution svg {
  width: 100%;
  height: 72px;
}

.gl-pg-viz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0.55rem;
}

.gl-pg-viz-grid i {
  aspect-ratio: 1.2;
  border-radius: 5px;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--primary) / 0.35));
  border: 1px solid hsl(var(--primary) / 0.25);
}

.gl-pg-ai {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.65rem;
  font-size: 8px;
}

.gl-pg-bubble {
  padding: 6px 8px;
  border-radius: 8px 8px 8px 2px;
  background: hsl(var(--primary) / 0.12);
  border: 1px solid hsl(var(--primary) / 0.3);
  max-width: 85%;
}

.gl-pg-bubble--reply {
  align-self: flex-end;
  border-radius: 8px 8px 2px 8px;
  background: hsl(var(--card));
}

@media (max-width: 720px) {
  .lab-product-gallery-viewport::before,
  .lab-product-gallery-viewport::after {
    display: none;
  }

  .lab-product-gallery-arrow {
    display: none;
  }

  .lab-product-gallery-card {
    flex: 0 0 86vw;
  }
}
