/**
 * GEOPOLITIKA MX - SITUATION ROOM STYLESHEET
 * Cyber-Tactical Command & Intelligence Center Design
 */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-void: #06090e;
  --bg-primary: #0a0f18;
  --bg-surface: #101726;
  --bg-surface-elevated: #162033;
  --bg-glass: rgba(16, 23, 38, 0.82);
  --bg-glass-heavy: rgba(10, 15, 24, 0.94);
  
  --border-subtle: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(0, 240, 255, 0.55);
  --border-active: #00f0ff;
  
  --text-primary: #ffffff;
  --text-secondary: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-accent: #00f0ff;

  --color-militar: #ef4444;
  --color-economico: #10b981;
  --color-politico: #3b82f6;
  --color-tecnologico: #a855f7;
  --color-social: #f59e0b;
  
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.35);
  --glow-red: 0 0 20px rgba(239, 68, 68, 0.35);
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.04) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Header Container */
.app-header {
  height: 64px;
  background: var(--bg-glass-heavy);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-radar {
  width: 34px;
  height: 34px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--border-accent);
  background: rgba(0, 240, 255, 0.05);
}

.radar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--border-active);
  animation: radarRotate 2.5s linear infinite;
}

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

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

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-title .badge-mx {
  background: linear-gradient(135deg, #00f0ff, #0284c7);
  color: #06090e;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a5f3fc;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

/* Header Telemetry */
.header-telemetry {
  display: flex;
  align-items: center;
  gap: 20px;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.35;
}

.telemetry-label {
  color: #cbd5e1;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.telemetry-value {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.22) 0%, rgba(6, 78, 59, 0.6) 100%);
  border: 1.5px solid #10b981;
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

button,
.btn-tactical,
.pill-btn,
.risk-pill,
.btn-ctrl {
  touch-action: manipulation;
}

.btn-tactical {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(16, 23, 38, 0.88) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), inset 0 -2px 3px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.btn-tactical svg {
  width: 16px;
  height: 16px;
}

.btn-tactical:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(22, 33, 56, 0.95) 100%);
  border-color: #00f0ff;
  border-top-color: #ffffff;
  color: #00f0ff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 16px rgba(0, 240, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.btn-tactical.btn-primary {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.35) 0%, rgba(2, 132, 199, 0.88) 100%);
  border: 1.5px solid #00f0ff;
  border-top: 1.5px solid #ffffff;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 18px rgba(0, 240, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.btn-tactical.btn-primary:hover {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.5) 0%, rgba(2, 132, 199, 1) 100%);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.7);
}

/* Sub-Header Fields Bar */
.fields-toolbar {
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.85) 0%, rgba(10, 15, 24, 0.95) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.fields-pills-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.field-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(13, 20, 34, 0.88) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.32), inset 0 -2px 3px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 8px 18px;
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.field-pill svg {
  width: 15px;
  height: 15px;
}

.field-pill:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(20, 32, 54, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 6px 16px rgba(0, 0, 0, 0.5);
}

.field-pill[data-field="all"].active {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.35) 0%, rgba(2, 132, 199, 0.85) 100%);
  border: 1.5px solid #00f0ff;
  border-top: 1.5px solid #ffffff;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 18px rgba(0, 240, 255, 0.5), 0 4px 12px rgba(0,0,0,0.5);
}

.field-pill[data-field="militar"] { color: #fca5a5; }
.field-pill[data-field="militar"].active {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.45) 0%, rgba(153, 27, 27, 0.9) 100%);
  border: 1.5px solid #ef4444;
  border-top: 1.5px solid #fecaca;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 0 18px rgba(239, 68, 68, 0.55), 0 4px 12px rgba(0,0,0,0.5);
}

.field-pill[data-field="economico"] { color: #6ee7b7; }
.field-pill[data-field="economico"].active {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.45) 0%, rgba(6, 95, 70, 0.9) 100%);
  border: 1.5px solid #10b981;
  border-top: 1.5px solid #a7f3d0;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 0 18px rgba(16, 185, 129, 0.55), 0 4px 12px rgba(0,0,0,0.5);
}

.field-pill[data-field="politico"] { color: #93c5fd; }
.field-pill[data-field="politico"].active {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.45) 0%, rgba(30, 64, 175, 0.9) 100%);
  border: 1.5px solid #3b82f6;
  border-top: 1.5px solid #bfdbfe;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 0 18px rgba(59, 130, 246, 0.55), 0 4px 12px rgba(0,0,0,0.5);
}

