/* ==========================================================================
   ESPECIAL MULTIMEDIA: LA VIOLENCIA QUE NO CEDE
   Sistema de Estilos Premium (Editorial de Datos)
   ========================================================================== */

/* Variables de Diseño (Tokens) */
:root {
  --bg-dark: #090909;
  --bg-dark-accent: #121212;
  --bg-paper: #fbf9f6;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-glass-dark: rgba(13, 13, 13, 0.82);
  
  --ink-dark: #141414;
  --ink-muted: #525252;
  --paper-ink: #dedede;
  --paper-muted: #8e8e8e;
  
  --accent: #ba001b;
  --accent-light: #ff6b4a;
  --accent-soft: rgba(186, 0, 27, 0.12);
  --success: #1e7d43;
  --success-soft: rgba(30, 125, 67, 0.12);
  --warning: #cc7000;
  
  --shadow-premium: 0 24px 60px rgba(0, 0, 0, 0.15);
  --shadow-glass: 0 16px 40px rgba(0, 0, 0, 0.35);
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-reading: "Lora", Georgia, serif;
}

.source-update {
  margin: 24px 0 28px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: #f2eae6;
  color: #262120;
  font: 600 14px/1.6 var(--font-sans);
}

/* Chat integrado con la paleta editorial del especial. */
.assistant-story {
  background: radial-gradient(circle at 50% 0, rgba(186, 0, 27, .16), transparent 58%), var(--bg-dark-accent);
  color: var(--paper-ink);
  padding: clamp(64px, 8vw, 112px) 24px;
  scroll-margin-top: 64px;
  font: 16px/1.55 var(--font-sans);
}

