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

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #eaeaea;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}

.brand { display: flex; align-items: center; gap: 16px; }
.logo { font-size: 2.6rem; }
h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: 1px; }
.tagline { font-size: 0.85rem; font-weight: 300; color: #b8c0d4; }

.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 18px;
  text-align: center;
  min-width: 92px;
}
.stat .n { font-size: 1.5rem; font-weight: 600; display: block; }
.stat .l { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #b8c0d4; }

main { flex: 1; padding: 0 40px 40px; max-width: 1100px; width: 100%; margin: 0 auto; }

.filtros { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filtros button {
  font-family: inherit;
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #cfd6e4;
  cursor: pointer;
  transition: all 0.15s;
}
.filtros button:hover { background: rgba(255, 255, 255, 0.1); }
.filtros button.activo { background: #e94560; border-color: #e94560; color: #fff; font-weight: 500; }

.lista { display: flex; flex-direction: column; gap: 12px; }

.trabajo {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
}
.trabajo:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); }

.trabajo .id { font-weight: 600; color: #8a93a8; font-size: 0.85rem; min-width: 44px; }
.trabajo .info { flex: 1; min-width: 0; }
.trabajo .titulo { font-weight: 500; font-size: 0.98rem; }
.trabajo .meta { font-size: 0.75rem; color: #9aa3b8; margin-top: 2px; }

.badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.pendiente  { background: rgba(255, 193, 7, 0.18); color: #ffc107; }
.badge.reclamado  { background: rgba(33, 150, 243, 0.18); color: #64b5f6; }
.badge.completado { background: rgba(76, 175, 80, 0.18); color: #81c784; }
.badge.cancelado  { background: rgba(158, 158, 158, 0.18); color: #bdbdbd; }
.badge.alta   { background: rgba(233, 69, 96, 0.2); color: #e94560; }
.badge.normal { background: rgba(255, 255, 255, 0.1); color: #cfd6e4; }
.badge.baja   { background: rgba(255, 255, 255, 0.06); color: #8a93a8; }

.vacio { text-align: center; padding: 60px 20px; color: #8a93a8; font-weight: 300; }

.modal {
  position: fixed; inset: 0;
  background: rgba(10, 12, 24, 0.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 50;
}
.modal.oculto { display: none; }
.modal-card {
  background: #1d2440;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  max-width: 760px; width: 100%; max-height: 85vh;
  overflow-y: auto;
  padding: 28px 32px;
  position: relative;
}
.modal-card .cerrar {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: #8a93a8;
  font-size: 1.1rem; cursor: pointer;
}
.modal-card h2 { font-size: 1.2rem; margin-bottom: 8px; padding-right: 30px; }
.modal-card .meta { font-size: 0.8rem; color: #9aa3b8; margin-bottom: 16px; }
.modal-card h3 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px;
  color: #e94560; margin: 18px 0 8px;
}
.modal-card pre {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Consolas', monospace;
  color: #d6dbe8;
}

footer { text-align: center; padding: 18px; font-size: 0.75rem; color: #7a8398; }
footer code { color: #b8c0d4; }

@media (max-width: 640px) {
  header, main { padding-left: 16px; padding-right: 16px; }
}
