/* ── Página pública de reservas y link del cliente ─────────── */
.booking-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.booking {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px var(--gutter) 40px;
}
.booking-loading {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
}
.booking-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.biz-side {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}
.biz-card {
  display: grid;
  gap: 16px;
}
.biz-id {
  display: flex;
  gap: 14px;
  align-items: center;
}
.biz-id h1 {
  font-size: 28px;
}
.biz-id p {
  margin-top: 4px;
  font-size: 14.5px;
}
.next-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 8px 12px;
  border-radius: 99px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-700);
  font-size: 14px;
}
.biz-links {
  display: grid;
  gap: 8px;
}
.biz-links a {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text);
  font-size: 14.5px;
}
.biz-links a svg {
  margin-top: 2px;
  color: var(--green);
  flex: none;
}

.summary {
  padding: 20px;
}
.summary-title {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 12px;
}
.summary dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.summary dl div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  font-size: 14.5px;
}
.summary dt {
  color: var(--muted);
}
.summary dd {
  margin: 0;
  font-weight: 600;
}

.steps-col {
  display: grid;
  gap: 12px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  scroll-margin-top: 16px;
}
.step.is-next {
  opacity: 0.55;
  background: transparent;
}
.step.is-active {
  border-color: #c3d3c9;
  box-shadow: var(--shadow);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}
.step-head h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  flex: none;
}
.step.is-active .step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.step.is-done .step-num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.step-summary {
  margin-top: 2px;
  font-size: 14.5px;
  color: var(--text);
}
.step-body {
  padding: 0 20px 22px;
}

.options {
  display: grid;
  gap: 10px;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.option:hover {
  border-color: var(--green);
}
.option.is-on {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: #fbfdfc;
}
.option strong {
  display: block;
  font-size: 16px;
}
.option-desc {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--text);
}
.option-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: none;
}
.option-meta .price {
  font-weight: 700;
  font-size: 15px;
}
.avatar-any {
  width: 40px;
  height: 40px;
  background: var(--navy);
}

.hold-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--amber-50);
  border: 1px solid #efd39b;
  color: #6b4a07;
  font-size: 14px;
}
.hold-timer.is-expired {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.hold-timer svg {
  flex: none;
}
.form-error {
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--red-50);
  border: 1px solid #f0c2bd;
  color: #7a1a12;
  font-size: 14.5px;
}

.booking-msg {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 48px 24px;
}
.booking-msg svg {
  color: var(--muted);
  margin-bottom: 12px;
}
.booking-msg h2 {
  font-size: 24px;
}

/* Turno reservado */
.done-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.done-card {
  padding: 36px 32px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.done-check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 10px var(--green-50);
  animation: pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.4);
}
@keyframes pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
}
.done-card h1 {
  font-size: 28px;
  margin-top: 8px;
}
.done-detail {
  width: 100%;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--navy);
  color: #c9d4de;
  text-align: left;
}
.done-detail .muted {
  color: #8fa5bb;
}
.done-when {
  margin-top: 12px;
  font-size: 15px;
}
.done-when::first-letter {
  text-transform: uppercase;
}
.done-time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  color: #fff;
  letter-spacing: -0.02em;
}
.done-meta {
  margin-top: 6px;
  font-size: 14.5px;
}
.done-actions {
  width: 100%;
  display: grid;
  gap: 10px;
}

/* Gestión del turno (link del cliente) */
.manage {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.manage-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.manage-head h1 {
  font-size: 22px;
}
.manage-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}
.manage-actions {
  display: grid;
  gap: 10px;
}

.booking-footer {
  padding: 20px var(--gutter) calc(96px + var(--safe-bottom));
  text-align: center;
}
.powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13.5px;
}
.powered .logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

@media (max-width: 900px) {
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .biz-side {
    position: static;
  }
  #summary {
    display: none;
  }
}
@media (max-width: 560px) {
  .booking {
    padding: 20px 14px 28px;
  }
  .biz-id h1 {
    font-size: 24px;
  }
  .step-head {
    padding: 16px;
  }
  .step-body {
    padding: 0 14px 18px;
  }
  .done-card {
    padding: 28px 18px;
  }
  .done-time {
    font-size: 30px;
  }
}
.manage-card,
.manage,
.done-card {
  grid-template-columns: minmax(0, 1fr);
}
.manage-card > *,
.step-body {
  min-width: 0;
}