.assistant-story-inner { max-width: 1120px; margin: 0 auto; }
.assistant-story-intro { max-width: 790px; margin: 0 auto 36px; text-align: center; }
.assistant-story-eyebrow { color: var(--accent-light); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.assistant-story-intro h2 { margin: 12px 0 16px; color: var(--bg-paper); font: 800 clamp(30px, 4vw, 46px)/1.13 var(--font-serif); letter-spacing: -.02em; }
.assistant-story-intro p { margin: 0 auto; max-width: 680px; color: #c5bfc0; font: 16px/1.65 var(--font-reading); }

.assistant-frame {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 34px 34px 34px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 107, 74, .22);
  background: linear-gradient(145deg, #330b13, #1b1718 68%);
  box-shadow: 0 28px 75px rgba(0, 0, 0, .32);
}

.assistant-identity { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; gap: 8px; color: var(--bg-paper); text-align: center; }
.assistant-avatar { display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid rgba(255, 107, 74, .34); border-radius: 50%; background: #f4e9e5; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); color: var(--accent); }
.assistant-avatar img { display: block; width: 96px; height: 96px; object-fit: contain; }
.assistant-identity strong { font: 700 25px/1.2 var(--font-serif); letter-spacing: -.02em; }
.assistant-identity span { max-width: 125px; color: #d2bfc2; font-size: 12px; font-weight: 700; line-height: 1.35; }

.help-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 640px;
  overflow: hidden;
  border: 1px solid #ae888c;
  border-radius: 20px;
  background: var(--bg-paper);
  color: var(--ink-dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.help-chat-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid #e8deda; background: #fff; }
.help-chat-kicker { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.help-chat-header h3 { margin: 3px 0; font: 800 22px/1.2 var(--font-sans); letter-spacing: -.02em; }
.help-chat-header p { color: #655b59; font-size: 12px; }
.help-chat-emergency { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 24px; border-bottom: 1px solid #e8deda; background: #f8eeeb; font-size: 13px; }
.help-chat-emergency strong { color: #302323; }
.help-chat-emergency a { color: #900016; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.help-chat-messages { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding: 22px 24px; overscroll-behavior: contain; }
.help-chat-message { max-width: min(85%, 650px); padding: 12px 15px; border-radius: 15px 15px 15px 4px; background: #f0e8e4; color: #292322; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.help-chat-message.is-user { align-self: flex-end; border-radius: 15px 15px 4px 15px; background: var(--accent); color: #fff; }
.help-chat-message.is-status { background: #fff0d9; color: #3f2b0e; }
.help-chat-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.help-chat-typing { display: inline-flex; align-items: center; align-self: flex-start; gap: 5px; min-height: 42px; width: max-content; padding: 12px 15px; border-radius: 15px 15px 15px 4px; background: #f0e8e4; }
.help-chat-typing-label { margin-right: 3px; color: #655b59; font-size: 13px; font-weight: 700; }
.help-chat-typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .4; animation: help-chat-dot 1s ease-in-out infinite; }
.help-chat-typing-dot:nth-child(3) { animation-delay: .15s; }
.help-chat-typing-dot:nth-child(4) { animation-delay: .3s; }
.help-chat-message.is-writing .help-chat-visible-text::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--accent); animation: help-chat-caret .7s steps(1, end) infinite; }
@keyframes help-chat-dot { 0%, 60%, 100% { opacity: .4; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes help-chat-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .help-chat-typing-dot, .help-chat-message.is-writing .help-chat-visible-text::after { animation: none; }
  .help-chat-message.is-writing .help-chat-visible-text::after { display: none; }
}
.help-chat-quick-actions { display: flex; flex-wrap: wrap; align-self: flex-start; gap: 8px; max-width: 100%; }
.help-chat-quick-actions a, .help-chat-quick-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 13px; border: 1px solid var(--accent); border-radius: 999px; background: #fff; color: #900016; font: 800 12px/1.25 var(--font-sans); text-align: center; text-decoration: none; cursor: pointer; }
.help-chat-quick-actions > :first-child { background: var(--accent); color: #fff; }
.help-chat-quick-actions a:hover, .help-chat-quick-actions button:hover { filter: brightness(.94); }
.help-chat-result { border: 1px solid #decfcb; border-radius: 12px; padding: 12px 14px; background: #fff; box-shadow: 0 3px 10px rgba(40, 20, 18, .05); font-size: 13px; }
.help-chat-result strong { display: block; font-size: 14px; }
.help-chat-result small { display: block; color: #655b59; margin-top: 4px; line-height: 1.4; }
.help-chat-result a { display: inline-block; color: #900016; font-weight: 800; margin-top: 7px; text-decoration: underline; }
.help-chat-composer { flex: 0 0 auto; border-top: 1px solid #e8deda; background: #fff; }
.help-chat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; padding: 12px 24px 3px; }
.help-chat-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--accent); border-radius: 999px; background: #fff5f2; color: #8e0018; font: 800 13px var(--font-sans); cursor: pointer; }
.help-chat-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.help-chat-form { padding: 8px 24px 10px; }
.help-chat-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; }
.help-chat-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.help-chat-form textarea { min-width: 0; width: 100%; min-height: 64px; padding: 11px 12px; border: 1px solid #bda9a4; border-radius: 11px; background: #fff; color: var(--ink-dark); font: 14px/1.4 var(--font-sans); resize: none; }
.help-chat-form button { min-height: 48px; padding: 8px 17px; border: 0; border-radius: 11px; background: var(--accent); color: #fff; font: 800 14px var(--font-sans); cursor: pointer; }
.help-chat-form button span { margin-left: 5px; font-size: 18px; }
.help-chat-bottom { display: flex; align-items: center; justify-content: flex-end; padding: 0 24px 15px; }
.help-chat-reset { flex: 0 0 auto; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--accent); border-radius: 999px; background: #fff; color: #8e0018; font: 800 13px var(--font-sans); cursor: pointer; }
.help-chat button:disabled { opacity: .55; cursor: wait; }
.help-chat button:hover:not(:disabled) { filter: brightness(.94); }
.help-chat button:focus-visible, .help-chat a:focus-visible, .help-chat textarea:focus-visible, .chat-launcher:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }

.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 7000; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px; border: 1px solid #fff; border-radius: 999px; background: var(--accent); color: #fff; font: 800 13px var(--font-sans); text-decoration: none; box-shadow: 0 8px 26px rgba(0, 0, 0, .25); }
.chat-launcher img { display: block; width: 30px; height: 30px; padding: 2px; border-radius: 50%; background: #f4e9e5; object-fit: contain; }
.chat-launcher:hover { background: #8e0018; }
.chat-launcher[hidden] { display: none; }

@media (max-width: 760px) {
  .assistant-frame { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 15px; }
  .assistant-identity { flex-direction: row; justify-content: flex-start; gap: 10px; text-align: left; }
  .assistant-avatar { width: 62px; height: 62px; }
  .assistant-avatar img { width: 54px; height: 54px; }
  .assistant-identity strong { font-size: 20px; }
  .assistant-identity span { max-width: none; }
  .help-chat { height: 650px; }
}

@media (max-width: 520px) {
  .assistant-story { padding: 66px 12px; }
  .assistant-story-intro { padding: 0 9px; }
  .assistant-frame { padding: 12px; border-radius: 18px; }
  .help-chat { height: 740px; border-radius: 15px; }
  .help-chat-header, .help-chat-emergency, .help-chat-messages { padding-left: 15px; padding-right: 15px; }
  .help-chat-header h3 { font-size: 18px; }
  .help-chat-header p { font-size: 12px; }
  .help-chat-actions { padding: 11px 15px 3px; }
  .help-chat-form { padding: 8px 15px 10px; }
  .help-chat-form textarea { font-size: 16px; }
  .help-chat-bottom { justify-content: center; padding: 0 15px 12px; }
  .help-chat-message { max-width: 95%; }
  .chat-launcher { right: 12px; bottom: 12px; }
}

/* ==========================================================================
   Estilos Base y Tipografía
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--paper-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* Línea de Progreso Superior */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 9999;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.1s ease-out;
}

/* Header Sutil */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 48px;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.header-tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-light);
}

.header-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--paper-muted);
}

/* ==========================================================================
   Hero Section (Portada)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(186, 0, 27, 0.15) 0%, rgba(9, 9, 9, 1) 75%);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  opacity: 0.8;
  pointer-events: none;
}

.hero-container {
  max-width: 960px;
  padding: 24px;
  text-align: center;
  z-index: 10;
  margin-top: 60px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: var(--accent-light);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-family: var(--font-reading);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  color: #d1d1d1;
  max-width: 780px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-meta {
  font-size: 13px;
  color: var(--paper-muted);
  letter-spacing: 0.05em;
}

.hero-meta strong {
  color: #ffffff;
}

.meta-separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.15);
}

/* Indicador de Scroll */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-column: reverse;
  align-items: center;
  gap: 12px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.scroll-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-muted);
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 2px;
  margin-top: 6px;
  animation: scroll-pulsate 1.6s infinite;
}

@keyframes scroll-pulsate {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Secciones Narrativas (Estilo Reportaje / Papel de Prensa)
   ========================================================================== */
.story-section {
  padding: 110px 24px;
  position: relative;
}

.bg-paper {
  background-color: var(--bg-paper);
  color: var(--ink-dark);
}

.bg-dark {
  background-color: var(--bg-dark-accent);
  color: var(--paper-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.content-container {
  max-width: 740px;
  margin: 0 auto;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: inherit;
}

/* Cuerpo de la Nota */
.story-lead {
  font-family: var(--font-reading);
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.5;
  margin-bottom: 36px;
  color: #2b2b2b;
}

.story-text {
  font-family: var(--font-reading);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.68;
  margin-bottom: 28px;
  color: inherit;
}

.text-light .story-text {
  color: #d1d1d1;
}

.text-muted {
  color: #a0a0a0 !important;
}

/* Letra Capital */
.drop-cap {
  font-family: var(--font-serif);
  float: left;
  font-size: 92px;
  line-height: 64px;
  padding-top: 8px;
  padding-right: 12px;
  font-weight: 900;
  color: var(--accent);
}

/* Cita Destacada */
.quote-container {
  margin: 54px 0;
  padding-left: 28px;
  border-left: 5px solid var(--accent);
  position: relative;
}

.story-quote {
  font-family: var(--font-reading);
  font-size: 26px;
  font-style: italic;
  line-height: 1.45;
  color: #1a1a1a;
  font-weight: 600;
}

.text-light .story-quote {
  color: #ffffff;
}

/* ==========================================================================
   Grid de KPIs y Animaciones de Carga
   ========================================================================== */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 54px 0;
}

.metric-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.metric-num {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 850;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.metric-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
  font-weight: 600;
}

/* ==========================================================================
   Sección de Scrollytelling (Split Screen)
   ========================================================================== */
.scrollytelling-section {
  position: relative;
  background-color: #0b0b0b;
}

.scrolly-container {
  display: flex;
  position: relative;
  width: 100%;
}

/* Columna Izquierda: Scroll Narrativo */
.scrolly-narrative {
  width: 42%;
  padding-left: 6%;
  padding-right: 4%;
  position: relative;
  z-index: 10;
}

.scrolly-step {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.2;
  transition: opacity 0.5s ease;
  padding: 60px 0;
}

.scrolly-step.active {
  opacity: 1;
}

.scrolly-step h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
}

.scrolly-step p {
  font-family: var(--font-reading);
  font-size: 17px;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 16px;
}

.narrative-hint {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.narrative-hint::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-light);
  animation: pulse-badge 1.5s infinite;
}

/* Columna Derecha: Contenedor de Mapa Pegajoso */
.scrolly-map-sticky {
  position: sticky;
  top: 0;
  width: 58%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
  z-index: 5;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  border: var(--border-glass);
}

.map-canvas {
  width: 100%;
  height: 100%;
  background: #0d0d0d !important;
}

/* ==========================================================================
   Epic Glassmorphism Info Panel (Tooltip Overlay)
   ========================================================================== */
.epic-tooltip {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: var(--bg-glass-dark);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: var(--border-glass);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-glass);
  color: #ffffff;
  z-index: 1000;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.tooltip-header h4 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.tooltip-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tooltip-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  animation: pulse-badge 2s infinite;
}

.tooltip-close {
  display: none;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tooltip-close:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

@keyframes pulse-badge {
  0% { box-shadow: 0 0 0 0 rgba(186, 0, 27, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(186, 0, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(186, 0, 27, 0); }
}

.tooltip-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tooltip-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.no-border {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.section-title {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--paper-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.kpi-row {
  display: flex;
  gap: 20px;
}

.kpi-item {
  flex: 1;
}

.kpi-value {
  display: block;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.kpi-label {
  font-size: 10px;
  color: var(--paper-muted);
}

.data-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  color: #d8d8d8;
}

.data-row.flex-column {
  flex-direction: column;
  gap: 6px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.font-bold {
  font-weight: 750;
}

.text-accent {
  color: var(--accent-light) !important;
}

.text-success {
  color: #4cd37f !important;
}

/* Barra de Progreso Interna */
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 2px 0;
}

.progress-bar-thumb {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.data-subtext {
  font-size: 10px;
  color: var(--paper-muted);
}

/* Mini Lista de Centros de Salud Mental */
.csmc-list-container {
  max-height: 72px;
  overflow-y: auto;
  margin-top: 8px;
  padding-right: 4px;
}

.csmc-list-container::-webkit-scrollbar {
  width: 4px;
}

.csmc-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.csmc-mini-list {
  list-style: none;
  font-size: 10px;
  color: #b0b0b0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.csmc-mini-list li {
  position: relative;
  padding-left: 10px;
}

.csmc-mini-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

/* Leaflet Map overrides for premium styling */
.leaflet-popup-content-wrapper {
  background: rgba(13, 13, 13, 0.85) !important;
  backdrop-filter: blur(8px);
  color: #fff !important;
  border-radius: 12px !important;
  border: var(--border-glass) !important;
}

.leaflet-popup-tip {
  background: rgba(13, 13, 13, 0.85) !important;
}

/* ==========================================================================
   Infografía de Brecha de Género (Circular)
   ========================================================================== */
.infographic-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 36px;
  margin: 48px 0;
}

.gender-pie-wrapper {
  display: flex;
  gap: 42px;
  align-items: center;
}

.gender-circle {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2.8;
}

.circle {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s;
}

.circular-chart.red .circle {
  stroke: var(--accent-light);
}

.circle-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.circle-pct {
  display: block;
  font-size: 30px;
  font-weight: 850;
  color: #ffffff;
}

.circle-sub {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--paper-muted);
  letter-spacing: 0.08em;
}

.gender-explanation h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.gender-explanation p {
  font-size: 15px;
  line-height: 1.5;
  color: #bfbfbf;
  margin-bottom: 12px;
}

/* ==========================================================================
   Asimetría Territorial (SJL vs Madre de Dios)
   ========================================================================== */
.comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 54px 0;
}

.comparison-card {
  flex: 1;
  background: #ffffff;
  border-radius: 24px;
  padding: 42px 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.focus-card {
  border: 2px solid var(--accent);
  box-shadow: 0 20px 50px rgba(186, 0, 27, 0.08);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(186, 0, 27, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.card-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.focus-card .card-tag {
  background: var(--accent-soft);
  color: var(--accent);
}

.comparison-card h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 850;
  margin-bottom: 24px;
  color: var(--ink-dark);
}

.comp-metric-wrapper {
  margin-bottom: 24px;
}

.comp-value {
  display: block;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.comp-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

.comp-subtext {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px;
}

.comparison-versus {
  font-size: 20px;
  font-weight: 900;
  color: var(--paper-muted);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Panel de Pestañas Interactivas (Entrevistas)
   ========================================================================== */
.interview-tabs-container {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: var(--bg-dark-accent);
  overflow: visible;
  box-shadow: var(--shadow-glass);
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.tab-btn {
  flex: 1;
  padding: 20px;
  background: transparent;
  border: none;
  color: var(--paper-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  outline: none;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-bottom: none;
}

.tabs-content {
  padding: 40px;
  border-radius: 0 0 24px 24px;
  background: var(--bg-dark-accent);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: tab-fade-in 0.4s ease;
}

@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-grid {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.pane-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.06);
}

/* Avatares Mock/Placeholder con estilos temáticos */
.avatar-proto {
  background: linear-gradient(135deg, #ba001b, #222);
}

.avatar-esp {
  background: linear-gradient(135deg, #4cd37f, #222);
}

.avatar-cem {
  background: linear-gradient(135deg, #ff6b4a, #222);
}

.protagonist-layout {
  align-items: flex-start;
}

.protagonist-carousel {
  position: sticky;
  top: clamp(72px, 11vh, 112px);
  width: clamp(300px, 32vw, 360px);
  flex: 0 0 clamp(300px, 32vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 118px);
}

.story-carousel-frame {
  height: clamp(390px, calc(100vh - 220px), 590px);
  min-height: 0;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.story-slide {
  display: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 20px 20px 22px;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    #0a0a0a;
}

.story-slide.active {
  display: flex;
  animation: story-slide-in 0.45s ease;
}

@keyframes story-slide-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.story-illustration {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-illustration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.story-svg {
  width: 100%;
  height: 100%;
  max-height: none;
  filter: grayscale(1);
}

.story-bg {
  fill: #111111;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2;
}

.story-fill.dark {
  fill: #f2f2f2;
}

.story-fill.pale {
  fill: rgba(255, 255, 255, 0.08);
}

.story-line {
  fill: none;
  stroke: #f1f1f1;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-line.strong {
  stroke-width: 5;
}

.story-line.thin {
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 3;
}

.story-line.soft {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 3;
}

.story-slide figcaption {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.story-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.story-carousel-count {
  min-width: 58px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.story-carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.story-carousel-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.story-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.story-carousel-dot.active {
  width: 24px;
  border-radius: 999px;
  background: #ffffff;
}

.pane-details {
  flex: 1;
  min-width: 0;
}

.pane-subtitle {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.pane-details h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 12px;
}

.pane-intro-text {
  font-size: 15px;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 20px;
}

.pane-interview-quote {
  font-family: var(--font-reading);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  color: #ffffff;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 24px;
}

.pane-interview-question {
  background: rgba(255, 255, 255, 0.03);
  padding: 18px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 1.45;
  color: #b0b0b0;
}

.expert-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.expert-insight {
  min-width: 0;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.expert-insight span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.expert-insight strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.expert-insight p {
  color: #b0b0b0;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.cem-pane {
  gap: 28px;
}

.cem-field-card {
  flex: 0 0 min(44%, 440px);
  padding: 28px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cem-field-card h3 {
  font-family: var(--font-sans);
  font-size: 23px;
  line-height: 1.15;
  font-weight: 850;
  color: #fff;
  margin-bottom: 16px;
}

.cem-route {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.cem-route-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.cem-route-step span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.cem-route-step strong {
  color: #fff;
  font-size: 14px;
}

.cem-route-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.35;
}

.cem-findings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.cem-finding-card {
  padding: 16px;
  min-height: 138px;
  border-radius: 14px;
  background: rgba(186, 0, 27, 0.08);
  border: 1px solid rgba(186, 0, 27, 0.18);
}

.cem-finding-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.cem-finding-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.42;
}

.cem-note {
  border-left: 4px solid var(--accent);
  background: rgba(186, 0, 27, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   Selector Territorial Guiado
   ========================================================================== */
.search-widget-container {
  margin: 48px 0;
  position: relative;
}

.district-select-wrapper {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  padding: 20px 22px 18px;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.035);
}

.district-select-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.district-select {
  width: 100%;
  appearance: none;
  padding: 18px 52px 18px 18px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
  color: var(--ink-dark);
  background: #faf8f4;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  outline: none;
  cursor: text;
  transition: border 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.district-select:focus {
  border-color: rgba(186, 0, 27, 0.42);
  box-shadow: 0 0 0 4px rgba(186, 0, 27, 0.06);
  background-color: #ffffff;
}

.district-select-help {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.district-combobox {
  position: relative;
}

.district-combobox-control {
  position: relative;
}

.district-combobox-input {
  padding-right: 58px;
}

.district-combobox-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.district-combobox-toggle::before,
.district-combobox-toggle::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 8px;
  height: 2px;
  background: var(--ink-muted);
  transition: transform 0.2s ease;
}

.district-combobox-toggle::before {
  left: 10px;
  transform: rotate(45deg);
}

.district-combobox-toggle::after {
  right: 10px;
  transform: rotate(-45deg);
}

.district-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 320px;
  overflow-y: auto;
  z-index: 2200;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
}

.district-options.is-open {
  display: block;
}

.district-option {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.district-option:hover,
.district-option:focus {
  background: rgba(186, 0, 27, 0.055);
  outline: none;
}

.district-option-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 850;
  color: var(--ink-dark);
}

.district-option-meta {
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
}

.district-option-empty {
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-muted);
}

.search-input {
  width: 100%;
  padding: 24px 64px 24px 28px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-dark);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 20px 48px rgba(186, 0, 27, 0.06);
}

.search-clear-btn {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink-muted);
  display: none;
  outline: none;
}

.search-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 2000;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  padding: 8px 0;
}

.dropdown-item {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-dark);
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: rgba(186, 0, 27, 0.04);
  color: var(--accent);
}

.dropdown-placeholder {
  padding: 16px 24px;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* Ficha de Resultados Distritales (Glassmorphic) */
.district-report-card {
  margin-top: 24px;
  background: #ffffff;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: none;
  animation: card-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes card-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.report-header h3 {
  font-size: 28px;
  font-weight: 850;
  color: var(--ink-dark);
}

.report-subtitle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.report-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-red {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(186,0,27,0.18);
}

.badge-orange {
  background: rgba(204, 112, 0, 0.08);
  color: var(--warning);
  border: 1px solid rgba(204,112,0,0.15);
}

.badge-green {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(30,125,67,0.15);
}

.report-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.report-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 24px;
}

.report-section h4 {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.report-kpi-grid {
  display: flex;
  gap: 24px;
}

.report-kpi-card {
  flex: 1;
  background: var(--bg-paper);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.kpi-value-lg {
  display: block;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -0.04em;
  color: var(--ink-dark);
}

.report-data-card {
  background: var(--bg-paper);
  border-radius: 18px;
  padding: 28px;
}

.report-data-card .data-row {
  color: var(--ink-dark);
  font-size: 13px;
  margin-bottom: 10px;
}

.report-data-card .data-label {
  color: var(--ink-muted);
  font-weight: 600;
}

.report-data-card .progress-bar-track {
  background: rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Project Box y Cierre
   ========================================================================== */
.project-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
  margin-top: 64px;
}

.project-box h4 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 16px;
}

.project-box p {
  font-size: 13px;
  line-height: 1.5;
  color: #a0a0a0;
  margin-bottom: 12px;
}

.project-box p:last-child {
  margin-bottom: 0;
}

.methodology-disclosure {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.methodology-disclosure summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.methodology-disclosure summary::-webkit-details-marker {
  display: none;
}

.methodology-disclosure summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.methodology-disclosure[open] summary::after {
  content: "−";
  background: rgba(255, 255, 255, 0.08);
}

.methodology-content {
  margin-top: 18px;
  animation: card-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.methodology-step {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 18px;
}

.methodology-step-number {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  color: var(--accent-light);
}

.methodology-step h5 {
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.25;
  color: #ffffff;
}

.methodology-step p {
  font-size: 12px;
  color: #a7a7a7;
}

.methodology-note {
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: #bdbdbd !important;
}

/* Footer styling */
.main-footer {
  background-color: #050505;
  padding: 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-content {
  font-size: 12px;
  color: var(--paper-muted);
}

/* ==========================================================================
   Efectos de Revelado en Scroll (IntersectionObserver)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Diseño Responsivo (Adaptaciones móviles)
   ========================================================================== */
@media (max-width: 1024px) {
  .cem-pane {
    flex-direction: column;
  }

  .cem-field-card {
    width: 100%;
    flex-basis: auto;
  }

  .cem-findings-grid {
    grid-template-columns: 1fr;
  }

  .protagonist-layout {
    flex-direction: column;
  }

  .protagonist-carousel {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 360px;
    flex-basis: auto;
    max-height: none;
  }

  .story-carousel-frame {
    height: auto;
    min-height: 410px;
  }

  .story-slide {
    min-height: 410px;
  }

  .story-illustration {
    min-height: 300px;
  }

  .scrolly-container {
    flex-direction: column-reverse;
  }
  
  .scrolly-narrative {
    width: 100%;
    padding: 0 24px;
  }
  
  .scrolly-step {
    min-height: auto;
    padding: 50px 0;
  }
  
  .scrolly-map-sticky {
    position: relative;
    width: 100%;
    height: 480px;
    padding: 24px;
  }
  
  .epic-tooltip {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
    max-height: min(62vh, 360px);
    padding: 18px;
    overflow: hidden;
    transform: translateY(0);
  }

  .epic-tooltip.is-collapsed {
    transform: translateY(calc(100% + 24px)) !important;
    opacity: 0 !important;
    pointer-events: none;
  }

  .epic-tooltip .tooltip-body {
    max-height: calc(min(62vh, 360px) - 82px);
    overflow-y: auto;
    padding-right: 4px;
  }

  .tooltip-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .tooltip-header h4 {
    font-size: 17px;
    line-height: 1.08;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .story-section {
    padding: 60px 20px;
  }
  
  .metric-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .gender-pie-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .comparison-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .comparison-versus {
    padding: 10px 0;
  }
  
  .pane-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .pane-interview-quote {
    border-left: none;
    border-top: 3px solid var(--accent);
    padding-left: 0;
    padding-top: 16px;
  }

  .expert-insight-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
  .tabs-content {
    padding: 24px;
  }
  
  .tab-btn {
    padding: 12px 6px;
    font-size: 12px;
  }
  
  .report-kpi-grid {
    flex-direction: column;
    gap: 12px;
  }

  .methodology-grid {
    grid-template-columns: 1fr;
  }
}