.field-pill[data-field="tecnologico"] { color: #e9d5ff; }
.field-pill[data-field="tecnologico"].active {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.45) 0%, rgba(107, 33, 168, 0.9) 100%);
  border: 1.5px solid #a855f7;
  border-top: 1.5px solid #f3e8ff;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 0 18px rgba(168, 85, 247, 0.55), 0 4px 12px rgba(0,0,0,0.5);
}

.field-pill[data-field="social"] { color: #fde68a; }
.field-pill[data-field="social"].active {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.45) 0%, rgba(180, 83, 9, 0.9) 100%);
  border: 1.5px solid #f59e0b;
  border-top: 1.5px solid #fef3c7;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 0 18px rgba(245, 158, 11, 0.55), 0 4px 12px rgba(0,0,0,0.5);
}

.field-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
}

.stats-summary strong {
  color: #ffffff;
  font-size: 0.88rem;
}

/* ================= BARRA DE NIVELES DE RIESGO Y CLASIFICACIÓN ================= */
.risk-levels-toolbar {
  background: linear-gradient(180deg, rgba(10, 16, 26, 0.95) 0%, rgba(6, 9, 15, 0.98) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.risk-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.risk-levels-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}

.risk-label-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  display: inline-block;
}

.risk-pills-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.risk-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(12, 18, 30, 0.92) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.risk-pill:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(20, 30, 48, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.risk-pill[data-risk="all"].active {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.32) 0%, rgba(2, 132, 199, 0.75) 100%);
  border: 1.5px solid #00f0ff;
  border-top: 1.5px solid #ffffff;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 14px rgba(0, 240, 255, 0.5);
}

.risk-pill[data-risk="Crítico"] { color: #fca5a5; }
.risk-pill[data-risk="Crítico"].active {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.4) 0%, rgba(153, 27, 27, 0.85) 100%);
  border: 1.5px solid #ef4444;
  border-top: 1.5px solid #fecaca;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 18px rgba(239, 68, 68, 0.65);
}

.risk-pill[data-risk="Alto"] { color: #fed7aa; }
.risk-pill[data-risk="Alto"].active {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.4) 0%, rgba(194, 65, 12, 0.85) 100%);
  border: 1.5px solid #f97316;
  border-top: 1.5px solid #ffedd5;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 16px rgba(249, 115, 22, 0.6);
}

.risk-pill[data-risk="Moderado Alto"] { color: #fef08a; }
.risk-pill[data-risk="Moderado Alto"].active {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.4) 0%, rgba(180, 83, 9, 0.85) 100%);
  border: 1.5px solid #f59e0b;
  border-top: 1.5px solid #fef3c7;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 16px rgba(245, 158, 11, 0.55);
}

.risk-pill[data-risk="Moderado"] { color: #bfdbfe; }
.risk-pill[data-risk="Moderado"].active {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.4) 0%, rgba(29, 78, 216, 0.85) 100%);
  border: 1.5px solid #3b82f6;
  border-top: 1.5px solid #dbeafe;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 16px rgba(59, 130, 246, 0.55);
}

.risk-pill[data-risk="Bajo"] { color: #a7f3d0; }
.risk-pill[data-risk="Bajo"].active {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.4) 0%, rgba(4, 120, 87, 0.85) 100%);
  border: 1.5px solid #10b981;
  border-top: 1.5px solid #d1fae5;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 16px rgba(16, 185, 129, 0.55);
}

.risk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.risk-pulse-crit {
  animation: pulseRed 1.6s infinite;
}

.risk-count {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
}

.risk-scale-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
}

.scale-legend-title {
  letter-spacing: 0.6px;
}

.defcon-gauge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 6px;
  border-radius: 4px;
}

.gauge-step {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.4px;
}

.gauge-step.crit {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
}
.gauge-step.high {
  background: rgba(249, 115, 22, 0.25);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.5);
}
.gauge-step.med-high {
  background: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.5);
}
.gauge-step.med {
  background: rgba(59, 130, 246, 0.25);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.5);
}
.gauge-step.low {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

/* Main Dashboard Workspace */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  height: calc(100vh - 164px);
  overflow: hidden;
}

