/* ==========================================================================
   CYBERLIFE DESIGN SYSTEM & DETROIT BECOME HUMAN THEME
   Visión vs. Realidad: IA y sociedad en Detroit: Become Human
   ========================================================================== */

:root {
  --bg-primary: #e6eef6;
  --bg-section-light: #d8e5f2;
  --bg-card-light: #ffffff;
  --bg-dark: #081320;
  --bg-dark-surface: #0e1e32;
  --bg-dark-card: #142842;

  --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;

  --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);

--font-main: 'Inter', sans-serif;
--font-heading: 'Inter', sans-serif;
--font-mono: 'Inter', sans-serif;

  --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);
}

*, *::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: url("img/fondo 1.png") center center / cover fixed no-repeat;
  overflow-x: hidden;
}

::-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); }

/* ==========================================================================
   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;
}

.infographic-container.container-first { padding-bottom: 0; }

/* ==========================================================================
   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-diagram-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.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)); }

.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; }

@keyframes pulseBlue { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }

/* ==========================================================================
   SECTION CARDS (COMMON WRAPPER)
   ========================================================================== */

.content-card-section {
  background: #AFD0EB;
  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-title-wrapper { margin-bottom: 2.25rem; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #000000;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 0.85rem;
}

.section-badge.badge-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.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; }
.text-white { color: #ffffff !important; }
.text-light { color: #ffffff !important; }

/* ==========================================================================
   THEME SWITCHER TABS
   ========================================================================== */

.theme-switcher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.25rem; }

.theme-tab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 1.25rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  text-align: center;
  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:not(.active) { opacity: 0.75; }
.theme-tab-card:not(.active):hover { opacity: 1; }

#tabAndroides { border-color: #000000; background: #F0E1B1; }
#tabAndroides.active, #tabSoftware.active {
  opacity: 1;
  border-color: #0070f3;
  box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.3), var(--shadow-lg);
}

.tab-media-container { width: 130px; height: 150px; border-radius: 10px; overflow: hidden; position: relative; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.tab-img { width: 100%; height: 100%; object-fit: cover; }
.tab-chatbot-bg { display: flex; align-items: center; justify-content: center; }
.tab-info { flex: none; text-align: center; }

.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: #0070f3; }

#tabSoftware { background: #AFCFEA; border-color: #000000; color: #0f2b48; }
#tabSoftware .tab-title { color: #0f2b48; }
#tabSoftware.active { background: #AFCFEA; box-shadow: 0 8px 25px rgba(175, 207, 234, 0.45); }
#tabSoftware:hover { background: #AFCFEA; border-color: #AFCFEA; transform: translateY(-2px); }

.theme-content-panel.active { margin-bottom: 2rem; }

/* ==========================================================================
   STATS & 50-ICON MATRIX CARD
   ========================================================================== */

.stats-matrix-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 2rem 2.25rem;
  text-align: left;
  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); }

.toggle-control-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #0272fb;
  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); }

.stats-matrix-body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 0;
}

.matrix-charts-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.matrix-chart { display: flex; flex-direction: column; gap: 1.25rem; }

.stat-highlight-big { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 900; line-height: 1; color: #2E86C1; letter-spacing: -1px; }

.matrix-grid-50 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px 6px;
  background: #fafbfc;
  padding: 0.75rem;
  border-radius: 10px;
}

