/* Identidad Bookuki. Los negocios conservan su color propio en su página pública. */
:root {
  --bookuki-violet: #7c3aed;
  --bookuki-pink: #f472b6;
  --bookuki-green: #10b981;
  --bookuki-blue: #38bdf8;
  --bookuki-night: #111827;
  --brand: var(--bookuki-violet);
  --salon-brand: var(--bookuki-violet);
  --ink: #1f2937;
  --muted: #64748b;
  --paper: #f9fafb;
  --line: #e5e7eb;
  --soft: #f3efff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

body {
  color: var(--ink);
  background: radial-gradient(circle at 4% 2%, #ede6ff 0, transparent 29rem), var(--paper);
}

button, .button {
  min-height: 52px;
  border-radius: 14px;
  padding: 12px 20px;
  background: var(--brand);
  box-shadow: 0 6px 16px #7c3aed1c;
  font-weight: 700;
}

button:hover, .button:hover { filter: brightness(.96); }
button:focus-visible, .button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #a78bfa;
  outline-offset: 3px;
}

.secondary, .text-button, .danger { box-shadow: none; }
.secondary { background: #fff; border-color: #d9d4e7; color: #30254b; }
.secondary:hover { background: #f8f5ff; }
.text-button { color: #453c59; }
.danger { background: #fff0f4; color: #a52251; }

input, select, textarea {
  border-color: #d9dce6;
  border-radius: 12px;
  color: var(--ink);
}
input:hover, select:hover, textarea:hover { border-color: #b8b4cc; }
input:focus, select:focus, textarea:focus { border-color: var(--bookuki-violet); }
label { color: #344054; }
h1, h2, h3 { color: var(--bookuki-night); }
h1 { font-weight: 800; letter-spacing: -.045em; }
h2 { font-weight: 750; letter-spacing: -.035em; }
.eyebrow { color: var(--bookuki-violet); letter-spacing: .12em; }
.brand { font-family: inherit; font-weight: 800; letter-spacing: -.04em; }
.bookuki-logo { display: block; width: 196px; height: auto; max-width: 100%; }
.wizard-header .bookuki-logo { width: 213px; }
.sidebar .bookuki-logo { width: 182px; }
.setup .bookuki-logo { width: 236px; }
.mark { background: var(--brand); border-radius: 14px; font-family: inherit; font-weight: 800; }

.panel, .stat, .wizard-card {
  border-color: var(--line);
  box-shadow: 0 8px 25px #11182708;
}
.panel { border-radius: 18px; }
.stat { border-radius: 18px; }
.stat strong { color: var(--bookuki-night); font-weight: 750; }
.stat.highlight { background: #f2ebff; border-color: #e4d6ff; }
.notice { background: #f2ebff; color: #44305e; border-radius: 12px; }
.plan { border-color: #ddd0ff; color: #5b21b6; background: #f6f0ff; }

.sidebar { background: #fff; border-color: var(--line); }
.sidebar .brand { padding: 0 4px; }
.salon-label { background: #f5f1ff; border: 1px solid #e8dcff; border-radius: 14px; }
.salon-label strong { color: var(--bookuki-night); }
.nav button { color: #555b70; box-shadow: none; font-weight: 650; }
.nav button:hover { background: #f7f3ff; }
.nav button.active { background: #eee5ff; color: #5b21b6; }
.sidebar footer strong { color: #5b21b6; }
.topbar { border-color: var(--line); }
.topbar .avatar { background: #eee5ff; color: #5b21b6; font-weight: 750; }
.column { background: #fff; }
.initial { background: #efe6ff; color: #5b21b6; }
.appointment { background: #e8f9f1; border-color: var(--bookuki-green); }
.appointment.pending { background: #eaf7fe; border-color: var(--bookuki-blue); }
.appointment.cancelled, .appointment.rejected { background: #f3f4f6; border-color: #9ca3af; }
.badge { border-radius: 8px; }
.quota-meter { background: #eee8fb; }
.quota-meter > div { background: var(--bookuki-violet); }

.wizard-shell { max-width: 1320px; }
.wizard-header { border-bottom: 1px solid #e9e7ef; }
.wizard-layout { gap: clamp(30px, 6vw, 92px); }
.wizard-aside { position: relative; padding: 32px 0; }
.wizard-aside h1 {
  font-family: inherit;
  font-size: clamp(43px, 5vw, 67px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.06em;
}
.wizard-aside h1::first-line { color: var(--bookuki-violet); }
.wizard-aside > p:not(.eyebrow) { color: #536176; }
.wizard-aside-note { border-left-color: var(--bookuki-green); }
.wizard-aside::after {
  content: '';
  display: block;
  width: 78px;
  height: 82px;
  margin-top: 40px;
  background: url('/brand/symbol.svg') center / contain no-repeat;
  filter: drop-shadow(0 12px 24px #7c3aed20);
}
.wizard-card { border-radius: 26px; box-shadow: 0 24px 70px #6d42a41a; }
.service-preset-list { display: grid; gap: 9px; margin: 8px 0 15px; }
.service-preset-row { border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }
.service-preset-choice { display: flex; align-items: center; gap: 13px; min-height: 60px; padding: 12px 15px; margin: 0; cursor: pointer; }
.service-preset-choice:hover { background: #faf8ff; }
.service-preset-choice input { width: 25px; min-width: 25px; height: 25px; min-height: 25px !important; margin: 0; accent-color: var(--bookuki-violet); }
.service-preset-choice strong, .service-preset-choice small { display: block; }
.service-preset-choice strong { color: var(--ink); font-size: 15px; }
.service-preset-choice small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.service-preset-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 15px 15px 53px; }
.service-preset-fields[hidden] { display: none; }
.service-preset-fields label { font-size: 13px; }
.service-preset-fields input { width: 100%; min-height: 46px !important; }
.service-custom-choice { border: 1px dashed #c9bbeb; border-radius: 13px; }
.service-custom-fields { grid-template-columns: 1fr 1fr; padding: 15px 0; }
.service-custom-fields label:first-child { grid-column: 1 / -1; }
.service-preset-note { padding: 12px 14px; background: #f5f1ff; border-radius: 12px; }
.wizard-progress strong { color: #6d28d9; }
.progress-track { background: #eee9f9; }
.progress-track > div { background: linear-gradient(90deg, var(--bookuki-violet), #a78bfa); }
.wizard-content h2 { font-family: inherit; font-weight: 800; letter-spacing: -.05em; }
.url-preview { background: #f5f0ff; color: #5e5272; border: 1px solid #e6dcfc; border-radius: 12px; }
.url-preview strong { color: #5b21b6; }
.day-choice span { border-radius: 12px; }
.day-choice input:checked + span { background: #eee5ff; color: #5b21b6; border-color: #a78bfa; }
.day-choice input:focus-visible + span { outline-color: #a78bfa; }

.public.salon-page { --brand: var(--salon-brand); }
.public.salon-page .eyebrow { color: var(--brand); }
.public header { border-color: var(--line); }
.public .brand { font-size: clamp(21px, 3vw, 28px); }
.public .hero h1 { font-family: inherit; font-weight: 850; letter-spacing: -.055em; }
.public .slots button { background: #f6f4fb; }
.public .slots button.selected { background: var(--brand); }
.public .notice { background: #edf9f2; color: #155e45; }
.public .service-price { color: var(--brand); }
.public footer { margin: 26px 0; }
.bookuki-credit { display: inline-flex; align-items: center; gap: 7px; color: #667085; }
.bookuki-credit img { width: 19px; height: 21px; object-fit: contain; }
.setup { margin-top: clamp(36px, 7vw, 80px); }
.setup-salon { display: inline-flex; align-items: center; margin-bottom: 22px; padding: 7px 12px; background: #f1ebff; border-radius: 999px; color: #5b21b6; font-size: 14px; font-weight: 700; }
.setup h1 { font-size: clamp(40px, 6vw, 58px); }

dialog { box-shadow: 0 24px 90px #11182735; }
dialog::backdrop { background: #11182786; }
dialog .close { background: #f3effb; }
#toast { background: var(--bookuki-night); }
.error { background: #fff1f2; color: #9f1239; }
.maintenance-preview-notice {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: grid;
  gap: 5px;
  width: min(340px, calc(100vw - 32px));
  padding: 15px 18px;
  border: 1px solid #f4c467;
  border-radius: 14px;
  background: #fffbeb;
  box-shadow: 0 12px 34px #1f293729;
  color: #78350f;
  font-size: 13px;
  line-height: 1.4;
}
.maintenance-preview-notice strong { color: #713f12; font-size: 15px; }
.maintenance-preview-notice a { color: #6d28d9; font-weight: 700; }
.support-badge { padding: 8px 12px; border-radius: 999px; background: #fff0d6; color: #92400e; font-size: 13px; }
.group-sessions { margin-top: 22px; }
.group-session-list { display: grid; gap: 10px; margin-top: 18px; }
.group-session-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 0; border-top: 1px solid var(--line); }
.group-session-row span { display: block; color: var(--muted); font-size: 14px; }
.group-session-row button { min-height: 44px; }

@media (max-width: 900px) {
  .sidebar { border-color: var(--line); }
  .sidebar .bookuki-logo { width: 160px; }
  .nav button.active { background: #eee5ff; }
  .wizard-aside { padding: 8px 0 0; }
  .wizard-aside::after { display: none; }
  .wizard-aside h1 { font-size: clamp(34px, 8vw, 44px); }
}

@media (max-width: 540px) {
  .wizard-header .bookuki-logo { width: 172px; }
  .wizard-card { min-height: 0; }
  .wizard-content { padding: 28px 20px; }
  .wizard-actions { gap: 8px; }
  .wizard-actions button { min-width: 0; flex: 1; padding-inline: 11px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .public { padding: 18px; }
  .service-preset-fields { grid-template-columns: 1fr; padding-left: 15px; }
  .service-custom-fields label:first-child { grid-column: auto; }
  .group-session-row { align-items: flex-start; flex-direction: column; }
}
