/* ==========================================================================
   CYBERLIFE DESIGN SYSTEM & DETROIT BECOME HUMAN THEME
   Visión vs. Realidad: IA y sociedad en Detroit: Become Human
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #e6eef6;
  --bg-section-light: #d8e5f2;
  --bg-card-light: #ffffff;
  --bg-dark: #081320;
  --bg-dark-surface: #0e1e32;
  --bg-dark-card: #142842;
  
  /* Accent Colors */
  --cyber-blue: #0070f3;
  --cyber-blue-glow: #00d2ff;
  --cyber-blue-light: #e0f2fe;
  --cyber-blue-soft: #bae6fd;
  
  --cyber-amber: #f59e0b;
  --cyber-amber-glow: #fbbf24;
  --cyber-amber-light: #fef3c7;
  --cyber-amber-dark: #b45309;
  
  --cyber-red: #ef4444;
  --cyber-red-glow: #f87171;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-white: #f8fafc;
  --text-light: #cbd5e1;
  
  /* Borders & Shadows */
  --border-light: rgba(0, 112, 243, 0.18);
  --border-dark: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 30, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 30, 60, 0.1);
  --shadow-lg: 0 16px 40px rgba(0, 30, 60, 0.15);
  --shadow-glow-blue: 0 0 25px rgba(0, 112, 243, 0.4);
  --shadow-glow-amber: 0 0 25px rgba(245, 158, 11, 0.4);
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #edf5fd 0%, #d8e6f3 100%);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0f1c2d;
}
::-webkit-scrollbar-thumb {
  background: #1e3a5f;
  border-radius: 5px;
  border: 2px solid #0f1c2d;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyber-blue);
}

/* ==========================================================================
   TOP HEADER (CYBERLIFE NAV)
   ========================================================================== */

.cyber-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 30, 48, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  padding: 0.75rem 1.5rem;
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-normal);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cyber-logo-svg {
  width: 34px;
  height: 34px;
  color: var(--cyber-blue-glow);
  animation: rotateLogo 25s linear infinite;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.cyber-name {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #ffffff, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cyber-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #94a3b8;
}

/* Interactive LED Pill */
.led-status-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.led-status-pill:hover {
  background: rgba(0, 112, 243, 0.2);
  border-color: var(--cyber-blue-glow);
  transform: translateY(-1px);
}

.led-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: relative;
  transition: all var(--transition-fast);
}

.led-ring.blue {
  background: #00d2ff;
  box-shadow: 0 0 12px #00d2ff, inset 0 0 4px #ffffff;
  animation: pulseBlue 2s infinite ease-in-out;
}

.led-ring.yellow {
  background: #fbbf24;
  box-shadow: 0 0 12px #fbbf24, inset 0 0 4px #ffffff;
  animation: pulseYellow 1.5s infinite ease-in-out;
}

.led-ring.red {
  background: #ef4444;
  box-shadow: 0 0 14px #ef4444, inset 0 0 4px #ffffff;
  animation: pulseRed 0.8s infinite ease-in-out;
}

@keyframes pulseBlue {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes pulseYellow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes pulseRed {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

.led-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

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

.nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  background: var(--cyber-blue);
  color: #ffffff;
  border-color: var(--cyber-blue-glow);
}

.audio-toggle-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.audio-toggle-btn:hover {
  border-color: var(--cyber-blue-glow);
  background: rgba(0, 112, 243, 0.25);
}

/* ==========================================================================
   MAIN INFOGRAPHIC WRAPPER & SECTIONS
   ========================================================================== */

.infographic-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* ==========================================================================
   HERO SECTION (DIAGRAMA CONECTADO)
   ========================================================================== */

.hero-section {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  position: relative;
}

.hero-header-text {
  max-width: 850px;
  margin: 0 auto 3rem;
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  color: #0c233f;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.main-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Central Connected Diagram */
.central-diagram-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

/* Callout Interactive Links */
.callout-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #09274a;
  background: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 2px solid #bfdbfe;
  transition: all var(--transition-normal);
  z-index: 2;
  position: relative;
}

.callout-link:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--cyber-blue);
  box-shadow: 0 12px 30px rgba(0, 112, 243, 0.25);
  background: #f0f7ff;
}

