:root {
  --bg-black: #0B0B0B;
  --bg-onyx: #161616;
  --bg-surface: #1C1C1A;
  --gold: #DAA520;
  --gold-dark: #B8860B;
  --red: #942520;
  --text-bone: #F5F2EB;
  --text-muted: #8E8D8A;
  --border: rgba(218, 165, 32, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-black);
  color: var(--text-bone);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header {
  text-align: center;
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  background: rgba(218, 165, 32, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.card {
  background: var(--bg-onyx);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #666;
}

.status-dot.online {
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.stat-box {
  background: var(--bg-surface);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-black);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: var(--gold);
}

.btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: #000000;
}

.btn-primary:hover {
  background: #FFFFFF;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-bone);
  margin-top: 10px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.error-msg {
  color: #EF4444;
  font-size: 0.8rem;
  margin-top: 10px;
  text-align: center;
}

.hidden {
  display: none;
}

.role-badge {
  background: var(--red);
  color: #FFF;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Zonas Territoriales (Semana 2) */
.zonas-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zona-item {
  background: var(--bg-surface);
  border: 1px solid rgba(218, 165, 32, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.zona-name {
  font-weight: 700;
  color: var(--gold);
}

.zona-desc {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.loading-item {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}
