/* ==========================================================================
   CRUZA · Ventana de reserva de demo (escritorio: dos columnas · móvil: hoja inferior)
   ========================================================================== */
.bk-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; background: rgba(5, 8, 15, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 280ms var(--ease-out-strong), visibility 0s linear 280ms; }
.bk-overlay.active { opacity: 1; visibility: visible; transition: opacity 280ms var(--ease-out-strong); }

.bk { position: relative; width: 940px; max-width: 100%; max-height: min(680px, calc(100vh - 48px)); display: grid; grid-template-columns: 320px 1fr; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 60px 120px -40px rgba(5, 8, 15, .6); transform: translateY(18px) scale(.97); opacity: 0; transition: transform 460ms var(--ease-drawer), opacity 300ms ease; font-family: var(--cruza-font, inherit); }
.bk-overlay.active .bk { transform: none; opacity: 1; }

.bk-close { position: absolute; z-index: 3; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F1F5F9; cursor: pointer; transition: background 200ms ease, transform 160ms ease-out; }
.bk-close:active { transform: scale(.94); }
.bk-close span { position: absolute; left: 13px; top: 19px; width: 14px; height: 2px; border-radius: 2px; background: #0F172A; transform: rotate(45deg); }
.bk-close span + span { transform: rotate(-45deg); }
@media (hover: hover) and (pointer: fine) { .bk-close:hover { background: #E2E8F0; } }

/* ---------- Panel lateral ---------- */
.bk-side { position: relative; display: flex; flex-direction: column; padding: 30px 28px; color: #E2E8F0; background: radial-gradient(120% 70% at 0% 0%, rgba(0, 200, 150, .28), transparent 60%), #0B1220; overflow: hidden; }
.bk-side::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(110, 231, 183, .12); box-shadow: 0 0 0 30px rgba(110, 231, 183, .03), 0 0 0 60px rgba(110, 231, 183, .02); pointer-events: none; }
.bk-side__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .16em; font-size: 13px; color: #fff; }
.bk-side__brand img { filter: brightness(0) invert(1); }
.bk-side__eyebrow { margin: 34px 0 6px; font-size: 13px; font-weight: 700; color: #6EE7B7; }
.bk-side__title { margin: 0 0 22px; font-size: 28px; line-height: 1.08; letter-spacing: -.03em; font-weight: 800; color: #fff; }
.bk-side__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.bk-side__list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #CBD5E1; }
.bk-side__list i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #6EE7B7; background: rgba(0, 200, 150, .12); }
.bk-side__team { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.25; }
.bk-side__team small { font-weight: 500; color: #94A3B8; }
.bk-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #0B1220; background: #6EE7B7; box-shadow: 0 0 0 2px #0B1220; }
.bk-av--2 { margin-left: -16px; background: #A7F3D0; }
.bk-summary { margin-top: auto; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 2px; }
.bk-summary small { font-size: 11.5px; color: #94A3B8; }
.bk-summary b { font-size: 17px; color: #fff; letter-spacing: -.01em; }
.bk-summary span { font-size: 15px; color: #6EE7B7; font-weight: 700; }
.bk-summary em { font-style: normal; font-size: 11.5px; color: #64748B; margin-top: 4px; }
.bk-summary.pulse { animation: bkPulse 500ms var(--ease-out-strong); }
@keyframes bkPulse { 40% { transform: scale(1.03); background: rgba(0, 200, 150, .14); } }

/* ---------- Contenido ---------- */
.bk-main { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 28px 30px 24px; overflow-y: auto; overscroll-behavior: contain; }
.bk-steps { display: flex; gap: 8px; margin-bottom: 18px; padding-right: 48px; }
.bk-steps span { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; color: #94A3B8; background: #F1F5F9; transition: background 250ms ease, color 250ms ease; }
.bk-steps span.on { color: #fff; background: #0F172A; }
.bk-form { display: contents; }
.bk-pane { display: flex; flex-direction: column; flex: 1; animation: bkIn 420ms var(--ease-out-strong) both; }
.bk-pane[hidden] { display: none; }
@keyframes bkIn { from { opacity: 0; transform: translateX(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.bk-pane.back { animation-name: bkInBack; }
@keyframes bkInBack { from { opacity: 0; transform: translateX(-14px); filter: blur(4px); } }

.bk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bk-head h4 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #0F172A; }
.bk-head > span { font-size: 13px; color: #64748B; font-weight: 600; text-transform: capitalize; }
.bk-head--times { margin-top: 22px; }
.bk-legend { display: inline-flex; align-items: center; gap: 6px; text-transform: none !important; }
.bk-legend i { width: 14px; height: 10px; border-radius: 4px; background: repeating-linear-gradient(135deg, #E2E8F0 0 3px, #F8FAFC 3px 6px); border: 1px solid #E2E8F0; }

.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day { flex: 0 0 66px; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; padding: 10px 0 9px; border-radius: 16px; border: 1px solid #E2E8F0; background: #fff; cursor: pointer; font: inherit; color: #0F172A; transition: border-color 200ms ease, background 200ms ease, transform 160ms ease-out, box-shadow 250ms ease; }
.bk-day small { font-size: 11px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .04em; }
.bk-day b { font-size: 21px; letter-spacing: -.02em; }
.bk-day em { font-style: normal; font-size: 10.5px; color: #047857; font-weight: 700; }
.bk-day:active { transform: scale(.96); }
.bk-day[aria-selected="true"] { background: #0F172A; border-color: #0F172A; color: #fff; box-shadow: 0 10px 22px -12px rgba(15, 23, 42, .6); }
.bk-day[aria-selected="true"] small, .bk-day[aria-selected="true"] em { color: #6EE7B7; }
.bk-day:disabled { cursor: not-allowed; opacity: .4; }
@media (hover: hover) and (pointer: fine) { .bk-day:not(:disabled):not([aria-selected="true"]):hover { border-color: #00C896; } }

.bk-times { display: grid; gap: 14px; }
.bk-group small { display: block; font-size: 12px; font-weight: 700; color: #64748B; margin-bottom: 8px; }
.bk-group__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bk-time { position: relative; height: 46px; border-radius: 14px; border: 1px solid #A7F3D0; background: #fff; color: #047857; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms ease-out; }
.bk-time:active { transform: scale(.96); }
.bk-time[aria-pressed="true"] { background: #00C896; border-color: #00C896; color: #fff; box-shadow: 0 10px 20px -10px rgba(0, 200, 150, .8); }
.bk-time:disabled { cursor: not-allowed; color: #94A3B8; border-color: #E2E8F0; background: repeating-linear-gradient(135deg, #F1F5F9 0 6px, #F8FAFC 6px 12px); text-decoration: line-through; }
.bk-time:disabled::after { content: attr(data-why); position: absolute; left: 0; right: 0; bottom: 3px; font-size: 9px; font-weight: 600; text-decoration: none; color: #94A3B8; }
@media (hover: hover) and (pointer: fine) { .bk-time:not(:disabled):not([aria-pressed="true"]):hover { background: #ECFDF5; } }
.bk-empty { padding: 18px; border-radius: 14px; background: #F8FAFC; font-size: 14px; color: #64748B; text-align: center; }

.bk-actions { margin-top: auto; padding-top: 22px; display: flex; justify-content: flex-end; }
.bk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 99px; background: #0F172A; color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; transition: transform 160ms ease-out, background 200ms ease, opacity 200ms ease; }
.bk-btn:active { transform: scale(.97); }
.bk-btn:disabled { opacity: .35; cursor: not-allowed; }
.bk-btn.loading { pointer-events: none; opacity: .8; }
.bk-btn--ghost { background: #F1F5F9; color: #0F172A; }
@media (hover: hover) and (pointer: fine) { .bk-btn:not(:disabled):hover { background: #1E293B; } .bk-btn--ghost:hover { background: #E2E8F0 !important; } }

.bk-back { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: #047857; cursor: pointer; padding: 6px 0; }
.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: #334155; }
.bk-field small { font-weight: 500; color: #94A3B8; }
.bk-field--full { grid-column: 1 / -1; }
.bk-field input, .bk-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #E2E8F0; border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 15px; font-weight: 500; color: #0F172A; background: #F8FAFC; transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease; resize: none; }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: #00C896; background: #fff; box-shadow: 0 0 0 4px rgba(0, 200, 150, .14); }
.bk-field.invalid input { border-color: #EF4444; background: #FEF2F2; }
.bk-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #FEF2F2; color: #B91C1C; font-size: 13.5px; font-weight: 600; }
.bk-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #64748B; text-align: right; }
.bk-note a { color: #047857; font-weight: 700; }

.bk-done { align-items: center; justify-content: center; text-align: center; padding: 20px 0; }
.bk-done__ic svg { width: 76px; height: 76px; }
.bk-done__ic circle { fill: #E6FAF4; stroke: #00C896; stroke-width: 2; stroke-dasharray: 152; stroke-dashoffset: 152; animation: bkDraw 600ms var(--ease-out-strong) forwards; }
.bk-done__ic path { fill: none; stroke: #00C896; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: bkDraw 420ms var(--ease-out-strong) 420ms forwards; }
@keyframes bkDraw { to { stroke-dashoffset: 0; } }
.bk-done h4 { margin: 18px 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: #0F172A; }
.bk-done p { margin: 0 auto 20px; max-width: 400px; font-size: 15.5px; line-height: 1.55; color: #475569; }
.bk-done__card { display: inline-grid; gap: 4px; margin-bottom: 24px; padding: 14px 22px; border-radius: 18px; background: #F8FAFC; border: 1px solid #E2E8F0; font-size: 14px; color: #475569; }
.bk-done__card b { font-size: 16px; color: #0F172A; }
.bk-done__card .pending { justify-self: center; font-size: 11.5px; font-weight: 700; color: #B45309; background: #FEF3C7; border-radius: 99px; padding: 3px 10px; margin-top: 4px; }

/* ---------- Móvil: hoja inferior ---------- */
@media (max-width: 760px) {
  .bk-overlay { padding: 0; place-items: end stretch; }
  .bk { width: 100%; max-height: calc(100dvh - 24px); height: calc(100dvh - 24px); grid-template-columns: 1fr; grid-template-rows: auto 1fr; border-radius: 26px 26px 0 0; transform: translateY(100%); opacity: 1; }
  .bk-overlay.active .bk { transform: none; }
  .bk::before { content: ""; position: absolute; z-index: 4; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 5px; background: rgba(255, 255, 255, .35); }
  .bk-close { top: 14px; right: 14px; background: rgba(255, 255, 255, .12); }
  .bk-close span { background: #fff; }
  .bk-side { padding: 26px 20px 16px; }
  .bk-side::after, .bk-side__list, .bk-side__team, .bk-side__eyebrow { display: none; }
  .bk-side__brand { display: none; }
  .bk-side__title { margin: 4px 60px 12px 0; font-size: 22px; }
  .bk-summary { margin: 0; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; padding: 10px 14px; border-radius: 14px; }
  .bk-summary small, .bk-summary em { display: none; }
  .bk-summary b { font-size: 15px; }
  .bk-summary span { font-size: 14px; }
  .bk-main { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
  .bk-steps { padding-right: 0; margin-bottom: 14px; }
  .bk-group__row { grid-template-columns: repeat(3, 1fr); }
  .bk-fields { grid-template-columns: 1fr; }
  .bk-actions { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); margin: auto -18px calc(-18px - env(safe-area-inset-bottom)); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%); }
  .bk-btn { width: 100%; min-height: 54px; }
  .bk-note { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .bk, .bk-pane, .bk-summary.pulse { animation: none !important; transition: opacity 150ms ease !important; transform: none !important; }
  .bk-done__ic circle, .bk-done__ic path { animation: none; stroke-dashoffset: 0; }
}