.callout-text {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.callout-hand {
  font-size: 1.3rem;
  transition: transform var(--transition-fast);
}

.callout-link:hover .callout-hand {
  transform: translateY(-3px);
}

.connector-line {
  width: 120px;
  height: 60px;
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(0, 112, 243, 0.2));
}

/* Central Android Circle with Glowing Concentric Halos */
.android-avatar-circle {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.halo-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-outer {
  width: 240px;
  height: 240px;
  border: 6px solid #1d4ed8;
  border-right-color: transparent;
  border-bottom-color: rgba(29, 78, 216, 0.4);
  animation: spinSlow 20s linear infinite;
}

.ring-middle {
  width: 216px;
  height: 216px;
  border: 4px solid #60a5fa;
  border-left-color: transparent;
  animation: spinReverse 15s linear infinite;
}

.ring-inner {
  width: 195px;
  height: 195px;
  border: 2px dashed #93c5fd;
  animation: spinSlow 30s linear infinite;
}

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

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

.avatar-inner-card {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 35, 75, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.avatar-illustration-wrapper {
  width: 100%;
  height: 100%;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--transition-slow);
}

.android-avatar-circle:hover .avatar-img {
  transform: scale(1.08);
}

.avatar-fallback-svg {
  width: 100%;
  height: 100%;
}

.avatar-floating-badge {
  position: absolute;
  bottom: 8px;
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 210, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
}

.temple-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
  animation: pulseBlue 1.8s infinite;
}

.badge-code {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   SECTION CARDS (COMMON WRAPPER)
   ========================================================================== */

.content-card-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 112, 243, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast);
}

/* Section Header Structure */
.section-title-wrapper {
  margin-bottom: 2.25rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 0.85rem;
  border: 1px solid #bae6fd;
}

.section-badge.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyber-blue);
  box-shadow: 0 0 6px var(--cyber-blue);
}

.mini-avatar-ring {
  display: flex;
  align-items: center;
  color: #fbbf24;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #091f38;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section-instruction {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   THEME SWITCHER TABS (ANDROIDES FÍSICOS VS SOFTWARE)
   ========================================================================== */

.theme-switcher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.theme-tab-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.theme-tab-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-tab-card.active {
  background: #f0f7ff;
  border-color: var(--cyber-blue);
  box-shadow: 0 10px 25px rgba(0, 112, 243, 0.18);
}

#tabAndroides.active {
  border-color: #f59e0b;
  background: #fffbeb;
}

.tab-media-container {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.tab-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-chatbot-bg {
  background: linear-gradient(135deg, #0070f3, #00d2ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-svg {
  width: 48px;
  height: 48px;
}

.tab-badge-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.5px;
}

.tab-info {
  flex: 1;
}

.tab-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.tab-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background var(--transition-fast);
}

.theme-tab-card.active .tab-indicator {
  background: var(--cyber-blue);
}

#tabAndroides.active .tab-indicator {
  background: #f59e0b;
}

/* ==========================================================================
   DETAILED COMPARISON CARDS VIEWPORT
   ========================================================================== */

.theme-details-container {
  position: relative;
  margin-bottom: 3rem;
}

.theme-content-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.theme-content-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.comparison-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.comp-feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.comp-feature-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.card-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.comp-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyber-blue);
  letter-spacing: 0.8px;
}

.comp-icon {
  font-size: 1.35rem;
}

.comp-card-img-wrap {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #e2e8f0;
}

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

.comp-feature-card:hover .comp-card-img {
  transform: scale(1.06);
}

