/* Ollynk Booking SDK — panel de reserva. Radios 11/16/999, 4pt, Lucide stroke 2. */
.bk-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.bk-overlay.open { opacity: 1; pointer-events: auto; }
.bk { width: 100%; max-width: 520px; height: 100dvh; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; transform: translateY(24px); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.bk-overlay.open .bk { transform: none; }
@media (min-width: 640px) { .bk-overlay { align-items: center; padding: 24px; } .bk { height: min(860px, calc(100dvh - 48px)); border-radius: 28px; box-shadow: var(--shadow-lg); } }

.bk-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; background: var(--surface); }
.bk-brand { display: flex; align-items: center; gap: 10px; }
.bk-av { width: 34px; height: 34px; border-radius: 10px; background: var(--p); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.bk-k { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bk-n { font-size: 14.5px; font-weight: 800; }
.bk-x { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); }

.bk-steps { display: flex; gap: 4px; padding: 0 16px 10px; background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.bk-steps:empty { display: none; }
.sp { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); flex-shrink: 0; cursor: default; }
.sp.done { cursor: pointer; color: var(--ink); }
.sp.on { color: var(--ink); background: var(--bg); }
.sn { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; }
.sp.on .sn { background: var(--p); border-color: var(--p); color: #fff; }
.sp.done .sn { background: var(--ink); border-color: var(--ink); color: #fff; }
.sp.done .sn .i { width: 11px; height: 11px; stroke-width: 3; }
.sl { display: none; }
.sp.on .sl { display: inline; }
@media (min-width: 420px) { .sl { display: inline; } }
.bk-progress { height: 3px; background: var(--line); flex-shrink: 0; }
.bk-progress div { height: 100%; background: var(--p); transition: width .45s cubic-bezier(.4,0,.2,1); }

.bk-body { flex: 1; overflow-y: auto; padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 14px; animation: fadeIn .25s ease; }
.bk-body > * { flex-shrink: 0; }
@keyframes fadeIn { from { opacity: .4; } to { opacity: 1; } }
.bk-h { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.sub { font-size: 13.5px; color: var(--muted); margin-top: -8px; }
.lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.badge { font-size: 11px; letter-spacing: 0; text-transform: none; color: #fff; background: var(--s); padding: 3px 10px; border-radius: 999px; }
.hint { font-size: 13px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 12px; text-align: center; }

/* verticals + pills */
.verts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.vert { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.vert .i { width: 16px; height: 16px; }
.vert.on { background: var(--ink); color: #fff; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.pills::-webkit-scrollbar, .days::-webkit-scrollbar { display: none; }
.pill { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.pill.on { background: var(--p); border-color: var(--p); color: #fff; }

/* rows (anatomía: media · título · meta · precio · estado) */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 14px 10px 10px; transition: border-color .15s, box-shadow .15s; width: 100%; }
.row:hover { border-color: #CBD5E1; }
.row.on { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 14%, transparent); }
.thumb { width: 72px; height: 50px; border-radius: 10px; overflow: hidden; background: #EEF1F4; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #94A3B8; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.ic { width: 44px; height: 44px; background: var(--p-soft); color: var(--p-ink); }
.row-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-t { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.row-p { text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.row-p b { font-size: 14.5px; font-weight: 800; }
.row-p small { font-size: 11px; color: var(--muted); }
.st { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.st.warn { color: var(--warn); background: var(--warn-bg); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #CBD5E1; flex-shrink: 0; position: relative; }
.on > .radio { border-color: var(--p); }
.on > .radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--p); }
.check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #CBD5E1; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: transparent; }
.check .i { width: 14px; height: 14px; stroke-width: 3; }
.row.on .check { background: var(--p); border-color: var(--p); color: #fff; }
.row .mu { font-size: 9.5px; padding: 2px 7px; }

/* options */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts.col { grid-template-columns: 1fr; }
.opts.grid2 .opt { align-items: flex-start; }
@media (max-width: 400px) { .opts { grid-template-columns: 1fr; } }
.opt { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px; width: 100%; }
.opt > .i { color: var(--muted); }
.opt.on { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 14%, transparent); }
.opt.on > .i { color: var(--p); }
.opt span:not(.radio) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt b { font-size: 13.5px; font-weight: 800; }
.opt small { font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

/* day picker + slots */
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 2px; scroll-behavior: smooth; }
.day { flex: 0 0 52px; padding: 8px 0 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; align-items: center; }
.day .dw { font-size: 9px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.day .dn { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.day .dm { font-size: 9.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.day.on { background: var(--p); border-color: var(--p); color: #fff; }
.day.on .dw, .day.on .dm { color: rgba(255,255,255,.85); }
.day:disabled { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { padding: 9px 0; text-align: center; border-radius: 10px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--line); }
.slot.on { background: var(--p); border-color: var(--p); color: #fff; }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* form */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label > span { font-size: 12px; font-weight: 700; color: var(--ink); }
.form label i { font-style: normal; color: var(--muted); font-weight: 500; }
.in { width: 100%; font: 500 15px var(--f); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; outline: 0; resize: vertical; }
.in:focus { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 14%, transparent); }
.tick { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 13px; color: var(--ink); line-height: 1.45; padding: 4px 0; }
.tick .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #CBD5E1; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: transparent; background: var(--surface); }
.tick .box .i { width: 14px; height: 14px; stroke-width: 3; }
.tick.on .box { background: var(--p); border-color: var(--p); color: #fff; }

.stepper { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); font-size: 20px; font-weight: 700; line-height: 1; }
.stepper b { font-size: 20px; min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper span { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right; }

/* cards */
.card-b { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sum-r { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.sum-r:first-child { border-top: 0; }
.sum-img { width: 64px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.sum-img img { width: 100%; height: 100%; object-fit: cover; }
.sum-r .k, .todo .k { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sum-r .v { font-size: 13.5px; font-weight: 700; }
.sum-r .s { font-size: 12px; color: var(--muted); }
.lines { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lines .tot { font-size: 16px; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.lines .tot small { font-size: 11px; color: var(--muted); font-weight: 600; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; line-height: 1.45; }
.note .i { width: 16px; height: 16px; color: var(--s); margin-top: 1px; }
.note .mu, .legal .mu, .tick .mu { font-size: 9.5px; padding: 2px 7px; vertical-align: 1px; }
.legal { font-size: 11.5px; color: var(--muted); text-align: center; }
.todo { padding: 14px 16px; }
.todo ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.todo li { font-size: 12.5px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }

/* confirmación */
.ok { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; }
.ok .sub { margin: 0; max-width: 340px; }
.ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; animation: pop .4s cubic-bezier(.2,1.4,.4,1); }
.ok-ic .i { width: 30px; height: 30px; stroke-width: 2.5; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.code { font: 800 15px ui-monospace, 'SF Mono', monospace; letter-spacing: .14em; background: var(--surface); border: 1px dashed #CBD5E1; padding: 8px 16px; border-radius: 10px; }

/* footer */
.bk-foot { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.bk-foot[hidden] { display: none; }
.bk-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-sum b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bk-sum b small { font-size: 11px; color: var(--muted); font-weight: 600; }
.bk-sum span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-actions { display: flex; gap: 8px; flex-shrink: 0; }
.bk-actions .btn { height: 46px; }
.bk-actions .btn .i { width: 16px; height: 16px; }
.powered-by { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10.5px; color: var(--muted); }
.powered-by img { height: 13px; width: auto; }

/* Continuar siempre responde: si falta algo, se ve atenuado y explica qué falta */
.bk-actions .btn.primary.wait { background: color-mix(in srgb, var(--p) 45%, #fff); }
.bk-err { flex-shrink: 0; margin: 0 16px 8px; padding: 10px 14px; border-radius: var(--r-sm); background: #FEF2F2; color: #B91C1C; font-size: 13px; font-weight: 700; animation: errIn .2s ease; }
.bk-err[hidden] { display: none; }
@keyframes errIn { from { transform: translateY(6px); opacity: 0; } }
.need { animation: need .5s ease; outline: 2px solid #EF4444 !important; outline-offset: 2px; border-radius: var(--r); }
input.need, textarea.need { border-radius: var(--r-sm); }
@keyframes need { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.hint { display: flex; align-items: center; justify-content: center; gap: 8px; }