.matrix-person-icon {
  position: relative;
  width: auto;
  height: auto;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: #cbd5e1;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.matrix-person-icon svg { width: 100%; height: 100%; }
.matrix-person-icon:hover { transform: scale(1.25); z-index: 5; box-shadow: none; }

.matrix-person-icon.state-blue { color: #2E86C1; }
.matrix-person-icon.state-amber { color: #f59e0b; }
.matrix-person-icon.state-yellow { color: #FFBB00; }

.partial-fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  clip-path: inset(0 var(--cut, 50%) 0 0);
}
.partial-fill.state-blue { color: #2E86C1; }
.partial-fill.state-amber { color: #f59e0b; }
.partial-fill.state-yellow { color: #FFBB00; }

.matrix-legend { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.95rem; color: var(--text-primary); }
.legend-item { display: flex; align-items: center; gap: 0.9rem; }
.legend-icon { width: 30px; height: 30px; flex-shrink: 0; color: #2E86C1; }
.legend-icon svg { width: 100%; height: 100%; }

.stats-side-col { display: flex; flex-direction: column; gap: 1.25rem; }
.matrix-badges { display: none; flex-direction: column; gap: 0.6rem; }
.matrix-badges.active { display: flex; }

.stat-badge-box {
  background: #EAF4FC;
  border: 1px solid #2387E5;
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  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: 1.5rem; font-weight: 900; color: #0070f3; min-width: 72px; }
.stat-badge-label { font-size: 0.75rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }

.matrix-photo img { display: block; width: 100%; height: 200px; object-fit: cover; border-radius: 18px; }

.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.card-style { border-left: 0; border-radius: 20px; padding: 1.5rem 2rem; margin-top: 1.25rem; background: #ffffff; }

.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;
}

/* Modo Juego 2018 (amarillo) */
.stats-matrix-card.game-mode .matrix-charts-pair { grid-template-columns: 1fr; }
.stats-matrix-card.game-mode .matrix-grid-50 { gap: 6px 4px; }
.stats-matrix-card.game-mode .stat-badge-box { background: #FFF8E5; border-color: #FFBB00; }
.stats-matrix-card.game-mode .stat-badge-number { color: #FFBB00; }

/* ==========================================================================
   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);
}

.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
   ========================================================================== */

.charts-double-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-bottom: 2rem; align-items: start; }

.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; }

.bar-chart-visual-container { display: flex; justify-content: space-around; align-items: flex-start; height: 300px; 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: 1.1rem; height: 100%; }
.bar-header-label { font-size: 0.82rem; font-weight: 700; color: #cbd5e1; flex-shrink: 0; }
.bars-pair { display: flex; align-items: flex-end; gap: 12px; flex: 1; width: 100%; justify-content: center; }
.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; }

/* ==========================================================================
   SECTION 3: CONCLUSIÓN / CIERRE
   ========================================================================== */

.conclusion-section { background: #D3E2F0; 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; }

.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-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; }

/* Global Tooltip */
.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); }

/* ==========================================================================
   FRANJAS A TODO EL ANCHO
   ========================================================================== */

#seccion-predicciones.band-full { width: 100%; margin: 0; padding: 3rem 0; background: #AFD0EB; border: 0; border-radius: 0; box-shadow: none; }
#seccion-predicciones .band-inner { max-width: 1200px; margin: 0 auto; padding: 0 4rem; }

#seccion-vinculos.band-full { width: 100%; margin: 0; padding: 3rem 0; border: 0; border-radius: 0; box-shadow: none; }
#seccion-vinculos .band-inner { max-width: 1200px; margin: 0 auto; padding: 0 4rem; }

#seccion-conclusion.band-full { width: 100%; margin: 0; padding: 3rem 0; background: #D3E2F0; border: 0; border-radius: 0; box-shadow: none; }
#seccion-conclusion .band-inner { max-width: 1200px; margin: 0 auto; padding: 0 4rem; }

@media (max-width: 992px) {
  #seccion-predicciones .band-inner { padding: 0 1.5rem; }
  #seccion-vinculos .band-inner { padding: 0 1.5rem; }
  #seccion-conclusion .band-inner { padding: 0 1.5rem; }
}
@media (max-width: 640px) {
  #seccion-predicciones.band-full { padding: 1.75rem 0; }
  #seccion-predicciones .band-inner { padding: 0 1rem; }
  #seccion-vinculos.band-full { padding: 1.75rem 0; }
  #seccion-vinculos .band-inner { padding: 0 1rem; }
  #seccion-conclusion.band-full { padding: 1.75rem 0; }
  #seccion-conclusion .band-inner { padding: 0 1rem; }
}

/* ==========================================================================
   CARD DE DEBATE (frase + selector + argumentos), estilo claro
   ========================================================================== */

.debate-card {
  background: #DEDEDE;
  border-radius: 22px;
  padding: 1.75rem 2rem 2rem;
  margin-bottom: 3rem;
  color: #0f172a;
}

.debate-card .quote-callout-card {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.debate-card .quote-mark-icon {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 0.8;
  color: #2E86C1;
  opacity: 1;
  align-self: flex-start;
}
.debate-card .quote-text { flex: 1; text-align: center; font-size: 1.35rem; font-weight: 800; font-style: normal; color: #0f172a; }

/* ---------- BOTONES SÍ / NO (estilo píldora, como la captura) ---------- */

.debate-card .posture-selector-wrap {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.debate-card .posture-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #1f2937;
  box-shadow: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.debate-card .posture-tab-btn:hover { transform: translateY(-1px); }

/* Borde/ícono de color por defecto (sin elegir) */
.debate-card #btnPostureYes { border-color: #2E86C1; }
.debate-card #btnPostureYes .posture-thumb { color: #2E86C1; }

.debate-card #btnPostureNo { border-color: #9CA3AF; }
.debate-card #btnPostureNo .posture-thumb { color: #6B7280; }

.debate-card .posture-thumb { display: flex; align-items: center; font-size: 1rem; }

/* Estado seleccionado: se rellena con el color sólido */
.debate-card .posture-tab-btn.active.blue-mode {
  background: #2E86C1;
  border-color: #2E86C1;
  color: #ffffff;
}
.debate-card .posture-tab-btn.active.blue-mode .posture-thumb { color: #ffffff; }

.debate-card .posture-tab-btn.active.amber-mode {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #0f172a;
}
.debate-card .posture-tab-btn.active.amber-mode .posture-thumb { color: #0f172a; }

/* ---------- Cards de argumentos ---------- */

.debate-card .arguments-cards-grid { gap: 1.25rem; margin-bottom: 0; }

.debate-card .arg-card {
  align-items: center;
  text-align: center;
  padding: 1.25rem 1.1rem;
  background: #BACEDE;
  border: 1px solid #2E86C1;
  border-radius: 14px;
  box-shadow: none;
}
.debate-card .arg-card:hover { transform: translateY(-2px); background: #b1c8da; border-color: #2E86C1; box-shadow: none; }
.debate-card .arg-card.amber-theme { background: #F1DFAE; border-color: #F59E0B; }
.debate-card .arg-card.amber-theme:hover { background: #ecd79b; border-color: #F59E0B; }

.debate-card .arg-icon-bubble {
  width: auto; height: auto;
  background: none;
  border: 0;
  border-radius: 0;
  margin-bottom: 0.6rem;
  color: #2E86C1;
}
.debate-card .arg-card.amber-theme .arg-icon-bubble { color: #B45309; }

.debate-card .arg-title { font-size: 0.95rem; font-weight: 800; color: #0f172a; margin-bottom: 0.4rem; }
.debate-card .arg-desc { font-size: 0.82rem; color: #1f3347; line-height: 1.45; }

/* ---------- Estado vacío: solo frase + botones ---------- */

.debate-card.is-empty .arguments-cards-grid,
.debate-card.is-empty .debate-media { display: none; }

.debate-card:not(.is-empty) .arguments-cards-grid,
.debate-card:not(.is-empty) .debate-media-set.active { animation: debateIn 0.35s ease; }

@keyframes debateIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .debate-card:not(.is-empty) .arguments-cards-grid,
  .debate-card:not(.is-empty) .debate-media-set.active { animation: none; }
}

/* ---------- Fotos por postura ---------- */

.debate-media { margin-top: 1.5rem; }
.debate-media-set { display: none; justify-content: center; gap: 0.75rem; max-width: 900px; margin: 0 auto; }
.debate-media-set.active { display: flex; }
.debate-media-set img { flex: 1; min-width: 0; height: 260px; object-fit: cover; border-radius: 6px; }

@media (max-width: 640px) {
  .debate-card { padding: 1.25rem 1rem 1.5rem; }
  .debate-card .quote-text { font-size: 1.05rem; }
  .debate-card .quote-mark-icon { font-size: 2.4rem; }
  .debate-card .posture-selector-wrap { flex-direction: column; }
  .debate-media-set { flex-direction: column; }
  .debate-media-set img { height: 200px; }
}

/* ---------- Gráfico de barras + texto: tarjetas claras ---------- */

.charts-double-grid .chart-card-box { background: #DEDEDE; border: 0; border-radius: 18px; color: #000000; }
.charts-double-grid .chart-box-title { color: #000000; }
.charts-double-grid .chart-box-subtitle { color: #333333; }
.charts-double-grid .bar-chart-visual-container { border-bottom: 0; gap: 1rem; }
.charts-double-grid .bar-header-label { color: #222222; border-bottom: 1px solid #777777; padding-bottom: 2px; font-weight: 500; font-size: 0.75rem; width: 100%; text-align: center; }
.charts-double-grid .bar-pill-value { color: #000000; }
.charts-double-grid .bar-axis-label { color: #222222; font-size: 0.66rem; text-align: center; }
.charts-double-grid .bar-column { width: 48px; border-radius: 8px; box-shadow: none; }
.charts-double-grid .bar-active-users { background: #A5C4DD; }
.charts-double-grid .bar-registered-users { background: #56A0DC; }

.charts-double-grid .stats-narrative-box.dark-mode-box {
  background: #DEDEDE;
  border: 0;
  border-radius: 18px;
  padding: 1.5rem;
  color: #000000;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==========================================================================
   CARRUSEL DE TEMAS (reemplaza a las dos tarjetas al elegir una)
   ========================================================================== */

.topic-stage { display: none; margin-bottom: 2.25rem; }
.topic-stage.active { display: block; }

.topic-card {
  background: #214059;
  border-radius: 20px;
  min-height: 600px;
  padding: 1.5rem 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.topic-back {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.topic-back:hover { background: rgba(255, 255, 255, 0.2); }

.carousel-viewport { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem 0; overflow: hidden; }

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  width: 100%;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: opacity 0.2s ease; transform: none; }
  .carousel-slide.active { transform: none; }
}

.slide-title { font-size: 1.7rem; font-weight: 800; line-height: 1.2; }

.slide-images { display: flex; justify-content: center; gap: 1rem; width: 100%; }
.slide-images img { height: 290px; max-width: 48%; width: auto; object-fit: cover; border-radius: 8px; }
.slide-images img.slide-img-contain { object-fit: contain; height: 220px; }

.slide-caption { font-size: 1.7rem; font-weight: 800; line-height: 1.25; max-width: 820px; }
.slide-note { font-size: 1rem; color: #cbd5e1; }

/* Línea de tiempo deslizable */
.carousel-timeline { position: relative; height: 40px; margin: 0.5rem 30px 0; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tl-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); background: rgba(0, 0, 0, 0.45); }
.tl-dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #535353; transform: translate(-50%, -50%); }
.tl-thumb {
  position: absolute;
  top: 50%;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #2387E5;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(35, 135, 229, 0.25);
  cursor: grab;
  transition: left 0.25s ease;
  outline: none;
}
.tl-thumb:focus-visible { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6); }
.carousel-timeline.dragging, .carousel-timeline.dragging .tl-thumb { cursor: grabbing; }
.carousel-timeline.dragging .tl-thumb { transition: none; }

.tl-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: flex; padding: 0 0.3rem; background: none; border: 0; color: #2387E5; cursor: pointer; }
.tl-arrow.prev { right: 100%; }
.tl-arrow.next { left: 100%; }
.tl-arrow.prev svg { transform: scaleX(-1); }
.tl-arrow:hover { color: #5aa9f5; }

/* Estilo oliva/amarillo (carrusel Androides Juego) */
.topic-card.theme-game { background: #564516; color: #ffffff; }
.theme-game .topic-back { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: #ffffff; }
.theme-game .topic-back:hover { background: rgba(255, 255, 255, 0.2); }
.theme-game .tl-line { background: #000000; }
.theme-game .tl-thumb { background: #FFBB00; box-shadow: 0 0 0 4px rgba(255, 187, 0, 0.3); }
.theme-game .tl-thumb:focus-visible { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7); }
.theme-game .tl-arrow { color: #FFBB00; }
.theme-game .tl-arrow:hover { color: #ffd24d; }

@media (max-width: 640px) {
  .topic-card { padding: 1.25rem 1rem; min-height: 0; }
  .slide-images { flex-direction: column; align-items: center; }
  .slide-images img { max-width: 100%; height: 200px; }
  .slide-title, .slide-caption { font-size: 1.25rem; }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 992px) {
  .theme-switcher-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; }
  .stat-highlight-big { font-size: 2.2rem; }
  .matrix-charts-pair { grid-template-columns: 1fr; }
  .stats-matrix-card { padding: 1.5rem 1.1rem; }
  .posture-selector-wrap { flex-direction: column; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
}

.site-footer p {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #e2e8f0;
}

@media (max-width: 640px) {
  .site-footer { padding: 1.1rem 1rem; }
  .site-footer p { font-size: 0.78rem; }
}

/* ==========================================================================
   BOTÓN FLOTANTE: SALTAR ENTRE "PREDICCIONES" Y "VÍNCULOS"
   ========================================================================== */

.section-jump-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0070f3;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 112, 243, 0.4);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.section-jump-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: #005fd1;
}

.section-jump-btn svg {
  transition: transform var(--transition-normal);
}

/* Apuntando hacia abajo: te lleva de Predicciones a Vínculos */
.section-jump-btn.point-down svg { transform: rotate(0deg); }

/* Apuntando hacia arriba: te lleva de Vínculos a Predicciones */
.section-jump-btn.point-up svg { transform: rotate(180deg); }

@media (max-width: 640px) {
  .section-jump-btn { width: 48px; height: 48px; left: 16px; bottom: 16px; }
}