/* ==========================================================================
   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;
}

/* ==========================================================================
   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;
  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-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;
}

@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: hidden;
  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);
}

.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;
}

.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);
}

.pane-details {
  flex: 1;
}

.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;
}

/* ==========================================================================
   Buscador Territorial Inteligente (Buscador Predictivo)
   ========================================================================== */
.search-widget-container {
  margin: 48px 0;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.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;
}

/* 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) {
  .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 {
    bottom: 16px;
    right: 16px;
    width: calc(100% - 32px);
    max-width: 320px;
  }
}

@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;
  }
  
  .tabs-content {
    padding: 24px;
  }
  
  .tab-btn {
    padding: 12px 6px;
    font-size: 12px;
  }
  
  .report-kpi-grid {
    flex-direction: column;
    gap: 12px;
  }
}
