/* ============================================
   EMPYREAN — TABS (nav + citas + sub-tabs)
   ============================================ */

/* ─── Tabs principales ──────────────────────── */
.tabs {
  display: flex;
  background: white;
  padding: 10px 15px;
  border-bottom: 1px solid #f5eaf5;
  gap: 4px;
}
.tab-btn {
  flex: 1;
  padding: 11px 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 700;
  color: #c9aac9;
  position: relative;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.88rem;
  border-radius: 16px;
  letter-spacing: 0.2px;
}
.tab-btn:hover { background: #fdf4ff; color: var(--primary); }
.tab-btn.active {
  color: var(--primary);
  background: linear-gradient(135deg, #fdf2ff, #f9e8f9);
}
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 99px;
  box-shadow: 0 0 8px var(--gold);
}

/* ─── Tabs de citas ─────────────────────────── */
.tabs-citas-wrapper {
  background: linear-gradient(135deg, #fdf4ff, #f5eaff);
  padding: 6px;
  border-radius: 22px;
  border: 1px solid #ead5f0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  box-shadow: inset 0 2px 8px rgba(96, 32, 96, 0.06);
}
@media (min-width: 480px) {
  .tabs-citas-wrapper { grid-template-columns: repeat(4, 1fr); }
}
.btn-tab-citas {
  flex: 1;
  padding: 10px 4px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: #c9aac9;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
@media (min-width: 480px) {
  .btn-tab-citas { flex-direction: row; font-size: 0.82rem; gap: 0; }
}
.btn-tab-citas.active {
  background: linear-gradient(135deg, #ffffff, #fdf4ff) !important;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(96, 32, 96, 0.12);
  transform: translateY(-1px);
}

/* ─── Sub-tabs admin ────────────────────────── */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: linear-gradient(135deg, #f8f0ff, #f2e5ff);
  padding: 5px;
  border-radius: 20px;
  margin-bottom: 22px;
  border: 1px solid #e8d8f8;
  box-shadow: inset 0 2px 6px rgba(96, 32, 96, 0.06);
  gap: 3px;
}
.sub-tab-btn {
  flex: 1 1 30%;
  min-width: 65px;
  padding: 10px 4px;
  border: none;
  background: transparent;
  color: #c090c0;
  font-weight: 700;
  cursor: pointer;
  border-radius: 14px;
  transition: all 0.25s ease;
  font-family: inherit;
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}
@media (min-width: 500px) {
  .sub-tab-btn { font-size: 0.85rem; padding: 12px 8px; }
}
.sub-tab-btn.active {
  background: linear-gradient(135deg, #ffffff, #fdf4ff) !important;
  color: var(--primary);
  box-shadow: 0 3px 12px rgba(96, 32, 96, 0.12);
  transform: translateY(-1px);
}
