/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rose:    #e91e8c;
  --rose-dk: #c2177a;
  --rose-lt: #fce4f3;
  --gold:    #f5a623;
  --dark:    #1a1a2e;
  --gray:    #6b7280;
  --gray-lt: #f3f4f6;
  --white:   #ffffff;
  --green:   #22c55e;
  --red:     #ef4444;
  --shadow:  0 4px 24px rgba(233,30,140,.12);
  --radius:  16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #fdf6fb;
  color: var(--dark);
  min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dk) 100%);
  color: var(--white);
  padding: 28px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.header-icon { font-size: 48px; display: block; margin-bottom: 8px; }
.header h1 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; letter-spacing: -.5px; }
.header p  { font-size: .95rem; opacity: .88; margin-top: 4px; }
.admin-link {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.2);
  color: var(--white); text-decoration: none;
  padding: 6px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600;
  backdrop-filter: blur(4px);
  transition: background .2s;
}
.admin-link:hover { background: rgba(255,255,255,.35); }

/* ===== NAV TABS ===== */
.tabs {
  display: flex; background: var(--white);
  border-bottom: 2px solid var(--rose-lt);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.tab-btn {
  flex: 1; padding: 14px 8px; border: none; background: none; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--gray);
  transition: color .2s, border-bottom .2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-btn.active { color: var(--rose); border-bottom-color: var(--rose); }
.tab-btn span { display: block; font-size: 1.2rem; }

/* ===== SECTIONS ===== */
.section { display: none; padding: 20px 16px 40px; max-width: 680px; margin: 0 auto; }
.section.active { display: block; }

/* ===== CARD ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 20px; margin-bottom: 20px;
}
.card-title {
  font-size: 1.1rem; font-weight: 700; color: var(--dark);
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.card-title span { font-size: 1.3rem; }

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }
label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--gray); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px;
}
input, select {
  width: 100%; padding: 13px 16px; border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm); font-size: .97rem;
  transition: border-color .2s, box-shadow .2s; outline: none;
  background: var(--white); color: var(--dark);
  -webkit-appearance: none; appearance: none;
}
input:focus, select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(233,30,140,.1);
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.btn-primary {
  width: 100%; padding: 15px; background: linear-gradient(135deg, var(--rose), var(--rose-dk));
  color: var(--white); border: none; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; cursor: pointer; letter-spacing: .3px;
  box-shadow: 0 4px 16px rgba(233,30,140,.35);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(233,30,140,.45); }
.btn-primary:active { transform: translateY(0); }

/* ===== CONFIRMATION ===== */
.confirm-box {
  display: none; background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid var(--green); border-radius: var(--radius);
  padding: 24px; text-align: center; margin-bottom: 20px;
}
.confirm-box.show { display: block; animation: popIn .4s cubic-bezier(.34,1.56,.64,1); }
.confirm-icon { font-size: 3rem; display: block; margin-bottom: 10px; }
.confirm-box h3 { color: #15803d; font-size: 1.2rem; margin-bottom: 8px; }
.confirm-box p  { color: #166534; font-size: .92rem; line-height: 1.5; }
.confirm-detail {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 14px; margin-top: 14px; text-align: left;
}
.confirm-row { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: .9rem; }
.confirm-row b { color: var(--dark); }

@keyframes popIn {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ===== CALENDAR ===== */
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cal-nav {
  background: var(--rose-lt); border: none; border-radius: 50%;
  width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer;
  color: var(--rose); font-weight: 700; transition: background .2s;
}
.cal-nav:hover { background: #f9c6eb; }
.cal-month { font-size: 1.05rem; font-weight: 700; }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-day-name {
  text-align: center; font-size: .72rem; font-weight: 700;
  color: var(--gray); padding: 6px 0; text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; font-size: .88rem; font-weight: 600;
  transition: background .15s, color .15s; position: relative;
  border: 2px solid transparent;
}
.cal-day:not(.empty):not(.past):hover { background: var(--rose-lt); color: var(--rose); }
.cal-day.today { border-color: var(--rose); color: var(--rose); }
.cal-day.selected { background: var(--rose); color: var(--white); border-color: var(--rose); }
.cal-day.past { color: #d1d5db; cursor: default; }
.cal-day.empty { cursor: default; }
.cal-day.has-turns::after {
  content: ''; position: absolute; bottom: 4px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.cal-day.selected.has-turns::after { background: rgba(255,255,255,.8); }
.cal-day.full { background: #fef2f2; color: var(--red); }
.cal-day.full:hover { background: #fee2e2; }

/* ===== SLOTS ===== */
.slots-title { font-size: .95rem; font-weight: 700; margin: 18px 0 10px; }
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  padding: 10px 4px; border: 2px solid #e5e7eb; border-radius: var(--radius-sm);
  text-align: center; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all .15s; background: var(--white); color: var(--dark);
}
.slot:hover:not(.taken) { border-color: var(--rose); color: var(--rose); background: var(--rose-lt); }
.slot.taken { background: #fee2e2; color: #ef4444; cursor: not-allowed; border-color: #fca5a5; font-weight: 700; }
.slot.selected { background: var(--rose); color: var(--white); border-color: var(--rose); }

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--gray); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* ===== ADMIN ===== */
.admin-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rose-lt); color: var(--rose);
  padding: 4px 12px; border-radius: 20px; font-size: .82rem; font-weight: 700;
  margin-bottom: 16px;
}
.date-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.date-nav button {
  background: var(--rose-lt); border: none; border-radius: var(--radius-sm);
  padding: 8px 16px; color: var(--rose); font-weight: 700; cursor: pointer; font-size: .88rem;
}
.date-nav input[type=date] { flex: 1; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 14px 10px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.stat-n { font-size: 1.8rem; font-weight: 800; color: var(--rose); line-height: 1; }
.stat-l { font-size: .75rem; color: var(--gray); margin-top: 4px; }

.turn-item {
  background: var(--white); border-radius: var(--radius-sm);
  border-left: 4px solid var(--rose);
  padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.turn-item.done { border-left-color: var(--green); opacity: .7; }
.turn-info h4 { font-size: .97rem; font-weight: 700; }
.turn-info p  { font-size: .82rem; color: var(--gray); margin-top: 2px; }
.turn-time {
  font-size: 1.1rem; font-weight: 800; color: var(--rose);
  white-space: nowrap; text-align: right;
}
.turn-actions { display: flex; gap: 6px; margin-top: 8px; }
.btn-sm {
  padding: 5px 12px; border: none; border-radius: 20px;
  font-size: .78rem; font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.btn-done { background: #dcfce7; color: #166534; }
.btn-del  { background: #fee2e2; color: #991b1b; }
.btn-sm:hover { opacity: .8; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--gray); }
.empty-state span { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ===== SLOTS POR PELUQUERA ===== */
.peluquera-header {
  font-size: .82rem; font-weight: 700; color: var(--rose);
  text-transform: uppercase; letter-spacing: .5px;
  margin: 14px 0 6px; padding-bottom: 4px;
  border-bottom: 1px solid var(--rose-lt);
}
.slots-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 4px; }

/* ===== FASES ===== */
.phase-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 700; margin: 6px 0 4px;
}
.badge-waiting { background: #f3f4f6; color: #6b7280; }
.badge-active  { background: #fce4f3; color: var(--rose); }
.badge-product { background: #fef3c7; color: #92400e; }
.badge-finish  { background: #d1fae5; color: #065f46; }
.badge-done    { background: #d1fae5; color: #065f46; }

.phase-bar {
  display: flex; height: 6px; border-radius: 4px;
  overflow: hidden; margin: 6px 0 4px; background: #f3f4f6;
}
.phase-seg { height: 100%; }
.seg-active  { background: var(--rose); }
.seg-product { background: var(--gold); }
.seg-finish  { background: var(--green); }

.phase-legend {
  display: flex; align-items: center; gap: 10px;
  font-size: .72rem; color: var(--gray); margin-bottom: 6px; flex-wrap: wrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 2px; }
.dot-active  { background: var(--rose); }
.dot-product { background: var(--gold); }
.dot-finish  { background: var(--green); }

/* Card coloreada según fase */
.turn-item.phase-active  { border-left-color: var(--rose); }
.turn-item.phase-product { border-left-color: var(--gold); background: #fffbf0; }
.turn-item.phase-finish  { border-left-color: var(--green); background: #f0fdf4; }
.turn-item.phase-done    { border-left-color: #d1d5db; }
.turn-item.phase-waiting { border-left-color: #d1d5db; opacity: .8; }

/* Turnos simultáneos */
.concurrent-block {
  border: 2px dashed var(--gold); border-radius: var(--radius-sm);
  padding: 10px; margin-bottom: 14px; background: #fffbf0;
}
.concurrent-tag {
  font-size: .75rem; font-weight: 800; color: #92400e;
  background: #fef3c7; padding: 3px 10px; border-radius: 20px;
  display: inline-block; margin-bottom: 8px;
}
.concurrent-block .turn-item { margin-bottom: 8px; }
.concurrent-block .turn-item:last-child { margin-bottom: 0; }

/* Grupo por peluquera en admin */
.pel-group-header {
  font-size: .8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--rose); margin: 18px 0 8px;
  padding-bottom: 4px; border-bottom: 2px solid var(--rose-lt);
}

/* Info de duración en formulario */
.service-info {
  display: flex; align-items: flex-start; gap: 8px;
  background: #fef3c7; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .83rem; color: #78350f;
  margin-top: -8px; margin-bottom: 14px;
}
.service-info span:first-child { font-size: 1rem; flex-shrink: 0; }

/* ===== TIMELINE (GANTT) ===== */
.admin-timeline-wrap {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 20px;
  overflow: hidden;
}
.admin-timeline-title {
  font-size: .85rem; font-weight: 700; color: var(--dark);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}

.tl-header { display: flex; margin-bottom: 4px; }
.tl-label  { width: 72px; flex-shrink: 0; font-size: .7rem; color: var(--gray); font-weight: 600; }
.tl-hours  { flex: 1; position: relative; height: 18px; }
.tl-hour   {
  position: absolute; font-size: .65rem; color: #9ca3af;
  transform: translateX(-50%);
}

.tl-row    { display: flex; align-items: center; margin-bottom: 8px; }
.tl-track  { flex: 1; position: relative; height: 32px; background: #f9fafb; border-radius: 6px; overflow: hidden; }

.tl-block  {
  position: absolute; top: 3px; bottom: 3px;
  border-radius: 4px; font-size: .65rem; font-weight: 700;
  color: #fff; overflow: hidden; white-space: nowrap;
  padding: 0 5px; display: flex; align-items: center;
  min-width: 4px;
}
.tl-active  { background: var(--rose); }
.tl-product { background: var(--gold); opacity: .85; }
.tl-finish  { background: var(--green); }

.tl-now {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: #ef4444; z-index: 2;
}
.tl-now::before {
  content: '▼'; position: absolute; top: -10px;
  left: 50%; transform: translateX(-50%);
  font-size: .55rem; color: #ef4444;
}

.tl-legend {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
  font-size: .72rem; color: var(--gray); flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
  .slots-grid { grid-template-columns: repeat(3,1fr); }
  .stats { grid-template-columns: repeat(3,1fr); }
}

/* =====================================================
   BOOKING PAGE — DARK WIZARD (turnos.html)
   ===================================================== */

body.booking-page {
  background: #0b0b18;
  color: #e8e8f5;
  min-height: 100vh;
}

/* --- Header --- */
.bk-header {
  background: linear-gradient(135deg, #130820 0%, #1e0a2e 50%, #130820 100%);
  border-bottom: 1px solid rgba(233,30,140,.25);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.bk-back, .bk-admin {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .82rem; font-weight: 600;
  padding: 6px 12px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  transition: all .2s;
}
.bk-back:hover, .bk-admin:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.bk-logo { display: flex; align-items: center; gap: 10px; }
.bk-logo-icon { font-size: 1.5rem; }
.bk-logo-name { font-size: 1rem; font-weight: 800; color: #fff; line-height: 1; }
.bk-logo-sub  { font-size: .72rem; color: var(--rose); font-weight: 600; }

/* --- Barra de progreso --- */
.wiz-nav {
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 14px 16px 0;
}
.wiz-steps {
  display: flex; justify-content: space-between;
  max-width: 460px; margin: 0 auto 12px;
}
.wstep {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: .62rem; font-weight: 600; color: rgba(255,255,255,.28);
  transition: color .3s;
}
.wstep span {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800;
  transition: all .3s;
}
.wstep.active { color: var(--rose); }
.wstep.active span {
  background: var(--rose); border-color: var(--rose); color: #fff;
  box-shadow: 0 0 14px rgba(233,30,140,.55);
}
.wstep.done { color: rgba(255,255,255,.45); }
.wstep.done span {
  background: rgba(34,197,94,.15);
  border-color: var(--green); color: var(--green);
}
.wiz-pbar {
  height: 2px; background: rgba(255,255,255,.07);
  border-radius: 2px; max-width: 460px; margin: 0 auto;
}
.wiz-pfill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose), #ff6eb4);
  border-radius: 2px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* --- Wizard body --- */
.wizard-body {
  max-width: 500px; margin: 0 auto;
  padding: 24px 16px 70px;
}

/* --- Cada paso --- */
.ws-card {
  display: none;
  animation: wsSlide .28s ease;
}
.ws-card.active { display: block; }
@keyframes wsSlide {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ws-title {
  font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 4px;
}
.ws-sub {
  font-size: .85rem; color: rgba(255,255,255,.4); margin-bottom: 22px;
}

/* --- Grilla de servicios --- */
.svc-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 10px;
  margin-bottom: 14px;
}
.svc-card {
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.09);
  border-radius: 14px; padding: 14px 12px;
  cursor: pointer; transition: all .2s; position: relative;
  user-select: none;
}
.svc-card:hover {
  background: rgba(233,30,140,.1);
  border-color: rgba(233,30,140,.35);
}
.svc-card.selected {
  background: rgba(233,30,140,.14);
  border-color: var(--rose);
  box-shadow: 0 0 18px rgba(233,30,140,.18);
}
.svc-check {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--rose); color: #fff; font-size: .65rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
}
.svc-card.selected .svc-check { opacity: 1; transform: scale(1); }
.svc-emoji { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.svc-name  { font-size: .85rem; font-weight: 700; color: #fff; line-height: 1.2; }
.svc-dur   { font-size: .7rem; color: rgba(255,255,255,.38); margin-top: 3px; }
.svc-card.selected .svc-dur { color: rgba(233,30,140,.8); }

/* --- Barra selección --- */
.sel-bar {
  background: rgba(233,30,140,.1);
  border: 1px solid rgba(233,30,140,.25);
  border-radius: 12px; padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; gap: 10px;
}
.sel-bar-svcs { font-size: .83rem; color: rgba(255,255,255,.75); flex: 1; }
.sel-bar-dur  { font-size: .85rem; font-weight: 800; color: var(--rose); white-space: nowrap; }

/* --- Lista de peluqueras --- */
.pel-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.pel-card {
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.09);
  border-radius: 14px; padding: 14px 16px;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 14px;
}
.pel-card:hover {
  background: rgba(233,30,140,.1);
  border-color: rgba(233,30,140,.35);
  transform: translateX(3px);
}
.pel-card.selected {
  background: rgba(233,30,140,.15);
  border-color: var(--rose);
}
.pel-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(233,30,140,.25), rgba(194,23,122,.25));
  border: 1.5px solid rgba(233,30,140,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.pel-info { flex: 1; }
.pel-name { font-size: .97rem; font-weight: 700; color: #fff; }
.pel-spec { font-size: .75rem; color: rgba(255,255,255,.38); margin-top: 2px; }
.pel-arrow { color: rgba(255,255,255,.25); font-size: 1rem; }

/* --- Calendario oscuro --- */
.dark-cal {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 16px;
  margin-bottom: 20px;
}
.dark-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
body.booking-page .cal-nav {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: 1rem;
  cursor: pointer; font-weight: 700; transition: background .2s;
}
body.booking-page .cal-nav:hover { background: rgba(255,255,255,.15); color: #fff; }
.dark-cal-month {
  font-size: 1rem; font-weight: 700; color: #fff;
}
.dark-cal-daynames {
  display: grid; grid-template-columns: repeat(7,1fr);
  margin-bottom: 6px;
}
.dark-cal-daynames span {
  text-align: center; font-size: .68rem; font-weight: 700;
  color: rgba(255,255,255,.3); padding: 4px 0;
  text-transform: uppercase;
}
.dark-cal-daynames .red { color: rgba(239,68,68,.7); }
.dark-cal-grid {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 3px;
}
.dcal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
  color: rgba(255,255,255,.65); position: relative;
  border: 1.5px solid transparent;
}
.dcal-day:not(.empty):not(.past):hover {
  background: rgba(233,30,140,.2); color: #fff;
}
.dcal-day.today   { border-color: var(--rose); color: var(--rose); }
.dcal-day.selected { background: var(--rose); color: #fff; border-color: var(--rose); }
.dcal-day.past    { color: rgba(255,255,255,.18); cursor: default; }
.dcal-day.empty   { cursor: default; }
.dcal-day.has-turns::after {
  content: ''; position: absolute; bottom: 3px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}
.dcal-day.selected.has-turns::after { background: rgba(255,255,255,.7); }

/* --- Slots horarios --- */
.slot-date-label {
  font-size: .92rem; font-weight: 700; color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.slot-loading {
  font-size: .85rem; color: rgba(255,255,255,.4); margin-bottom: 10px;
}
.dark-slots-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
  margin-bottom: 6px;
}
.dark-slot {
  padding: 10px 4px; border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px; text-align: center;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all .15s;
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.65);
}
.dark-slot:hover:not(.taken) {
  border-color: var(--rose); color: var(--rose);
  background: rgba(233,30,140,.1);
}
.dark-slot.taken {
  background: rgba(239,68,68,.07);
  color: rgba(239,68,68,.4);
  cursor: not-allowed; border-color: rgba(239,68,68,.15);
  text-decoration: line-through;
}
.dark-slot.sel {
  background: var(--rose); color: #fff;
  border-color: var(--rose);
  box-shadow: 0 0 14px rgba(233,30,140,.35);
}
.no-slots {
  grid-column: 1 / -1; text-align: center;
  padding: 20px; font-size: .85rem;
  color: rgba(255,255,255,.35);
}

/* --- Formulario oscuro --- */
.dark-form-group { margin-bottom: 18px; }
.dark-label {
  display: block; font-size: .78rem; font-weight: 700;
  color: rgba(255,255,255,.4); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .5px;
}
.dark-input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 12px; font-size: .95rem;
  color: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.dark-input::placeholder { color: rgba(255,255,255,.22); }
.dark-input:focus {
  border-color: var(--rose);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(233,30,140,.15);
}

/* Teléfono con prefijo */
.phone-wrap {
  display: flex; align-items: stretch;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 12px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.phone-wrap:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(233,30,140,.15);
}
.phone-prefix {
  padding: 13px 14px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  font-size: .95rem; font-weight: 700;
  border-right: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0; display: flex; align-items: center;
  letter-spacing: .5px;
}
.phone-input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1;
}
.phone-hint {
  display: block; margin-top: 6px;
  font-size: .72rem; color: rgba(255,255,255,.28);
  line-height: 1.4;
}

/* --- Summary card --- */
.dark-summary-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; padding: 6px 16px;
  margin-bottom: 20px;
}
.sum-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.sum-row:last-child { border-bottom: none; }
.sum-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.sum-label {
  font-size: .7rem; color: rgba(255,255,255,.32);
  text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}
.sum-val { font-size: .93rem; color: #fff; font-weight: 600; margin-top: 1px; line-height: 1.4; }

/* --- Botones del wizard --- */
.btn-wiz-primary {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dk));
  color: #fff; border: none; border-radius: 12px;
  font-size: .97rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px rgba(233,30,140,.4);
  transition: transform .15s, box-shadow .15s;
  letter-spacing: .2px; margin-bottom: 10px;
}
.btn-wiz-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(233,30,140,.5);
}
.btn-wiz-primary:disabled { opacity: .35; cursor: not-allowed; }

.btn-wiz-confirm {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dk));
  color: #fff; border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 24px rgba(233,30,140,.45);
  transition: transform .15s, box-shadow .15s;
  margin-bottom: 10px;
}
.btn-wiz-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(233,30,140,.55);
}
.btn-wiz-confirm:disabled { opacity: .5; cursor: not-allowed; }

.btn-wiz-back {
  width: 100%; padding: 12px;
  background: transparent;
  color: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.btn-wiz-back:hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.65);
}

/* --- Pantalla confirmado --- */
.done-wrap { text-align: center; padding: 10px 0; }
.done-emoji {
  font-size: 3.8rem; display: block;
  margin-bottom: 14px;
  animation: popIn .45s cubic-bezier(.34,1.56,.64,1);
}
.done-title {
  font-size: 1.5rem; font-weight: 800; color: var(--green); margin-bottom: 6px;
}
.done-sub { color: rgba(255,255,255,.45); font-size: .9rem; margin-bottom: 22px; }
.done-info-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 14px 16px;
  font-size: .85rem; color: rgba(255,255,255,.55);
  line-height: 2; margin-top: 16px;
}
.done-info-box a { color: var(--rose); text-decoration: none; }

@media (max-width: 380px) {
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .dark-slots-grid { grid-template-columns: repeat(3,1fr); }
}
