/* ==========================================================================
   sistemas.css — Dashboard de Sistemas | Grupo del Sur
   ========================================================================== */

/* ── Grid de módulos ────────────────────────────────────────────────────── */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.system-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Barra lateral izquierda de color */
.system-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--primary);
  transition: height 0.5s ease;
}
.system-card:hover::after { height: 100%; }

/* Shimmer */
.system-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.65s ease;
  pointer-events: none;
  z-index: 5;
}
.system-card:hover::before { left: 120%; }

.system-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* ── Indicador de estado ────────────────────────────────────────────────── */
.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(201,214,70,0.2);
  color: #8c981a;
  margin-bottom: 1.25rem;
  width: fit-content;
}
/* Punto pulsante de estado */
.system-status::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent-dark);
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}

.system-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--secondary);
}
.system-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ── Métricas en tarjeta ────────────────────────────────────────────────── */
.system-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--border-color);
  font-size: 0.85rem;
}
.system-metric span:first-child { color: var(--text-muted); }
.system-metric strong { color: var(--primary-dark); }

/* ── Barra de progreso ──────────────────────────────────────────────────── */
.progress-bar-wrap {
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  height: 6px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Panel de estado general ────────────────────────────────────────────── */
.status-panel {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  border-left: 6px solid var(--accent);
  position: relative;
  overflow: hidden;
}
.status-panel::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,179,186,0.2), transparent 70%);
  border-radius: 50%;
}
.status-panel-icon {
  font-size: 3rem;
  flex-shrink: 0;
}
.status-panel h3 { font-size: 1.4rem; color: white; margin-bottom: 0.25rem; }
.status-panel p  { font-size: 0.92rem; color: var(--text-light); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) { .systems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .systems-grid { grid-template-columns: 1fr; } }