.comp-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.comp-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Interactive Progress Block */
.interactive-progress-block {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.progress-val {
  color: var(--cyber-blue);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  position: relative;
  overflow: visible;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0070f3, #00d2ff);
  border-radius: 999px;
  transition: width 1s ease-out;
}

.progress-bar-fill.amber {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #0070f3;
  box-shadow: 0 0 6px rgba(0, 112, 243, 0.5);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.progress-marker.fic {
  border-color: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.progress-marker:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

/* ==========================================================================
   STATS & MIT 100-ICON MATRIX CARD
   ========================================================================== */

.stats-matrix-card {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.stats-matrix-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.stats-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0c233f;
  margin-bottom: 0.25rem;
}

.stats-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Switch Toggle UI */
.toggle-control-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.toggle-mode-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.toggle-mode-label.active {
  color: var(--cyber-blue);
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0070f3;
  transition: .4s;
  border-radius: 24px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider-round {
  background-color: #f59e0b;
}

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

/* Matrix Body Layout */
.stats-matrix-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.matrix-percentage-hero {
  margin-bottom: 1rem;
}

.stat-highlight-big {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: #0070f3;
  letter-spacing: -1px;
}

/* 100 Icon Matrix Grid */
.matrix-grid-100 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-bottom: 1.25rem;
}

.matrix-person-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f1f5f9;
  color: #94a3b8;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.matrix-person-icon svg {
  width: 18px;
  height: 18px;
}

.matrix-person-icon:hover {
  transform: scale(1.25);
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.matrix-person-icon.state-blue {
  background: #0070f3;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(0, 112, 243, 0.4);
}

.matrix-person-icon.state-cyan {
  background: #38bdf8;
  color: #ffffff;
}

.matrix-person-icon.state-amber {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* Matrix Legend */
.matrix-legend {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.legend-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-circle.blue-fill { background: #0070f3; }
.legend-circle.cyan-fill { background: #38bdf8; }
.legend-circle.amber-fill { background: #f59e0b; }
.legend-circle.grey-fill { background: #cbd5e1; }

/* Right Column Summary Badges */
.matrix-right-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-badge-box {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.stat-badge-box:hover {
  transform: translateX(4px);
  border-color: var(--cyber-blue);
  box-shadow: var(--shadow-md);
}

.stat-badge-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: #0070f3;
  min-width: 90px;
}

.stat-badge-number.positive {
  color: #059669;
}

.stat-badge-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Explanatory Narrative Box */
.stats-narrative-box {
  background: #ffffff;
  border-left: 4px solid #0070f3;
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.stats-narrative-box.dark-mode-box {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #f59e0b;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #f59e0b;
}

/* ==========================================================================
   SECTION 2: IA, VÍNCULOS Y ANTROPOMORFIZACIÓN (DARK THEME)
   ========================================================================== */

.section-dark-theme {
  background: radial-gradient(circle at 50% 10%, #0e243d 0%, #07101b 100%);
  color: var(--text-white);
  border: 1px solid rgba(0, 210, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.text-white {
  color: #ffffff !important;
}

.text-light {
  color: #94a3b8 !important;
}

/* Posture Selector Tabs */
.posture-selector-wrap {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.posture-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  transition: all var(--transition-normal);
}

.posture-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.posture-tab-btn.active.blue-mode {
  background: #0070f3;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: var(--shadow-glow-blue);
}

.posture-tab-btn.active.amber-mode {
  background: #f59e0b;
  color: #0f172a;
  border-color: #fbbf24;
  box-shadow: var(--shadow-glow-amber);
}

.posture-thumb {
  font-size: 1.3rem;
}

/* Dynamic Quote Card */
.quote-callout-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 18px;
  padding: 1.75rem 2.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
}

.quote-callout-card.amber-theme {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.quote-mark-icon {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: #00d2ff;
  opacity: 0.8;
}

.quote-callout-card.amber-theme .quote-mark-icon {
  color: #fbbf24;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  font-style: italic;
}

/* 3 Arguments Cards Grid */
.arguments-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.arg-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.arg-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.arg-card.amber-theme {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.2);
}

.arg-card.amber-theme:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.arg-icon-bubble {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 112, 243, 0.2);
  color: #00d2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.arg-card.amber-theme .arg-icon-bubble {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.arg-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.arg-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ==========================================================================
   CHARTS DOUBLE GRID (BAR CHART & LINE CHART)
   ========================================================================== */

.charts-double-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.chart-card-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.chart-card-header {
  margin-bottom: 1.5rem;
}

.chart-box-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.chart-box-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Interactive SVG Bar Chart */
.bar-chart-visual-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 220px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.bar-group-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.bar-header-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.bars-pair {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 190px;
}

.single-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bar-pill-value {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}

.bar-column {
  width: 38px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.bar-active-users {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.bar-registered-users {
  background: linear-gradient(180deg, #60a5fa, #1d4ed8);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.bar-column:hover {
  filter: brightness(1.25);
  transform: scaleY(1.04);
}

.bar-axis-label {
  font-size: 0.68rem;
  color: #94a3b8;
}

/* Interactive SVG Line Chart */
.line-chart-visual-container {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.market-line-chart-svg {
  width: 100%;
  height: 100%;
}

.chart-point-node {
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.chart-point-node:hover circle {
  r: 9;
  fill: #ffffff;
  stroke: #f59e0b;
}

.chart-legend-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: auto;
}

.legend-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-cyan { background: #38bdf8; }
.dot-blue { background: #1d4ed8; }
.dot-amber { background: #f59e0b; }

/* ==========================================================================
   SECTION 3: CONCLUSIÓN / CIERRE
   ========================================================================== */

.conclusion-section {
  background: #ffffff;
  border: 1px solid #bae6fd;
}

.conclusion-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.conclusion-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 900;
  color: #091c32;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.conclusion-title-highlight {
  color: #0070f3;
  background: linear-gradient(90deg, #0070f3, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.conclusion-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 3 Takeaway Cards */
.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.takeaway-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.takeaway-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.takeaway-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.takeaway-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.6rem;
}

.takeaway-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Final Master Reflection Banner */
.final-quote-banner {
  background: #09182b;
  border-radius: 18px;
  padding: 2.25rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.final-quote-marks {
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: var(--font-heading);
  font-size: 6rem;
  line-height: 1;
  color: #f59e0b;
  opacity: 0.25;
  pointer-events: none;
}

.final-quote-text {
  font-family: var(--font-main);
  font-size: 1.12rem;
  line-height: 1.75;
  color: #e2e8f0;
  position: relative;
  z-index: 1;
}

.final-quote-text em {
  color: #fbbf24;
  font-style: normal;
  font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.cyber-footer {
  background: #06111e;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cyber-badge-footer {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.back-to-top-btn {
  color: var(--cyber-blue-glow);
  text-decoration: none;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 112, 243, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  background: var(--cyber-blue);
  color: #ffffff;
}

/* Global Tooltip Element */
.global-tooltip {
  position: fixed;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 1000;
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.global-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 992px) {
  .theme-switcher-grid,
  .comparison-cards-grid,
  .stats-matrix-body,
  .arguments-cards-grid,
  .charts-double-grid,
  .takeaways-grid {
    grid-template-columns: 1fr;
  }
  
  .central-diagram-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .connector-line {
    display: none;
  }
}

@media (max-width: 640px) {
  .infographic-container {
    padding: 1rem;
    gap: 2rem;
  }
  
  .content-card-section {
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
  }
  
  .matrix-grid-100 {
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
  }
  
  .matrix-person-icon {
    width: 20px;
    height: 20px;
  }
  
  .matrix-person-icon svg {
    width: 14px;
    height: 14px;
  }
  
  .stat-highlight-big {
    font-size: 1.9rem;
  }
  
  .nav-actions .nav-btn {
    display: none;
  }
  
  .posture-selector-wrap {
    flex-direction: column;
  }
}
