* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #37393b;
  color: #f0f0f0;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #2c2e30, #37393b);
  border-bottom: 3px solid #3498db;
  padding: 24px 20px;
  text-align: center;
}

.header img.logo {
  max-height: 80px;
  margin-bottom: 12px;
}

.header h1 { 
  color: #3498db; 
  font-size: 2rem; 
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header p { 
  color: #aaa; 
  font-size: 0.95rem; 
  margin-top: 6px; 
}

/* Cards */
.card {
  background: #2c2e30;
  border: 1px solid #444;
  border-radius: 14px;
  padding: 28px;
  margin: 18px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card h2 { 
  color: #3498db; 
  margin-bottom: 18px; 
  font-size: 1.2rem; 
  font-weight: 600;
}

/* Inputs */
input, select {
  width: 100%;
  padding: 12px 16px;
  background: #37393b;
  border: 1px solid #555;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 1rem;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus { 
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

/* Botones */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-primary { 
  background: #3498db; 
  color: white; 
}
.btn-primary:hover { 
  background: #2980b9; 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52,152,219,0.4);
}

.btn-success { 
  background: #27ae60; 
  color: white; 
}
.btn-success:hover { 
  background: #219a52; 
}

.btn-danger { 
  background: #e74c3c; 
  color: white; 
}
.btn-sm { 
  padding: 8px 16px; 
  width: auto; 
  font-size: 0.85rem; 
}

/* Niveles (badges) */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-bronze { background: #cd7f32; color: white; }
.badge-silver { background: #a8a9ad; color: #1e1e1e; }
.badge-gold { background: #f1c40f; color: #1e1e1e; }
.badge-platinum { background: linear-gradient(135deg, #e5e4e2, #a0b2c6); color: #1e1e1e; }

/* Puntos grandes */
.puntos-display {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, #2c2e30, #1e2b38);
  border-radius: 14px;
  margin: 18px 0;
  border: 1px solid #3498db;
}

.puntos-display .numero {
  font-size: 4rem;
  font-weight: 900;
  color: #3498db;
  line-height: 1;
}

.puntos-display .label { 
  color: #aaa; 
  margin-top: 10px; 
  font-size: 1rem;
}

/* Tabla */
table { width: 100%; border-collapse: collapse; }
th { 
  color: #3498db; 
  text-align: left; 
  padding: 12px 10px; 
  border-bottom: 1px solid #555; 
  font-size: 0.85rem; 
  font-weight: 600;
}
td { 
  padding: 12px 10px; 
  border-bottom: 1px solid #444; 
  font-size: 0.9rem; 
}
tr:hover td { background: #3a3c3e; }

/* Premios */
.premio-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #37393b;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #444;
}

.premio-card.alcanzado { border-color: #27ae60; }
.premio-card .puntos-req { color: #3498db; font-weight: 700; }

/* Progreso */
.progress-bar {
  background: #555;
  border-radius: 10px;
  height: 12px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 14px 0;
  font-size: 0.9rem;
}

.alert-error { background: #3a0000; border: 1px solid #e74c3c; color: #ff8888; }
.alert-success { background: #003a00; border: 1px solid #27ae60; color: #88ff88; }
.alert-info { background: #002a3a; border: 1px solid #3498db; color: #88eeff; }

/* Login */
.login-box {
  max-width: 420px;
  margin: 80px auto;
}

/* Nav tabs */
.tabs { 
  display: flex; 
  gap: 8px; 
  margin-bottom: 24px; 
  flex-wrap: wrap;
}

.tab {
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  background: #2c2e30;
  border: 1px solid #555;
  color: #aaa;
  font-weight: 600;
  transition: all 0.2s;
}

.tab.active { 
  background: #3498db; 
  color: white; 
  border-color: #3498db; 
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

/* Stat card */
.stat-card {
  background: #2c2e30;
  border: 1px solid #444;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.stat-card .numero { 
  font-size: 2.5rem; 
  font-weight: 900; 
  color: #3498db; 
}

.stat-card .label { 
  color: #aaa; 
  font-size: 0.85rem; 
  margin-top: 6px; 
}

/* Hidden */
.hidden { display: none; }

@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .puntos-display .numero { font-size: 3rem; }
}