/* ==========================================================================
   Tablero Blanco - Arregla Argentina (Estudio García)
   Diseño Luminoso, Controles Superiores, Barras Verticales de 10 Celdas y Termómetro Social
   ========================================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --brand-primary: #0284c7;
  --brand-dark: #0369a1;
  --brand-light: #e0f2fe;
  
  --cell-ok-bg: #ffffff;
  --cell-ok-border: #0ea5e9;
  --cell-ok-glow: 0 0 8px rgba(14, 165, 233, 0.45);
  
  --cell-warn-bg: #facc15;
  --cell-warn-border: #eab308;
  --cell-warn-glow: 0 0 8px rgba(234, 179, 8, 0.45);
  
  --cell-danger-bg: #ef4444;
  --cell-danger-border: #dc2626;
  --cell-danger-glow: 0 0 8px rgba(239, 68, 68, 0.5);
  
  --cell-off-bg: #f1f5f9;
  --cell-off-border: #e2e8f0;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* --------------------------------------------------------------------------
   Cuadro de Diagnóstico Causa-Efecto (Letra Monospace / Máquina de escribir)
   -------------------------------------------------------------------------- */
.diagnostic-console-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
}

.console-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-body {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #334155;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.console-body .chain-item {
  margin-bottom: 6px;
}

.console-body .chain-item:last-child {
  margin-bottom: 0;
}

.console-body strong {
  color: #0f172a;
}

.console-body .tag-pos {
  color: #16a34a;
  font-weight: 700;
}

.console-body .tag-neg {
  color: #dc2626;
  font-weight: 700;
}

/* Botón Foquito (💡 Solución / Consejo Experto) */
.btn-foquito {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fde047;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 5px rgba(234, 179, 8, 0.2);
  transition: all 0.2s ease;
}

.btn-foquito:hover {
  background: #fef08a;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.35);
}

.btn-foquito i {
  color: #eab308;
  font-size: 0.9rem;
  animation: foquitoGlow 1.8s infinite alternate ease-in-out;
}

@keyframes foquitoGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(234, 179, 8, 0.5)); }
  100% { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.9)); }
}

/* Modal / Drawer de Solución Sugerida */
.solution-drawer {
  background: #ffffff;
  border: 1px solid #fde047;
  border-left: 4px solid #eab308;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #1e293b;
  display: none;
}

.solution-drawer.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.solution-drawer h4 {
  font-size: 0.86rem;
  font-weight: 800;
  color: #854d0e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.solution-drawer ul {
  padding-left: 18px;
  line-height: 1.5;
}

.solution-drawer li {
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Tooltip / Popover Informativo Flotante (¿Qué es?, ¿Qué hace?, En otros países)
   -------------------------------------------------------------------------- */
.rich-info-popover {
  position: absolute;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 320px;
  max-width: 90vw;
  box-shadow: 0 12px 28px rgba(0,0,0,0.14), 0 4px 10px rgba(0,0,0,0.06);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rich-info-popover.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.popover-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.popover-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
}

.popover-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  padding: 1px 6px;
  border-radius: 4px;
}

.popover-section {
  margin-bottom: 8px;
}

.popover-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.popover-section-text {
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.4;
}

.popover-benchmark-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 0.74rem;
  color: #1e293b;
}

.popover-benchmark-box strong {
  color: #0f172a;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Top Navigation Header
   -------------------------------------------------------------------------- */
.tablero-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  gap: 12px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 32px;
  height: 32px;
  background: var(--brand-light);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.brand-logo-wrap svg {
  width: 22px;
  height: 22px;
}

.brand-info h1 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.badge-version {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-sub a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
}

.brand-sub a:hover {
  text-decoration: underline;
}

/* Header Middle: Preset, Dificultad, Mes, Botones */
.header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.btn-pill-group {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.btn-pill {
  border: none;
  background: transparent;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-pill.active {
  background: var(--bg-card);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.preset-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-sm);
  height: 28px;
}

.month-indicator {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  white-space: nowrap;
}

.btn-primary-action,
#btn-next-month {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border: 1px solid #b91c1c;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  animation: pulseFadeRed 1.8s infinite alternate ease-in-out;
  transition: all 0.2s ease;
}

@keyframes pulseFadeRed {
  0% {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
    opacity: 0.88;
    transform: scale(0.99);
  }
  50% {
    opacity: 1;
    transform: scale(1.01);
  }
  100% {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.75);
    opacity: 1;
    transform: scale(1.02);
  }
}

.btn-primary-action:hover,
#btn-next-month:hover {
  animation-play-state: paused;
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.85);
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.btn-secondary-action {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

#btn-reset {
  width: 28px;
  height: 28px;
  padding: 0;
  justify-content: center;
}

.btn-secondary-action:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}

.btn-view-toggle {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-view-toggle:hover {
  background: #dbeafe;
}

/* --------------------------------------------------------------------------
   Header Right: Termómetro Social Lúdico
   -------------------------------------------------------------------------- */
.social-thermometer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-width: 190px;
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}

.thermo-device {
  display: flex;
  align-items: flex-end;
  position: relative;
  height: 38px;
  width: 16px;
}

.thermo-glass {
  position: absolute;
  bottom: 0;
  left: 3px;
  width: 10px;
  height: 34px;
  background: #e2e8f0;
  border: 1.5px solid #94a3b8;
  border-radius: 6px 6px 8px 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
}

