/* stats.css — dashboard de estado del sistema (combina con base.css) */

.page-wide { max-width: 760px; width: 100%; }
.intro { max-width: none; width: 100%; }

.live-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.live-refresh { opacity: 0.55; }

.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px 1px var(--ok);
  animation: heartbeat 1.4s ease-in-out infinite;
}
@keyframes heartbeat { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.35); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.pulse.down { background: var(--warn); box-shadow: 0 0 8px 1px var(--warn); animation: none; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 16px 22px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
  box-shadow: 0 16px 34px -18px rgba(139, 107, 255, 0.4);
}
.stat-card-icon { font-size: 20px; margin-bottom: 10px; opacity: 0.9; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 38px);
  background: linear-gradient(100deg, var(--rose-deep), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
  word-break: break-word;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.capacity-block {
  width: 100%;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 8px;
}
.capacity-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.capacity-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.capacity-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-deep), var(--violet));
  transition: width 0.6s ease;
}

.estado-error {
  text-align: center;
  color: var(--warn);
  font-size: 13.5px;
  padding: 20px 0;
}