/* Left Section: Map & Anchor Controller */
.map-workspace {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid var(--border-subtle);
  background: #05070a;
}

.map-viewport {
  flex: 1;
  width: 100%;
  position: relative;
  background: #080c14;
}

#leafletMap {
  width: 100%;
  height: 100%;
  background: #080c14;
}

/* Custom Leaflet Dark overrides & Optimizaciones Nativas Safari macOS/iOS */
.leaflet-container {
  background-color: #06090e !important;
}
.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-tile-container {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.leaflet-tile {
  filter: brightness(0.85) contrast(1.15) !important;
}
.leaflet-control-zoom {
  border: 1px solid var(--border-subtle) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  background: var(--bg-surface) !important;
}
.leaflet-control-zoom a {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--bg-surface-elevated) !important;
  color: var(--text-accent) !important;
}
.leaflet-control-attribution {
  background: rgba(10, 15, 24, 0.8) !important;
  color: var(--text-muted) !important;
  font-family: var(--font-mono);
  font-size: 0.6rem !important;
}

/* Tactical Map Overlay HUD */
.map-hud-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.hud-card {
  pointer-events: auto;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--border-active);
  border-radius: 4px;
  padding: 10px 14px;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hud-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: var(--text-accent);
  text-transform: uppercase;
}

.hud-coordinates {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.hud-country-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-country-region {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Compass HUD in top right - Separado del control de zoom */
.compass-hud {
  position: absolute;
  top: 16px;
  right: 68px;
  z-index: 500;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.compass-reticle {
  width: 18px;
  height: 18px;
  border: 1px dashed var(--border-accent);
  border-radius: 50%;
  position: relative;
}
.compass-reticle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 8px;
  width: 2px;
  height: 5px;
  background: #ef4444;
}

/* Audio & Narration SITREP Control Deck */
.audio-control-deck {
  height: 110px;
  background: linear-gradient(180deg, rgba(16, 23, 38, 0.95) 0%, rgba(10, 14, 24, 0.98) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1.5px solid rgba(255, 255, 255, 0.16);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 500;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.45);
}

.playback-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ctrl {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(20, 29, 48, 0.9) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), inset 0 -2px 3px rgba(0, 0, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ctrl svg {
  width: 18px;
  height: 18px;
}

.btn-ctrl:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(26, 38, 64, 0.95) 100%);
  border-color: #00f0ff;
  border-top-color: #ffffff;
  color: #00f0ff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 14px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ctrl.btn-rewind-sitrep {
  color: #38bdf8;
}

.btn-ctrl.btn-rewind-sitrep:hover {
  color: #00f0ff;
  border-color: #00f0ff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 14px rgba(0, 240, 255, 0.5);
}

.btn-ctrl.btn-stop-sitrep {
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.btn-ctrl.btn-stop-sitrep:hover {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.35) 0%, rgba(153, 27, 27, 0.95) 100%);
  border-color: #ef4444;
  border-top-color: #fca5a5;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 16px rgba(239, 68, 68, 0.6);
}

.btn-play-sitrep {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #00f0ff 0%, #0284c7 100%);
  color: #06090e;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-play-sitrep svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn-play-sitrep:hover {
  transform: scale(1.08);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 28px rgba(0, 240, 255, 0.7);
}

.btn-play-sitrep.is-playing {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 0 24px rgba(239, 68, 68, 0.6);
}

/* Audio Visualizer & Waveform */
.audio-visualizer-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.audio-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.audio-status-label {
  color: #00f0ff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.voice-wave-canvas {
  width: 100%;
  height: 36px;
  background: rgba(6, 9, 14, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Voice Settings Options */
.voice-deck-options {
  display: flex;
  align-items: center;
  gap: 16px;
}

.select-tactical {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(20, 29, 48, 0.9) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-top: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.4);
  max-width: 250px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.select-tactical:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.select-tactical:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
}

.select-tactical option {
  background-color: #ffffff !important;
  color: #000000 !important;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 14px;
}

.select-tactical option:checked {
  background-color: #e0f2fe !important;
  color: #0284c7 !important;
  font-weight: 800;
}

.select-tactical option:hover {
  background-color: #f1f5f9 !important;
  color: #000000 !important;
}

.toggle-sfx {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.toggle-sfx input {
  accent-color: #00f0ff;
  cursor: pointer;
}

/* Right Section: Intelligence Feed */
.intelligence-feed-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-surface);
  border-left: 1.5px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.feed-header {
  padding: 16px 20px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.95) 0%, rgba(10, 15, 24, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feed-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.feed-title-badge {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.22) 0%, rgba(2, 132, 199, 0.4) 100%);
  color: #00f0ff;
  border: 1.5px solid #00f0ff;
  border-top: 1.5px solid #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 10px rgba(0, 240, 255, 0.25);
  letter-spacing: 0.6px;
}