.thermo-mercury {
  width: 100%;
  height: 45%;
  background: linear-gradient(to top, #ef4444, #f59e0b);
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease;
  border-radius: 0 0 4px 4px;
}

.thermo-bulb {
  position: absolute;
  bottom: -2px;
  left: 1px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border: 1.5px solid #94a3b8;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
  transition: background 0.4s ease;
}

.social-character-wrap {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-avatar-svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.social-character-wrap:hover .social-avatar-svg {
  transform: scale(1.1) rotate(4deg);
}

.social-info {
  display: flex;
  flex-direction: column;
}

.social-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.social-status-text {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.1;
  margin-top: 1px;
}

.social-mood-sub {
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Main Workspace Layout
   -------------------------------------------------------------------------- */
.tablero-container {
  max-width: 1720px;
  margin: 0 auto;
  padding: 18px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Top Section: Panel de Palancas de Control (Sliders Horizontales)
   -------------------------------------------------------------------------- */
.controls-top-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.panel-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.panel-title-bar h2 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title-bar .subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.control-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.control-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

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

.control-card-header label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.control-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.control-num-input {
  width: 65px;
  height: 26px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: right;
  padding: 2px 6px;
  outline: none;
  transition: border-color 0.15s;
}

.control-num-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.control-unit {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.control-slider-track {
  width: 100%;
  margin: 6px 0 2px;
}

.control-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
  outline: none;
  cursor: pointer;
}

.control-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.control-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--brand-dark);
}

.control-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Bottom Section: Barras Verticales de 10 Celdas para Indicadores
   -------------------------------------------------------------------------- */
.indicators-bottom-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.indicators-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.indicators-panel-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-cell {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.1);
}

.legend-cell.ok {
  background: var(--cell-ok-bg);
  border-color: var(--cell-ok-border);
  box-shadow: var(--cell-ok-glow);
}

.legend-cell.warn {
  background: var(--cell-warn-bg);
  border-color: var(--cell-warn-border);
}

.legend-cell.danger {
  background: var(--cell-danger-bg);
  border-color: var(--cell-danger-border);
}

/* Grid de Columnas de Indicadores - Todos con el MISMO ancho idéntico y uniforme */
.indicator-columns-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: stretch !important;
}

.indicator-col-card {
  width: 108px !important;
  min-width: 108px !important;
  max-width: 108px !important;
  flex: 0 0 108px !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.indicator-col-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

/* Encabezado Superior de la Columna */
.col-header {
  text-align: center;
  margin-bottom: 4px;
  width: 100%;
}

.col-icon {
  font-size: 0.95rem;
  color: var(--brand-primary);
  margin-bottom: 2px;
}

.col-title {
  font-size: 0.67rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1.15;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* La Pila Vertical de 10 Celdas (30% menos alta y 20% más fina) */
.cell-tower {
  display: flex;
  flex-direction: column-reverse; /* Celda 1 abajo, Celda 10 arriba */
  gap: 3px;
  width: 100%;
  max-width: 46px;
  background: #f8fafc;
  padding: 3px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  margin: 3px 0 6px;
}

.tower-cell {
  height: 7px;
  width: 100%;
  border-radius: 2px;
  border: 1px solid var(--cell-off-border);
  background: var(--cell-off-bg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados de las Celdas */
.tower-cell.active-ok {
  background: var(--cell-ok-bg) !important;
  border-color: var(--cell-ok-border) !important;
  box-shadow: var(--cell-ok-glow) !important;
}

.tower-cell.active-warn {
  background: var(--cell-warn-bg) !important;
  border-color: var(--cell-warn-border) !important;
  box-shadow: var(--cell-warn-glow) !important;
}

.tower-cell.active-danger {
  background: var(--cell-danger-bg) !important;
  border-color: var(--cell-danger-border) !important;
  box-shadow: var(--cell-danger-glow) !important;
  animation: pulseDanger 2s infinite ease-in-out;
}

@keyframes pulseDanger {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* Pie Inferior de la Columna: Número y Delta */
.col-footer {
  text-align: center;
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 4px;
}

.col-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.col-delta {
  font-size: 0.62rem;
  font-weight: 700;
  margin-top: 1px;
  display: inline-block;
  padding: 1px 4px;
  border-radius: 3px;
}

.col-delta.pos {
  color: #16a34a;
  background: #dcfce7;
}

.col-delta.neg {
  color: #dc2626;
  background: #fee2e2;
}

.col-delta.neu {
  color: var(--text-muted);
  background: var(--bg-subtle);
}

/* Tooltips e Info */
.help-tooltip {
  cursor: help;
  color: #94a3b8;
  font-size: 0.72rem;
  transition: color 0.15s;
}

.help-tooltip:hover {
  color: var(--brand-primary);
}

/* Categorías de Indicadores */
.category-divider {
  display: flex;
  align-items: center;
  margin: 14px 0 6px;
  position: relative;
}

.category-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}

.category-pill {
  position: relative;
  z-index: 2;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.category-pill i {
  color: var(--brand-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .tablero-header {
    flex-wrap: wrap;
    justify-content: center;
  }
  .header-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .tablero-container {
    padding: 12px;
  }
  .controls-grid {
    grid-template-columns: 1fr;
  }
  .indicator-columns-grid {
    justify-content: center;
  }
}


