/* ════════════════════════════════════════════════════════════
   Sitio público de reservas (minegocio.turnosweb.online)
   Usa el color de marca del negocio vía --brand inline.
   ════════════════════════════════════════════════════════════ */

.booking-hero { position: relative; padding: 0; }
.booking-cover { height: 200px; background: linear-gradient(120deg, var(--brand), var(--brand-700)); background-size: cover; background-position: center; }
.booking-head { max-width: 880px; margin: -64px auto 0; padding: 0 20px 2rem; position: relative; }
.booking-card-top { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem; display: flex; gap: 1.2rem; align-items: center; }
.biz-logo { width: 84px; height: 84px; border-radius: 20px; background: var(--brand-soft); color: var(--brand-700); display: grid; place-items: center; font-size: 2rem; font-weight: 800; overflow: hidden; flex: none; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); }
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-meta h1 { margin: 0 0 .3rem; font-size: 1.6rem; }
.biz-meta .chips { display: flex; gap: .8rem; flex-wrap: wrap; color: var(--text-muted); font-size: .88rem; }
.biz-meta .chips span { display: inline-flex; align-items: center; gap: .35rem; }

.booking-grid { max-width: 880px; margin: 0 auto; padding: 1.5rem 20px 4rem; }
.steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.step-chip { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--text-muted); padding: .4rem .85rem; border-radius: 99px; background: var(--surface-2); }
.step-chip.active { background: var(--brand-soft); color: var(--brand-700); }
.step-chip.done { color: var(--success); }
.step-chip .n { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: .72rem; }

.service-pick { display: grid; gap: .7rem; }
.service-opt { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--surface); transition: all .15s; }
.service-opt:hover { border-color: var(--brand); }
.service-opt.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.service-opt .bar { width: 5px; align-self: stretch; border-radius: 4px; background: var(--brand); }
.service-opt .info { flex: 1; }
.service-opt .info h4 { margin: 0 0 .25rem; }
.service-opt .info p { margin: 0; font-size: .85rem; }
.service-opt .price { text-align: right; }
.service-opt .price .amt { font-weight: 800; font-size: 1.05rem; }
.service-opt .price .dur { font-size: .8rem; color: var(--text-muted); }

.cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-head h3 { margin: 0; text-transform: capitalize; }
.cal-nav { display: flex; gap: .4rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.cal-grid .dow { text-align: center; font-size: .72rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; padding: .3rem 0; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: .9rem; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; position: relative; color: var(--text); }
.cal-day:hover:not(.disabled) { background: var(--surface-2); }
.cal-day.disabled { color: var(--text-muted); opacity: .4; cursor: not-allowed; }
.cal-day.empty { cursor: default; }
.cal-day.has-slots::after { content: ''; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.cal-day.selected { background: var(--brand); color: #fff; }
.cal-day.today:not(.selected) { border-color: var(--brand); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: .5rem; margin-top: 1.2rem; }
.slot { padding: .6rem; text-align: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .9rem; transition: all .12s; }
.slot:hover { border-color: var(--brand); }
.slot.selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.slots-empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 1.5rem; }

.summary { background: var(--surface-2); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.3rem; }
.summary .row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .92rem; }
.summary .row .k { color: var(--text-muted); }
.summary .row .v { font-weight: 600; }

.confirm-ok { text-align: center; padding: 2rem 1rem; }
.confirm-ok .check { width: 72px; height: 72px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 1.2rem; }

.spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; margin: 1.5rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
  .booking-card-top { flex-direction: column; text-align: center; }
  .biz-meta .chips { justify-content: center; }
}
