/* Widget de reserva online. Usa las variables de css/style.css (paleta y tipografía del sitio). */
.bk { font-family: var(--font-sans); color: var(--ink); text-align: left; }
.bk * { box-sizing: border-box; }
.bk-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--navy-light); margin: 0 0 6px; }
.bk-title { font-family: var(--font-serif); color: var(--navy); font-size: 1.45rem; line-height: 1.2; margin: 0 0 6px; }
.bk-sub { color: var(--ink-soft); font-size: .92rem; margin: 0 0 18px; }
.bk-steps { display: flex; gap: 6px; margin: 0 0 18px; }
.bk-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--blue-pale-2); }
.bk-steps i.on { background: var(--navy); }

.bk-list { display: grid; gap: 10px; }
.bk-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--blue-pale); border: 2px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; font-family: var(--font-sans); color: var(--ink);
  transition: border-color .15s, background .15s, transform .15s;
}
@media (hover: hover) { .bk-opt:hover { border-color: var(--navy-light); background: var(--blue-pale-2); } }
.bk-opt:active { transform: scale(.99); }
.bk-avatar {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.15rem;
}
.bk-opt-main { flex: 1; min-width: 0; }
.bk-opt-main strong { display: block; color: var(--navy); font-size: 1rem; }
.bk-opt-main small { color: var(--ink-soft); font-size: .82rem; }
.bk-price { font-weight: 700; color: var(--navy); white-space: nowrap; }

.bk-back { background: none; border: 0; color: var(--navy-light); font: 700 .92rem var(--font-sans); cursor: pointer; padding: 10px 12px 10px 0; margin: -10px 0 4px; min-height: 44px; }
.bk-back:hover { color: var(--navy); }

.bk-summary { background: var(--blue-pale); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .88rem; margin: 0 0 16px; color: var(--ink-soft); }
.bk-summary b { color: var(--navy); }