.feed-search-box {
  padding: 12px 18px;
  background: var(--bg-void);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.feed-search-input {
  width: 100%;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.92) 0%, rgba(18, 27, 44, 0.92) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s;
}

.feed-search-input:focus {
  border-color: #00f0ff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 240, 255, 0.4);
}

.feed-list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.65) rgba(6, 10, 18, 0.85);
}

/* Scrollbar táctica de alta visibilidad para la barra de noticias */
.feed-list-scroll::-webkit-scrollbar {
  width: 8px;
}
.feed-list-scroll::-webkit-scrollbar-track {
  background: rgba(6, 10, 18, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.feed-list-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f0ff 0%, #0284c7 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}
.feed-list-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #38bdf8 0%, #00f0ff 100%);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.85);
}

/* Bulletin Intelligence Card */
.bulletin-card {
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(22, 33, 54, 0.92) 0%, rgba(13, 19, 32, 0.98) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-top: 1.5px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* Bordes y Estética por Campo del Poder */
.bulletin-card[data-field="militar"] {
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  border-left: 5px solid #ef4444;
  border-top: 1.5px solid rgba(254, 202, 202, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(239, 68, 68, 0.15);
}
.bulletin-card[data-field="militar"]:hover {
  border-color: #ef4444;
  border-top-color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 0 20px rgba(239, 68, 68, 0.35), 0 8px 24px rgba(0, 0, 0, 0.7);
}
.bulletin-card[data-field="militar"].active {
  border: 2px solid #ef4444;
  border-left: 6px solid #ef4444;
  border-top: 2px solid #ffffff;
  background: linear-gradient(180deg, rgba(60, 20, 25, 0.95) 0%, rgba(20, 8, 12, 0.98) 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 28px rgba(239, 68, 68, 0.5), 0 8px 24px rgba(0, 0, 0, 0.7);
}

.bulletin-card[data-field="economico"] {
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-left: 5px solid #10b981;
  border-top: 1.5px solid rgba(167, 243, 208, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(16, 185, 129, 0.15);
}
.bulletin-card[data-field="economico"]:hover {
  border-color: #10b981;
  border-top-color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 0 20px rgba(16, 185, 129, 0.35), 0 8px 24px rgba(0, 0, 0, 0.7);
}
.bulletin-card[data-field="economico"].active {
  border: 2px solid #10b981;
  border-left: 6px solid #10b981;
  border-top: 2px solid #ffffff;
  background: linear-gradient(180deg, rgba(10, 48, 36, 0.95) 0%, rgba(6, 22, 16, 0.98) 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 28px rgba(16, 185, 129, 0.5), 0 8px 24px rgba(0, 0, 0, 0.7);
}

.bulletin-card[data-field="politico"] {
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  border-left: 5px solid #3b82f6;
  border-top: 1.5px solid rgba(191, 219, 254, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(59, 130, 246, 0.15);
}
.bulletin-card[data-field="politico"]:hover {
  border-color: #3b82f6;
  border-top-color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 0 20px rgba(59, 130, 246, 0.35), 0 8px 24px rgba(0, 0, 0, 0.7);
}
.bulletin-card[data-field="politico"].active {
  border: 2px solid #3b82f6;
  border-left: 6px solid #3b82f6;
  border-top: 2px solid #ffffff;
  background: linear-gradient(180deg, rgba(16, 38, 75, 0.95) 0%, rgba(8, 20, 38, 0.98) 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 28px rgba(59, 130, 246, 0.5), 0 8px 24px rgba(0, 0, 0, 0.7);
}

.bulletin-card[data-field="tecnologico"] {
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-left: 5px solid #a855f7;
  border-top: 1.5px solid rgba(233, 213, 255, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(168, 85, 247, 0.15);
}
.bulletin-card[data-field="tecnologico"]:hover {
  border-color: #a855f7;
  border-top-color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 0 20px rgba(168, 85, 247, 0.35), 0 8px 24px rgba(0, 0, 0, 0.7);
}
.bulletin-card[data-field="tecnologico"].active {
  border: 2px solid #a855f7;
  border-left: 6px solid #a855f7;
  border-top: 2px solid #ffffff;
  background: linear-gradient(180deg, rgba(42, 16, 75, 0.95) 0%, rgba(20, 8, 38, 0.98) 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 28px rgba(168, 85, 247, 0.5), 0 8px 24px rgba(0, 0, 0, 0.7);
}

.bulletin-card[data-field="social"] {
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-left: 5px solid #f59e0b;
  border-top: 1.5px solid rgba(254, 243, 199, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(245, 158, 11, 0.15);
}
.bulletin-card[data-field="social"]:hover {
  border-color: #f59e0b;
  border-top-color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 0 20px rgba(245, 158, 11, 0.35), 0 8px 24px rgba(0, 0, 0, 0.7);
}
.bulletin-card[data-field="social"].active {
  border: 2px solid #f59e0b;
  border-left: 6px solid #f59e0b;
  border-top: 2px solid #ffffff;
  background: linear-gradient(180deg, rgba(60, 40, 10, 0.95) 0%, rgba(26, 16, 4, 0.98) 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 28px rgba(245, 158, 11, 0.5), 0 8px 24px rgba(0, 0, 0, 0.7);
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.field-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.tension-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 1.5px solid currentColor;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
  margin-top: 6px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  word-break: break-word;
  overflow: visible;
  height: auto;
  min-height: auto;
  text-align: justify;
  text-justify: inter-word;
}

.card-summary {
  font-size: 0.92rem;
  color: #f1f5f9;
  line-height: 1.65;
  margin-bottom: 12px;
  font-weight: 400;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.card-country-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.country-chip {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.16) 0%, rgba(0, 100, 140, 0.35) 100%);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  color: #00f0ff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
  letter-spacing: 0.4px;
}

.card-analysis-box {
  background: rgba(6, 9, 14, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.68;
  display: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  text-align: justify;
  text-justify: inter-word;
}

.bulletin-card.active .card-analysis-box {
  display: block;
}

.analysis-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #00f0ff;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.analysis-text {
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 400;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.implications-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #f59e0b;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.implications-text {
  color: #fef08a;
  font-weight: 500;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* Modals (Scheduler & Export) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 14, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  width: 90%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}
.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-help {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cron-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cron-radio-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(16, 23, 38, 0.9) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 11px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cron-radio-card:hover {
  border-color: #00f0ff;
  border-top-color: #ffffff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 12px rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
}

.cron-radio-card.selected {
  border: 1.5px solid #00f0ff;
  border-top: 1.5px solid #ffffff;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.25) 0%, rgba(2, 132, 199, 0.45) 100%);
  color: #00f0ff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 16px rgba(0, 240, 255, 0.4);
}

/* Input de Hora Programada con espacio amplio para AM / PM / a. m. / p. m. */
.scheduled-time-input {
  width: 200px;
  min-width: 195px;
  height: 42px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  background: #04070c;
  color: #00f0ff;
  border: 1.5px solid var(--border-accent);
  border-radius: 6px;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 240, 255, 0.18);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.scheduled-time-input:focus {
  border-color: #00f0ff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 240, 255, 0.45);
}

.scheduled-time-input::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) saturate(5) hue-rotate(140deg);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.scheduled-time-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Print/Presentation Mode */
@media print {
  .app-header, .fields-toolbar, .risk-levels-toolbar, .audio-control-deck, .feed-search-box {
    display: none !important;
  }
  .dashboard-grid {
    display: block;
    height: auto;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}

/* ================= RESPONSIVE & ADAPTIVE INTELLIGENCE ================= */

/* Pantallas Medianas / Laptops (<= 1400px) */
@media (max-width: 1400px) {
  .dashboard-grid {
    grid-template-columns: 1fr 390px;
  }
  .btn-tactical {
    padding: 7px 12px;
    font-size: 0.74rem;
    gap: 6px;
  }
  .stats-summary {
    gap: 12px;
    font-size: 0.76rem;
  }
}

/* Pantallas Compactas / Tablets Horizontales (<= 1200px) */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr 360px;
  }
  .fields-toolbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 16px;
  }
  .fields-pills-group {
    flex: 1;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .fields-pills-group::-webkit-scrollbar {
    display: none;
  }
  .field-pill {
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 0.74rem;
  }
  .risk-levels-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 16px;
  }
  .risk-pills-group {
    flex: 1;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .risk-pills-group::-webkit-scrollbar {
    display: none;
  }
  .risk-pill {
    white-space: nowrap;
  }
  .risk-scale-legend {
    display: none;
  }
  .brand-subtitle {
    font-size: 0.65rem;
  }
}

/* Tablets Verticales y Split-Screen (<= 1024px) */
@media (max-width: 1024px) {
  body {
    overflow-y: auto !important;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto !important;
    overflow: visible;
  }
  .map-workspace {
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    height: 520px;
    min-height: 440px;
  }
  .intelligence-feed-panel {
    border-left: none;
    height: 600px;
    min-height: 500px;
  }
}

/* Móviles y Pantallas Angostas (<= 768px) */
@media (max-width: 768px) {
  .app-header {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }
  .brand-section {
    justify-content: flex-start;
  }
  .header-telemetry {
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .header-actions .btn-tactical {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .audio-control-deck {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }
  .playback-controls {
    justify-content: center;
    width: 100%;
  }
  .waveform-container {
    width: 100%;
  }
  .voice-deck-options {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .compass-hud {
    right: 56px;
    font-size: 0.6rem;
    padding: 6px 8px;
  }
  .map-hud-overlay {
    top: 10px;
    left: 10px;
  }
  .hud-card {
    min-width: 180px;
    padding: 8px 10px;
  }
}

/* Pantallas con altura reducida (Laptops 1366x768, ventanas restauradas) */
@media (max-height: 740px) {
  body {
    overflow-y: auto !important;
  }
  .dashboard-grid {
    min-height: 560px;
    height: auto !important;
  }
}

/* =========================================================================
   EFECTO ESTROBOSCÓPICO TÁCTICO: ALERTA ROJA BREAKING EN TIEMPO REAL
   ========================================================================= */
@keyframes tacticalStrobePulse {
  0% {
    box-shadow: inset 0 0 0px rgba(239, 68, 68, 0);
  }
  20% {
    box-shadow: inset 0 0 70px rgba(239, 68, 68, 0.75), inset 0 0 140px rgba(220, 38, 38, 0.5);
  }
  40% {
    box-shadow: inset 0 0 25px rgba(239, 68, 68, 0.25);
  }
  60% {
    box-shadow: inset 0 0 90px rgba(239, 68, 68, 0.85), inset 0 0 160px rgba(220, 38, 38, 0.65);
  }
  80% {
    box-shadow: inset 0 0 35px rgba(239, 68, 68, 0.3);
  }
  100% {
    box-shadow: inset 0 0 0px rgba(239, 68, 68, 0);
  }
}

.strobe-alert-active {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  animation: tacticalStrobePulse 0.9s infinite ease-in-out;
}

/* HUD Banner Desplegable de Alerta Breaking */
.breaking-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-140%);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.95) 0%, rgba(127, 29, 29, 0.98) 100%);
  border: 1.5px solid #ef4444;
  border-top: 1.5px solid #fecaca;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 10px 30px rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  padding: 12px 22px;
  color: #ffffff;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 100000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  max-width: 92vw;
  width: auto;
}

.breaking-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.breaking-badge {
  background: #ffffff;
  color: #b91c1c;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.breaking-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.breaking-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}

.breaking-desc {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #fecaca;
  max-width: 600px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breaking-close-btn {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.breaking-close-btn:hover {
  background: #ffffff;
  color: #b91c1c;
}

/* =========================================================================
   CLUSTERIZACIÓN DE MAPAS TÁCTICA & SPIDERFY
   ========================================================================= */
.tactical-cluster-badge {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.9) 0%, rgba(153, 27, 27, 0.95) 100%);
  border: 2px solid #ef4444;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.84rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.tactical-cluster-badge:hover {
  transform: scale(1.18);
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.9), inset 0 1px 2px #ffffff;
}

.tactical-cluster-badge::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 68, 68, 0.6);
  animation: beaconPulse 2s infinite ease-out;
}

.tactical-cluster-badge.spiderfy-active {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.92) 0%, rgba(2, 132, 199, 0.95) 100%) !important;
  border-color: #00f0ff !important;
  border-top-color: #ffffff !important;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.9), inset 0 1px 2px #ffffff !important;
}

.tactical-cluster-badge.spiderfy-active::after {
  border-color: rgba(0, 240, 255, 0.75) !important;
  animation: beaconPulse 1.4s infinite ease-out !important;
}

/* Spiderfy Radial Nodes */
.spiderfy-node.contracting {
  transform: translate(-50%, -50%) scale(0.15) !important;
  opacity: 0 !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-in !important;
}
.spiderfy-node-wrapper {
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  z-index: 1000 !important;
}

.spiderfy-node {
  background: rgba(6, 10, 18, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid #00f0ff;
  border-radius: 20px;
  padding: 5px 12px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 235px;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease;
  pointer-events: auto;
  user-select: none;
}

.spiderfy-node .spiderfy-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
  display: inline-block;
  vertical-align: middle;
}

.spiderfy-node:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(16, 23, 38, 0.98);
  border-color: #ffffff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.8), inset 0 1px 2px #ffffff;
  z-index: 1010;
}

/* ================= TRADUCCIÓN TÁCTICA AL ESPAÑOL NATIVO ================= */
.tactical-trans-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}

.card-original-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #64748b;
  margin-top: -4px;
  margin-bottom: 8px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  background: rgba(2, 6, 23, 0.4);
  padding: 4px 8px;
  border-left: 2px solid #334155;
  border-radius: 0 4px 4px 0;
}

.card-original-title span {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.65rem;
  margin-right: 4px;
}

/* ================= SALA PREDICTIVA & ESCENARIOS WHAT-IF ================= */
.btn-card-predictive {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(59, 130, 246, 0.12) 100%);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 6px;
  color: #f3e8ff;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.15);
}

.btn-card-predictive:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(59, 130, 246, 0.28) 100%);
  border-color: #c084fc;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.45);
  transform: translateY(-1px);
}

