/* Flujo de reserva: pantalla completa en móvil, panel de 2 columnas en escritorio */
.booking { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; }
.bk-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }

.bk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 8px 0; }
.bk-head .bk-titles { flex: 1; min-width: 0; text-align: center; }
.bk-stepn { font-size: 13px; color: var(--text-soft); font-weight: 700; }
.bk-head h2 { font-size: 19px; margin: 0; }
.bk-progress { flex-basis: 100%; height: 5px; background: var(--lila-50); margin: 4px 8px 0; border-radius: 99px; overflow: hidden; }
.bk-progress div { height: 100%; background: var(--lila-400); border-radius: 99px; transition: width .25s; }

.bk-body { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 16px; -webkit-overflow-scrolling: touch; }
.bk-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg); }
.bk-foot .form-error { margin-bottom: 8px; }
.bk-aside { display: none; }

.bk-label { font-weight: 800; font-size: 15px; margin: 4px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bk-block { margin-bottom: 22px; }

.svc-chips { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: max-content; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.svc-chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .svc-chips { display: flex; flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.svc-chips .chip small { font-weight: 600; opacity: .75; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.day {
  flex: none; width: 66px; padding: 8px 0; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); cursor: pointer;
}
.day .dw { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.day .dn { font-size: 22px; font-weight: 900; line-height: 1.2; }
.day .dm { font-size: 12px; color: var(--text-soft); }
.day.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.day.is-active .dw, .day.is-active .dm { color: #efe9ff; }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 480px) { .slots { grid-template-columns: repeat(4, 1fr); } }
.slot { min-height: 46px; border: 1.5px solid var(--lila-200); border-radius: var(--radius-sm); background: var(--bg); color: var(--lila-700); font-weight: 800; font-size: 16px; cursor: pointer; }
.slot:hover { background: var(--lila-50); }
.slot.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.bk-loading { display: flex; align-items: center; gap: 10px; color: var(--text-soft); padding: 8px 0; }
.who { border-radius: var(--radius); background: var(--bg-soft); padding: 14px; margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; }
.who .icon-bubble { width: 40px; height: 40px; font-size: 22px; }
.who p { margin: 0; }
.who strong { display: block; }
.who.is-warn { background: var(--danger-bg); color: var(--danger); }
.pets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.species { display: flex; flex-wrap: wrap; gap: 8px; }
details.more { margin: 4px 0 14px; }
details.more summary { cursor: pointer; color: var(--primary); font-weight: 700; padding: 6px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { list-style: none; margin: 0 0 16px; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.summary li span:first-child { color: var(--text-soft); }
.summary li span:last-child { font-weight: 800; text-align: right; }
.edit-links { display: flex; gap: 8px; flex-wrap: wrap; }

.code-input { font-size: 30px !important; letter-spacing: 10px; text-align: center; font-weight: 800; }

.done { text-align: center; padding-top: 16px; }
.done .big { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 46px; background: var(--menta); color: var(--menta-ink); }
.done h2 { font-size: 26px; }
.done .when { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.done .actions { display: grid; gap: 10px; margin-top: 22px; }

.aside-title { font-weight: 900; font-size: 18px; margin-bottom: 12px; }
.aside-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.aside-item .ti { color: var(--primary); font-size: 20px; }
.aside-item .v { font-weight: 700; }
.aside-item .v.empty { color: var(--text-muted); font-weight: 600; }

@media (min-width: 900px) {
  .booking { background: rgba(46, 37, 69, .45); align-items: center; justify-content: center; padding: 24px; }
  .bk-panel {
    flex: none; width: 100%; max-width: 960px; height: min(740px, 100%);
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  }
  .bk-head { grid-column: 1 / -1; padding: 14px 14px 12px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
  .bk-progress { margin: 8px 4px 0; }
  .bk-body { grid-column: 1; grid-row: 2; padding: 24px; }
  .bk-foot { grid-column: 1; grid-row: 3; padding: 14px 24px; }
  .bk-foot .btn { max-width: 340px; float: right; }
  .bk-foot::after { content: ''; display: block; clear: both; }
  .bk-aside { display: block; grid-column: 2; grid-row: 2 / 4; background: var(--bg-soft); border-left: 1px solid var(--border); padding: 24px; overflow-y: auto; }
}
