/*==============================================
  STREAMZONE PORTAL — SERVICIOS CSS
  Responsive: Mobile / Tablet / Desktop
================================================*/

:root {
  --bg: #050816;
  --card: #0F1729;
  --primary: #00E5FF;
  --muted: #98A2B3;
  --border: rgba(255,255,255,.06);
  --success: #22c55e;
  --danger: #ef4444;
  --sidebar-w: 260px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: -250px; left: -250px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,.1), transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

.content { margin-left: var(--sidebar-w); padding: 40px; min-height: 100vh; }

.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.topbar h1 { font-size: 26px; font-weight: 700; }
.topbar p { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* ── STATS GRID ─────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card {
  background: rgba(15,23,41,.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 18px;
  transition: .3s;
}
.stat-card h3 { font-size: 13px; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.stat-card h2 { font-size: 30px; font-weight: 700; color: white; }

/* ── FILTERS ────────────────────────────── */
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
#buscarServicio {
  width: 300px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(15,23,41,.9);
  color: white;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: .3s;
}
#buscarServicio:focus {
  border-color: rgba(0,229,255,.5);
  box-shadow: 0 0 15px rgba(0,229,255,.15);
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}
.tabs button {
  background: rgba(15,23,41,.9);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: .3s;
  flex: 1 1 auto;
  text-align: center;
}
.tabs button.active, .tabs button:hover {
  background: rgba(0,229,255,.12);
  border-color: rgba(0,229,255,.3);
  color: var(--primary);
}

/* ── SERVICES GRID ──────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.service-card {
  background: rgba(15,23,41,.9);
  backdrop-filter: blur(16px);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: .3s;
  position: relative;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(0,229,255,.08);
}
.service-card h3 { margin-bottom: 6px; font-size: 18px; color: white; }
.service-card p.status { margin-bottom: 16px; font-size: 12px; font-weight: 600; }
.service-card .details {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.service-card .details p { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.service-card .details p span { color: #e2e8f0; font-weight: 500; }

.btn-renew {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), #0099b8);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}
.btn-renew:hover { transform: translateY(-1px); box-shadow: 0 0 15px rgba(0,229,255,.2); }

.mobile-menu { display: none; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .content { margin-left: 0; padding: 20px 16px 30px; }
  .topbar { margin-bottom: 22px; }
  .topbar h1 { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card h2 { font-size: 24px; }
  .filters { flex-direction: column; align-items: stretch; }
  #buscarServicio { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .mobile-menu { display: flex; }
}

@media (max-width: 480px) {
  .content { padding: 14px 10px 28px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card h2 { font-size: 22px; }
  .stat-card h3 { font-size: 11px; }
  .service-card { padding: 20px; }
}