.predictive-engine-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #a855f7;
  color: #e9d5ff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   MODALES TÁCTICOS AMPLIADOS (90% PANTALLA) & ALTO IMPACTO VISUAL
   ========================================================================== */

.modal-dialog-tactical-large {
  width: 92vw !important;
  max-width: 1650px !important;
  height: 90vh !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.98) 0%, rgba(4, 7, 13, 0.99) 100%) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.15) !important;
  overflow: hidden !important;
}

.modal-dialog-tactical-large.predictive-dialog {
  border-color: rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 45px rgba(168, 85, 247, 0.22) !important;
}

.modal-dialog-tactical-large .modal-header {
  flex-shrink: 0;
  padding: 18px 28px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 16, 28, 0.95);
}

.modal-dialog-tactical-large .modal-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
}

.modal-dialog-tactical-large .modal-footer {
  flex-shrink: 0;
  padding: 16px 28px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 28, 0.95);
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

/* Contenedor del Cuerpo con Scrollbar Fluida Táctica */
.modal-dialog-tactical-large .modal-body {
  flex: 1 1 auto;
  overflow-y: auto !important;
  padding: 24px 32px !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.5) rgba(6, 10, 18, 0.85);
  overscroll-behavior: contain;
}

.modal-dialog-tactical-large.predictive-dialog .modal-body {
  scrollbar-color: rgba(168, 85, 247, 0.6) rgba(6, 10, 18, 0.85);
}

