* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; display: flex; min-height: 100vh; background: #f1f5f9; color: #0f172a; }
.sidebar {
  width: 240px; background: #1e293b; color: #fff; padding: 1.5rem 1rem;
  display: flex; flex-direction: column; position: fixed; height: 100vh;
}
.sidebar h2 { margin-bottom: 2rem; font-size: 1.2rem; }
.nav {
  display: block; width: 100%; text-align: left; padding: 0.85rem 1rem;
  margin-bottom: 0.4rem; border: none; border-radius: 8px; background: transparent;
  color: #cbd5e1; cursor: pointer; font-size: 1rem;
}
.nav.active, .nav:hover { background: #334155; color: #fff; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-foot a, .sidebar-foot button {
  padding: 0.7rem; border-radius: 8px; text-align: center; text-decoration: none;
  color: #94a3b8; background: transparent; border: 1px solid #475569; cursor: pointer;
}
.content { margin-left: 240px; flex: 1; padding: 2rem; }
header { margin-bottom: 2rem; }
header h1 { font-size: 1.8rem; }
#negocio { color: #64748b; }
.tab { display: none; }
.tab.active { display: block; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat {
  background: #fff; padding: 1.5rem; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.stat .val { font-size: 2rem; font-weight: 800; color: #e94560; }
.stat .lbl { color: #64748b; font-size: 0.9rem; }
.panel {
  background: #fff; border-radius: 12px; padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 1.5rem;
}
.panel h3 { margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.75rem; border-bottom: 1px solid #e2e8f0; }
.form-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
input, select {
  padding: 0.7rem 1rem; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; flex: 1; min-width: 140px;
}
.btn {
  padding: 0.7rem 1.2rem; background: #e94560; color: #fff; border: none;
  border-radius: 8px; cursor: pointer; font-weight: 600;
}
.badge-plan {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 6px;
  background: #dbeafe; color: #1d4ed8; font-size: 0.85rem; font-weight: 600;
}