.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.bk-cal-head strong { font-family: var(--font-serif); color: var(--navy); font-size: 1.05rem; text-transform: capitalize; }
.bk-nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue-pale); color: var(--navy); font-size: 1.1rem; cursor: pointer; }
.bk-nav:disabled { opacity: .35; cursor: default; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-dow { text-align: center; font-size: .7rem; font-weight: 700; color: var(--ink-soft); padding: 4px 0; text-transform: uppercase; }
.bk-day {
  aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; font: 600 .92rem var(--font-sans);
  color: var(--ink-soft); cursor: default; display: grid; place-items: center; max-height: 48px;
}
.bk-day.ok { background: var(--blue-pale); color: var(--navy); cursor: pointer; }
@media (hover: hover) { .bk-day.ok:hover { background: var(--blue-mist); } }
.bk-day.sel { background: var(--navy); color: #fff; }
.bk-day.today { box-shadow: inset 0 0 0 2px var(--blue-mist); }
.bk-day:empty { visibility: hidden; }

.bk-slots-title { font-weight: 700; color: var(--navy); margin: 18px 0 8px; font-size: .95rem; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bk-slot { border: 2px solid var(--blue-mist); background: #fff; border-radius: var(--radius-pill); min-height: 46px; padding: 0; font: 700 .95rem var(--font-sans); color: var(--navy); cursor: pointer; }
.bk-slot:active { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (hover: hover) { .bk-slot:hover { background: var(--navy); color: #fff; border-color: var(--navy); } }

.bk-form { display: grid; gap: 12px; }
.bk-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.bk-field input, .bk-field textarea {
  width: 100%; border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
  font: 500 1rem var(--font-sans); color: var(--ink); background: #fff; min-height: 48px;
}
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--navy-light); }
.bk-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.bk-btn { width: 100%; min-height: 52px; }
.bk-btn[disabled] { opacity: .6; cursor: default; transform: none; }
.bk-err { background: var(--danger-bg); color: var(--danger-ink); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .88rem; margin: 0 0 12px; }
.bk-note { color: var(--ink-soft); font-size: .8rem; margin: 10px 0 0; text-align: center; }
.bk-muted { color: var(--ink-soft); font-size: .9rem; padding: 14px 0; text-align: center; }

.bk-done { text-align: center; padding: 6px 0; }
.bk-check { width: 68px; height: 68px; border-radius: 50%; background: #3d8f73; color: #fff; display: grid; place-items: center; margin: 4px auto 18px; box-shadow: 0 0 0 9px #e4f1ec; }
.bk-check svg { width: 34px; height: 34px; }
.bk-done .bk-title { color: #2f7560; }
.bk-done .bk-summary { text-align: left; }
.bk-link { display: inline-block; margin-top: 12px; color: var(--navy); font-weight: 700; }

/* Modal en la landing: la cruz queda fija y solo scrollea el contenido */
.bk-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; -webkit-tap-highlight-color: transparent; }
.bk-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.bk-modal-backdrop { position: absolute; inset: 0; background: rgba(16, 37, 74, .55); backdrop-filter: blur(2px); }
.bk-modal-panel {
  position: relative; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px; height: auto; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(14px) scale(.97); transition: transform .22s ease;
}
.bk-modal.is-open .bk-modal-panel { transform: none; }
.bk-modal-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 32px 26px 26px; }
.bk-modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue-pale); color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
@media (hover: hover) { .bk-modal-close:hover { background: var(--blue-mist); } }
.bk button, .bk-modal-close { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (max-width: 560px) {
  /* En el celular se abre como hoja desde abajo, casi a pantalla completa */
  .bk-modal { padding: 0; align-items: flex-end; }
  .bk-modal-panel { max-width: none; border-radius: 24px 24px 0 0; max-height: 94dvh; min-height: min(640px, 80dvh); transform: translateY(40px); }
  .bk-modal-scroll { padding: 32px 18px calc(24px + env(safe-area-inset-bottom)); }
  .bk-eyebrow { padding-right: 52px; }
}

/* Página "Mi cita" */
.bk-page { min-height: 100vh; background: var(--blue-pale); display: grid; place-items: start center; padding: 28px 16px; font-family: var(--font-sans); }
.bk-card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 28px 24px; width: 100%; max-width: 460px; }
.bk-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--navy); font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.bk-brand img { height: 36px; width: auto; }
.bk-actions { display: grid; gap: 10px; margin-top: 16px; }

/* Encuesta de satisfacción */
.bk-faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 6px 0 4px; }
.bk-face { border: 2px solid transparent; background: var(--blue-pale); border-radius: var(--radius-sm); padding: 10px 2px 8px; cursor: pointer; font-family: var(--font-sans); display: flex; flex-direction: column; align-items: center; gap: 4px; touch-action: manipulation; }
.bk-face span { font-size: 2rem; line-height: 1.1; }
.bk-face small { font-size: .66rem; color: var(--ink-soft); font-weight: 600; }
.bk-face:active { background: var(--blue-mist); border-color: var(--navy-light); }
.bk-bigface { font-size: 3.4rem; line-height: 1; margin: 2px 0 10px; }
.bk-textarea { width: 100%; border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font: 500 1rem var(--font-sans); color: var(--ink); background: #fff; resize: vertical; }
.bk-textarea:focus { outline: none; border-color: var(--navy-light); }
.bk-check-row { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.bk-check-row input { width: 20px; height: 20px; accent-color: var(--navy); }
.bk-gap { margin-top: 18px; }
a.bk-btn { text-decoration: none; }
.bk-next { background: var(--blue-pale); border-radius: var(--radius-md); padding: 18px 16px; text-align: center; }
.bk-next .bk-eyebrow { margin-bottom: 4px; }
.bk-next-when { font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy); margin: 0 0 4px; }
.bk-next-when::first-letter { text-transform: uppercase; }
.bk-next .bk-check { margin: 0 auto 12px; }

/* iPhone: sin zoom automático al tocar un campo (la letra del campo es de 16 px), sin zoom por doble toque y sin desborde horizontal */
.bk input, .bk textarea, .bk select { font-size: 16px; }
.bk-modal, .bk-modal * { touch-action: manipulation; }
.bk-modal-panel, .bk-modal-scroll, .bk, .bk-form, .bk-field { max-width: 100%; min-width: 0; }
.bk-modal-scroll { overflow-x: hidden; }
.bk-summary, .bk-sub, .bk-title { overflow-wrap: anywhere; }
.bk-field input, .bk-field textarea { max-width: 100%; }
html.bk-lock, html.bk-lock body { overflow: hidden; }
html.bk-lock body { position: fixed; left: 0; right: 0; width: 100%; }

.bk-ts:empty { display: none; }
.bk-ts { display: flex; justify-content: center; }