.modal-dialog-tactical-large .modal-body::-webkit-scrollbar {
  width: 9px;
}

.modal-dialog-tactical-large .modal-body::-webkit-scrollbar-track {
  background: rgba(6, 10, 18, 0.85);
  border-radius: 4px;
}

.modal-dialog-tactical-large .modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f0ff 0%, #0284c7 100%);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.modal-dialog-tactical-large.predictive-dialog .modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c084fc 0%, #7c3aed 100%);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

/* Iconos SVG Tácticos & Animaciones */
.tactical-svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

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

.tactical-spin {
  animation: tacticalSpin 1.4s linear infinite;
}

/* ==========================================================================
   ESTILOS DE SALA DE INTELIGENCIA PREDICTIVA & WHAT-IF
   ========================================================================== */

.predictive-epicenter-box {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.12) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  border-left: 5px solid #a855f7;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.predictive-epicenter-tag {
  color: #c084fc;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.predictive-epicenter-title {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 10px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.predictive-epicenter-summary {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.whatif-section-title {
  font-family: var(--font-display);
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  margin: 18px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(168, 85, 247, 0.3);
  letter-spacing: 0.6px;
}

.whatif-section-title svg {
  filter: drop-shadow(0 0 6px currentColor);
}

.whatif-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 1050px) {
  .whatif-scenarios-grid {
    grid-template-columns: 1fr !important;
  }
}

.whatif-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(10, 15, 26, 0.96) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.whatif-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.whatif-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.whatif-card-prob-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid currentColor;
}

.whatif-card-title {
  font-family: var(--font-display);
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.whatif-card-body {
  font-size: 0.94rem !important;
  line-height: 1.72 !important;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whatif-card-trigger {
  color: #94a3b8;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.whatif-card-trigger strong {
  color: #f8fafc;
  font-size: 0.96rem;
}

.whatif-card-projection {
  color: #e2e8f0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  background: rgba(0, 0, 0, 0.28);
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid currentColor;
}

/* Vector de Impacto Soberano: México */
.mexico-impact-container {
  background: linear-gradient(180deg, rgba(16, 28, 44, 0.92) 0%, rgba(6, 14, 24, 0.98) 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
  border-left: 6px solid #10b981 !important;
  border-radius: 10px !important;
  padding: 22px 26px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.mexico-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mexico-impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: #34d399 !important;
  letter-spacing: 0.8px;
}

.mexico-summary-text {
  font-size: 1rem !important;
  color: #f1f5f9 !important;
  line-height: 1.75 !important;
  margin: 12px 0 18px 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.mexico-vectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

@media (max-width: 950px) {
  .mexico-vectors-grid {
    grid-template-columns: 1fr !important;
  }
}

.mexico-vector-box {
  background: rgba(4, 9, 18, 0.7) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.22) !important;
  border-radius: 8px !important;
  padding: 14px 18px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.mexico-vector-box:hover {
  border-color: #00f0ff !important;
}

.mexico-vector-label {
  font-family: var(--font-mono);
  font-size: 0.85rem !important;
  color: #00f0ff !important;
  font-weight: 800 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.mexico-vector-text {
  font-size: 0.94rem !important;
  color: #e2e8f0 !important;
  line-height: 1.7 !important;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Matriz Multidimensional de Vectores */
.power-vectors-breakdown-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 14px !important;
  margin-top: 14px !important;
}

@media (max-width: 1100px) {
  .power-vectors-breakdown-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.power-vector-mini-card {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.power-vector-mini-name {
  font-family: var(--font-mono);
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.6px;
}

.power-vector-mini-text {
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  color: #cbd5e1 !important;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ==========================================================================
   ESTILOS DE INFORME EJECUTIVO DE SITUACIÓN (SITREP)
   ========================================================================== */

.sitrep-header-banner {
  border-bottom: 2px solid #00f0ff;
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.sitrep-document-title {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  margin-bottom: 8px;
  letter-spacing: 0.6px;
}

.sitrep-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem !important;
  margin-top: 6px;
}

.sitrep-vectors-distribution {
  margin-bottom: 24px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitrep-vectors-title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: #00f0ff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sitrep-vectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .sitrep-vectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sitrep-vector-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sitrep-bulletin-card {
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid #00f0ff;
  background: rgba(10, 16, 26, 0.75);
  border-radius: 8px;
  padding: 20px 24px;
  transition: all 0.2s ease;
}

.sitrep-bulletin-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(12, 20, 34, 0.9);
}

.sitrep-bulletin-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  margin-bottom: 8px;
  line-height: 1.45;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.sitrep-bulletin-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #00f0ff;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sitrep-bulletin-summary {
  color: #cbd5e1;
  font-size: 1rem !important;
  line-height: 1.72 !important;
  margin-bottom: 12px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.sitrep-bulletin-analysis {
  color: #94a3b8;
  font-size: 0.96rem !important;
  line-height: 1.72 !important;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  border-radius: 6px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.sitrep-bulletin-implications {
  color: #fef08a;
  font-size: 0.96rem !important;
  line-height: 1.72 !important;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 12px 16px;
  border-radius: 6px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

