/*
 * Public booking page v2 ("Agenda del día"). Loaded only by the
 * external_scheduling_v2 layout, so nothing here touches the CRM or the old
 * page. Everything hangs from body.bk; the accent comes from the studio's
 * Booking::Profile (--accent, set inline by the layout), PF violet otherwise.
 *
 * Public pages are the studio's, not PerfectFlow's: with an accent set, no PF
 * hue appears (gradient, lime, violet). The contrast-critical colours
 * (--accent-strong/--on-accent for buttons, --accent-ink for text) are
 * computed in Ruby (Booking::BrandPalette) so they pass AA; the PF look only
 * lives under .bk-pf, the fallback for a studio without a colour.
 */
.bk {
  --pf-violet: #7A0FFE; --pf-lime: #D9FF57; --pf-ink: #12101A;
  --pf-grad: linear-gradient(125deg, #D600FE 0%, #7A0FFE 48%, #011EFE 100%);
  --accent: #7A0FFE;
  --accent-strong: var(--accent); --on-accent: #fff; --on-hero: #fff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--tint-base));
  --accent-ink: color-mix(in srgb, var(--accent) 80%, black);
  --bg: #F7F7FB; --line: #E7E5EF; --muted: #6B6880; --text: #1E1B2E; --text-2: #4A4660;
  /* Card surfaces and what the soft accent tints are mixed with: white here,
     the dark surface under :root[data-theme="dark"] (end of this file). */
  --card: #fff; --tint-base: white;
  --font: Inter, system-ui, sans-serif;
  --display: Poppins, Inter, system-ui, sans-serif;
  /* Badges and the selected day: brand colours here, PF lime/ink under .bk-pf. */
  --hl: var(--accent-strong); --on-hl: var(--on-accent);
  --day-on: var(--accent-strong); --on-day: var(--on-accent);
  /* Only shades of the accent: light at the top, the AA-safe dark at the end
     so the white title sits on the darkest part. */
  --hero: linear-gradient(125deg, color-mix(in srgb, var(--accent) 82%, #ffffff) 0%, var(--accent) 38%, var(--accent-strong) 100%);
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.bk.bk-pf { --hero: var(--pf-grad); --hl: var(--pf-lime); --on-hl: var(--pf-ink); --day-on: var(--pf-ink); --on-day: #fff; }
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
.bk button { font: inherit; color: inherit; cursor: pointer; }
.bk svg { flex-shrink: 0; }
.bk img { max-width: 100%; }
.bk a { color: inherit; }
/* The shared form toggles boxes with tw-hidden and the hidden attribute; both
   must win over this page's display rules. */
.bk .tw-hidden, .bk [hidden] { display: none !important; }
.bk .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
html:has(body.bk) { scroll-behavior: smooth; }
/* The shared booking/store forms use Tailwind's brand scale; its colours come
   from --pf-brand-* (set from the accent), its shadow is PF violet: retinted. */
.bk .tw-shadow-brand { box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--accent-strong) 70%, transparent) !important; }
.bk input[type="checkbox"], .bk input[type="radio"] { accent-color: var(--accent-strong); }
.bk :focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* ── Photos (a soft accent tint while loading or when missing) ── */
.bk-pic { display: block; position: relative; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, #fff), color-mix(in srgb, var(--accent) 75%, #000)); }
.bk-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Hero: studio photo under the brand gradient ── */
.bk-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-hero); padding: 22px 0 96px; }
.bk-hero-photo { position: absolute; inset: 0; z-index: -3; }
.bk-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.bk-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--hero); opacity: .86; }
.bk-hero.no-photo::before { opacity: 1; }
.bk-hero-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bk-logo { width: 46px; height: 46px; border-radius: 15px; background: #fff; padding: 3px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; color: var(--accent-ink-paper, color-mix(in srgb, var(--accent) 80%, black)); font-weight: 700; font-family: var(--display); }
.bk-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.bk-logo.contain img { object-fit: contain; }
.bk-hero-top b { font-weight: 650; font-size: 15px; display: block; }
.bk-hero-top small { display: block; opacity: .88; font-size: 12.5px; }
.bk-id { min-width: 0; }
.bk-id b, .bk-id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.bk-nav a { color: inherit !important; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; opacity: .94; }
.bk-nav a:hover { background: rgba(255, 255, 255, .14); opacity: 1; }
.bk-nav .rb { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.bk-nav .rb svg { width: 18px; height: 18px; display: block; }
.bk-hero-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 46px; }
.bk-pill { display: inline-block; background: #fff; color: var(--accent-ink-paper, color-mix(in srgb, var(--accent) 80%, black)); font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); }
.bk-pf .bk-pill { background: var(--pf-lime); color: var(--pf-ink); border: 2px solid var(--pf-ink); box-shadow: 3px 3px 0 var(--pf-ink); transform: rotate(-2deg); }
.bk-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.4vw, 64px); line-height: 1; letter-spacing: -.01em; margin: 16px 0 10px; text-shadow: 0 2px 24px rgba(0, 0, 0, .15); }
.bk-hero p { margin: 0; max-width: 540px; opacity: .95; font-size: 16px; line-height: 1.5; }
.bk-stats { display: flex; gap: 10px; }
.bk-stat { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 16px; padding: 12px 16px; min-width: 116px; }
.bk-stat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.05; }
.bk-stat small { font-size: 12px; opacity: .9; }
.bk-stat[hidden] { display: none; }

/* ── Day strip + filters ── */
.bk-picker { position: relative; margin-top: -66px; background: var(--card); border-radius: 22px; box-shadow: 0 20px 50px -24px rgba(18, 16, 26, .35); padding: 16px; }
.bk-strip-row { display: flex; gap: 8px; align-items: stretch; }
.bk-strip { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.bk-wk { border: 0; background: var(--bg); border-radius: 14px; width: 34px; display: grid; place-items: center; color: var(--muted); }
.bk-wk:disabled { opacity: .35; cursor: default; }
.bk-wk svg { width: 18px; height: 18px; }
.bk-d { border: 0; background: var(--bg); border-radius: 16px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: background .15s; min-width: 0; }
.bk-d:hover { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.bk-d small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bk-d b { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.bk-d span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bk-d.on { background: var(--day-on); color: var(--on-day); }
.bk-d.on small, .bk-d.on span { color: inherit; opacity: .8; }
.bk-d.empty b { opacity: .45; }
.bk-frow { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.bk-frow:empty, .bk-frow.is-empty { display: none; }
.bk-seg { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.bk-seg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 5px 12px 5px 5px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.bk-seg button .bk-pic, .bk-seg button .bk-dot { width: 26px; height: 26px; border-radius: 50%; }
.bk-seg button.all { padding: 7px 14px; }
.bk-seg button:hover { color: var(--text); background: var(--bg); }
.bk-seg button.on { background: var(--accent-soft); color: var(--accent-ink); }
.bk-coaches { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bk-coaches > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bk-coaches div { display: flex; padding-left: 6px; }
.bk-coaches button { border: 0; padding: 0; background: none; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--card); transition: transform .15s, opacity .15s; }
.bk-coaches button:hover { transform: translateY(-2px); }
.bk-coaches.filtering button { opacity: .35; }
.bk-coaches.filtering button.on { opacity: 1; box-shadow: 0 0 0 2.5px var(--card), 0 0 0 4.5px var(--accent); }

/* Avatars: a photo, or initials on a tint of the accent */
.bk-av { display: inline-grid; place-items: center; border-radius: 50%; font-weight: 700; letter-spacing: .02em; flex-shrink: 0; overflow: hidden; background: var(--accent-soft); color: var(--accent-ink); }
.bk-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Layout: classes + panel ── */
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; margin: 26px 0 20px; }
.bk-dayhead { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; gap: 12px; }
.bk-dayhead h2 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0; }
.bk-dayhead span { color: var(--muted); font-size: 13.5px; }
.bk-alert { display: flex; gap: 10px; align-items: flex-start; background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 0 0 14px; }
.bk-alert svg { width: 18px; height: 18px; margin-top: 1px; }

/* ── Class cards ── */
.bk-card { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 10px 20px 10px 10px; margin-bottom: 14px; transition: border-color .15s, box-shadow .15s; }
.bk-card:hover { box-shadow: 0 16px 34px -22px rgba(18, 16, 26, .4); }
.bk-card.sel { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.bk-card.past { opacity: .55; }
.bk-cphoto { position: relative; border-radius: 16px; overflow: hidden; min-height: 196px; cursor: pointer; border: 0; padding: 0; background: none; text-align: left; }
.bk-cphoto .bk-pic { position: absolute; inset: 0; transition: transform .5s ease; }
.bk-card:hover .bk-cphoto .bk-pic { transform: scale(1.04); }
.bk-cphoto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 16, 26, 0) 40%, rgba(18, 16, 26, .72) 100%); }
.bk-ctime { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; }
.bk-ctime b { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1; }
.bk-ctime b em { font-style: normal; font-size: 15px; margin-left: 3px; }
.bk-ctime small { display: block; font-size: 12.5px; opacity: .92; margin-top: 3px; }
.bk-cav { position: absolute; right: 12px; bottom: 12px; z-index: 1; border-radius: 50%; box-shadow: 0 0 0 3px var(--card); display: grid; }
.bk-cfull { position: absolute; left: 12px; top: 12px; z-index: 1; background: #FFF3BF; color: #6B4E00; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.bk-cbody { padding: 10px 0; min-width: 0; display: flex; flex-direction: column; }
.bk-ctop { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.bk-ctop h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.bk-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; flex-shrink: 0; }
.bk-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.bk-desc { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.bk-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bk-meta svg { width: 15px; height: 15px; }
.bk-meta .who { color: var(--text); font-weight: 600; }
.bk-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; flex-wrap: wrap; }
.bk-cap { display: flex; flex-direction: column; gap: 5px; margin-right: auto; }
.bk-cap b { font-size: 12.5px; }
.bk-cap.few b { color: #B42318; }
.bk-dots { display: inline-flex; gap: 3px; flex-wrap: wrap; max-width: 150px; }
.bk-dots i { width: 8px; height: 8px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, var(--tint-base)); }
.bk-dots i.on { background: var(--accent); }
.bk-cta { border: 0; border-radius: 12px; background: var(--accent-strong); color: var(--on-accent) !important; font-weight: 650; font-size: 14px; padding: 12px 22px; transition: filter .15s; }
.bk-cta:hover { filter: brightness(1.1); }
.bk-cta.wait { background: #FFF3BF; color: #6B4E00 !important; }
.bk-none { text-align: center; padding: 40px 20px; background: var(--card); border-radius: 20px; border: 1.5px dashed var(--line); color: var(--muted); line-height: 1.6; }
.bk-none button { border: 0; background: none; color: var(--accent-ink); font-weight: 650; text-decoration: underline; padding: 0; }
.bk-skel { height: 216px; border-radius: 22px; margin-bottom: 14px; background: linear-gradient(90deg, #eeedf3 25%, #f6f5fa 50%, #eeedf3 75%); background-size: 200% 100%; animation: bk-shimmer 1.2s infinite; }
@keyframes bk-shimmer { to { background-position: -200% 0; } }

/* ── Panel «Tu reserva» ── */
.bk-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 16px; scrollbar-width: thin; }
.bk-panel h3.bk-ph { margin: 4px 4px 4px; font-family: var(--display); font-weight: 600; font-size: 20px; }
.bk-panel .bk-sub { margin: 0 4px 14px; color: var(--muted); font-size: 13.5px; }
.bk-how { list-style: none; padding: 0; margin: 16px 4px 0; display: flex; flex-direction: column; gap: 10px; }
.bk-how li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.bk-how li > span { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.bk-panel-x { display: none; }
.bk-scrim { display: none; }
.bk-active[hidden], .bk-idle[hidden] { display: none; }

/* Class detail in the panel */
.bk-cd-photo { position: relative; margin-bottom: 30px; }
.bk-cd-photo .bk-pic { aspect-ratio: 16 / 9; border-radius: 18px; }
.bk-cd-photo .bk-tag { position: absolute; left: 12px; top: 12px; box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); background: var(--card); }
.bk-cd-av { position: absolute; left: 16px; bottom: -26px; border-radius: 50%; box-shadow: 0 0 0 4px var(--card), 0 8px 20px -8px rgba(0,0,0,.4); display: grid; }
.bk-cd-title { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.1; margin: 10px 4px 6px; overflow-wrap: anywhere; }
.bk-cd-when { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; margin: 0 4px; }
.bk-cd-when svg, .bk-cd-meta svg { width: 16px; height: 16px; color: var(--muted); }
.bk-cd-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 4px 0; font-size: 13px; color: var(--muted); }
.bk-cd-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bk-cd-coach { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px; background: var(--bg); border-radius: 14px; }
.bk-cd-coach b { display: block; font-size: 14px; }
.bk-cd-coach small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.bk-cd-price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 4px 0; font-size: 13.5px; color: var(--muted); }
.bk-cd-price b { color: var(--text); font-size: 15px; }
.bk-cd-price del { margin-right: 6px; }

/* Venue compact */
.bk-vc { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: left; width: 100%; }
.bk-vc-pic { width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; }
.bk-vc > div { flex: 1; min-width: 0; }
.bk-vc b { display: block; font-size: 13.5px; }
.bk-vc small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.bk-vc-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 12.5px; font-weight: 650; color: var(--accent-ink) !important; text-decoration: none; }
.bk-vc-go:hover { text-decoration: underline; }
.bk-vc-go svg { width: 14px; height: 14px; }

/* Package card (photo + remaining) */
.bk .bk-pkc { color: #fff; }
.bk-pkc { position: relative; width: 100%; border-radius: 18px; overflow: hidden; color: #fff; text-align: left; min-height: 150px; display: flex; text-decoration: none; }
.bk-pkc > .bk-pic { position: absolute; inset: 0; }
.bk-pkc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,16,26,.05) 0%, rgba(18,16,26,.8) 100%); }
.bk-pkc-in { position: relative; z-index: 1; margin-top: auto; padding: 16px; width: 100%; display: flex; flex-direction: column; gap: 4px; }
.bk-pkc-in small { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 35%, white); }
.bk-pf .bk-pkc-in small { color: var(--pf-lime); }
.bk-pkc-in > b { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.1; }
.bk-pkc-in span { font-size: 13px; opacity: .94; }
.bk-pkc-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.3); overflow: hidden; margin: 6px 0 2px; }
.bk-pkc-bar i { display: block; height: 100%; background: color-mix(in srgb, var(--accent) 45%, white); border-radius: 6px; }
.bk-pf .bk-pkc-bar i { background: var(--pf-lime); }

/* Stepper and booking form inside the panel */
.bk-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 18px 0 14px; }
.bk-steps li { flex: 1; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #A19DB4; padding-top: 8px; border-top: 3px solid var(--line); min-width: 0; }
.bk-steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--line); color: var(--muted); flex-shrink: 0; }
.bk-steps li span svg { width: 12px; height: 12px; }
.bk-steps li.on { color: var(--text); border-color: var(--accent); }
.bk-steps li.on span { background: var(--accent-strong); color: var(--on-accent); }
.bk-steps li.done { color: var(--accent-ink); border-color: var(--accent); }
.bk-steps li.done span { background: var(--accent-soft); color: var(--accent-ink); }
.bk-form [class*="tw-px-5"] { padding-left: 0 !important; padding-right: 0 !important; }
.bk-form .js-book-input, .bk-form .js-guest-input, .bk-form #promo-code { height: 46px; padding-top: 0 !important; padding-bottom: 0 !important; padding-right: 14px !important; border: 1.5px solid var(--line) !important; border-radius: 12px !important; background: var(--card) !important; font-size: 15px !important; }
.bk-form .js-book-input:focus, .bk-form .js-guest-input:focus, .bk-form select:focus, .bk-form input:focus-visible { border-color: var(--accent) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent) !important; outline: none; }
.bk-form .tw-sr-only + * { margin-top: 0; }
.bk-form :is(.js-book-input, .js-guest-input, #promo-code):not(.iti__tel-input) { padding-left: 14px !important; }
/* Phone with country (intl-tel-input, see shared/_phone_field): the library
   writes the input's padding-left inline to clear the flag and «+507»; no
   rule here may override it. Flag, arrow and code sit centred in the input. */
.bk .iti { display: block; width: 100%; }
.bk .iti input.iti__tel-input { min-height: 46px; }
.bk .iti__country-container { top: 0; bottom: 0; display: flex; align-items: center; padding: 0; }
.bk .iti__selected-country { height: 100%; border-radius: 12px 0 0 12px; background: transparent; }
.bk .iti__selected-country-primary { padding: 0 6px 0 14px; height: 100%; display: flex; align-items: center; }
.bk .iti__selected-dial-code { margin-left: 6px; font-size: 15px; color: var(--text); }
.bk .iti__selected-country:hover .iti__selected-country-primary, .bk .iti__selected-country:focus-visible .iti__selected-country-primary { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.iti--container .iti__search-input:focus, .bk .iti__search-input:focus { outline: none; border-color: var(--accent, #7c3aed); }
.iti--container .iti__country.iti__highlight { background: color-mix(in srgb, var(--accent, #7c3aed) 10%, var(--tint-base)); }
.bk-flabel { display: block; font-size: 12.5px; font-weight: 600; margin: 0 0 6px; }
.bk-hint { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; font-size: 12.5px; color: var(--accent-ink); background: var(--accent-soft); padding: 9px 12px; border-radius: 10px; }
.bk-hint svg { width: 16px; height: 16px; }
.bk-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; background: #FFF8D6; color: #6B4E00; margin: 0 0 12px; }
.bk-note svg { width: 18px; height: 18px; margin-top: 1px; }
.bk-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: var(--accent-strong) !important; color: var(--on-accent) !important; font-weight: 650; font-size: 15px; transition: transform .1s, filter .15s; text-decoration: none; box-shadow: none !important; padding: 10px 16px; text-align: center; }
.bk-btn:hover { filter: brightness(1.08); }
.bk-btn:active { transform: scale(.99); }
.bk-btn.ghost { background: var(--card) !important; color: var(--text) !important; border: 1.5px solid var(--line); min-height: 44px; font-size: 13.5px; }
.bk-btn svg { width: 16px; height: 16px; }
.bk-btn:disabled { opacity: .6; cursor: wait; }
.bk-link { display: flex; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 6px 4px; width: 100%; text-decoration: none; }
.bk-link svg { width: 14px; height: 14px; }
.bk-step2 > * + * { margin-top: 10px; }
.bk-form #pack-box > div { background: color-mix(in srgb, var(--accent) 6%, var(--tint-base)) !important; border: 1.5px solid var(--accent); }
.bk-opt { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--text) !important; margin-top: 8px; }
.bk-opt:hover { border-color: var(--accent); }
.bk-opt > div { flex: 1; min-width: 0; }
.bk-opt b { display: block; font-size: 14px; }
.bk-opt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.bk-thumb { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.bk-amt { font-weight: 700; white-space: nowrap; }
.bk-ptag { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--hl); color: var(--on-hl); white-space: nowrap; }

/* ── Packages ── */
.bk-sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 44px 0 16px; }
.bk-sec-h small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.bk-sec-h h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; margin: 6px 0 0; }
.bk-sec-h p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 420px; }
.bk-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bk-pk { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.bk-pk:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(18, 16, 26, .45); }
.bk-pk > .bk-pic { aspect-ratio: 16 / 10; }
.bk-pk em { position: absolute; top: 14px; left: 14px; z-index: 1; font-style: normal; background: var(--hl); color: var(--on-hl); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); }
.bk-pf .bk-pk em { border: 2px solid var(--pf-ink); box-shadow: 2px 2px 0 var(--pf-ink); }
.bk-pk-b { padding: 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.bk-pk-b small { color: var(--muted); font-size: 13px; }
.bk-pk-b b { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.15; }
.bk-pk-b strong { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.bk-pk-b .bk-btn { margin-top: auto; min-height: 46px; }
.bk-pk-b .bk-pk-sp { flex: 1; min-height: 10px; }
.bk-pk.best { border-color: var(--accent); }

/* ── The studio ── */
.bk-studio { margin: 0 0 24px; }
.bk-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 190px 190px; gap: 10px; }
.bk-gallery .bk-pic { border-radius: 18px; }
.bk-gallery .bk-pic:first-child { grid-row: span 2; }
.bk-gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 340px; }
.bk-gallery.n1 .bk-pic:first-child { grid-row: auto; }
.bk-gallery.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 340px; }
.bk-gallery.n2 .bk-pic:first-child { grid-row: auto; }
.bk-gallery.n3 { grid-template-columns: 2fr 1fr; }
.bk-gallery.n4 .bk-pic:nth-child(4) { grid-column: span 2; }
.bk-st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.bk-st-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 18px; min-width: 0; }
.bk-st-card.wide { grid-column: span 2; }
.bk-st-card h4 { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bk-st-card h4 + * { margin-top: 0; }
.bk-st-card * + h4 { margin-top: 18px; }
.bk-st-id { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; min-width: 0; }
.bk-st-id > div { min-width: 0; }
.bk-st-id b { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.1; }
.bk-st-id small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.bk-map { position: relative; border-radius: 16px; overflow: hidden; height: 220px; background: #E9EEF2; border: 1px solid var(--line); }
.bk-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.bk-addr { display: flex; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.bk-addr svg { width: 17px; height: 17px; color: var(--accent-strong); margin-top: 1px; }
.bk-howto { margin: 6px 0 0 25px; font-size: 13px; color: var(--muted); line-height: 1.5; white-space: pre-line; }
.bk-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bk-btns a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 13.5px; font-weight: 650; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); color: var(--text); }
.bk-btns a svg { width: 16px; height: 16px; }
.bk-btns a.pri { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.bk-hours { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bk-hours td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.bk-hours td + td { text-align: right; font-weight: 600; padding-left: 12px; white-space: nowrap; }
.bk-hours tr:last-child td { border-bottom: 0; }
.bk-am { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-am span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.bk-am svg { width: 13px; height: 13px; }
.bk-pol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bk-pol li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.bk-pol li > .ic { width: 26px; height: 26px; border-radius: 9px; background: #FFF8D6; color: #8A6500; display: grid; place-items: center; flex-shrink: 0; }
.bk-pol li > .ic svg { width: 15px; height: 15px; }
.bk-parking { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; white-space: pre-line; }
.bk-pfoot { display: flex; justify-content: center; padding: 18px 0 36px; }
.bk-powered { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; text-decoration: none; }
.bk-powered b { font-weight: 600; color: var(--text); }

/* ── Confirmation page ── */
.bk-done-wrap { max-width: 560px; margin: -66px auto 40px; position: relative; }
.bk-done { background: var(--card); border-radius: 22px; box-shadow: 0 20px 50px -24px rgba(18, 16, 26, .35); padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bk-done h1 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 4px 0 0; line-height: 1.2; }
.bk-done p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.bk-done .bk-small { font-size: 12.5px; color: var(--muted); }
.bk-done-hero { position: relative; width: 100%; margin-bottom: 26px; }
.bk-done-hero .bk-pic { aspect-ratio: 16 / 7; border-radius: 18px; }
.bk-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.bk-pf .bk-ok { background: var(--pf-lime); color: var(--pf-ink); }
.bk-ok.wait { background: #FFF8D6; color: #8A6500; }
.bk-ok svg { width: 30px; height: 30px; }
.bk-done-hero .bk-ok { position: absolute; left: 50%; bottom: -28px; margin-left: -32px; box-shadow: 0 0 0 5px var(--card); }
.bk-cal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.bk-box { width: 100%; text-align: left; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; background: var(--bg); }
.bk-box.warn { background: #FFF8D6; color: #6B4E00; }
.bk-box b { display: block; }

/* ── Reviews (Booking::PublicReviews) ── */
.bk-rate { display: inline-flex; align-items: baseline; gap: 5px; margin-top: 6px; font-size: 13px; }
.bk-rate b { color: var(--accent-ink); font-weight: 700; }
.bk-rate small { color: var(--muted); font-size: 12.5px; }
.bk-stars { display: inline-flex; gap: 1px; font-size: 13px; line-height: 1; }
.bk-stars i { font-style: normal; color: color-mix(in srgb, var(--accent) 22%, var(--tint-base)); }
.bk-stars i.on { color: var(--accent-strong); }
.bk-revs { margin-top: 14px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, var(--tint-base)); }
.bk-revs-h { display: flex; align-items: center; gap: 8px; margin: 0 2px 4px; }
.bk-revs-h b { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--accent-ink); }
.bk-stars.sm { font-size: 11px; }
.bk-revs-h span:last-child { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.bk-revs ul { list-style: none; margin: 0; padding: 0; }
.bk-revs li { padding: 10px 2px; border-top: 1px solid color-mix(in srgb, var(--accent) 14%, var(--tint-base)); }
.bk-revs li:first-child { border-top: 0; }
.bk-revs li[hidden] { display: none; }
.bk-revs li p { margin: 5px 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.bk-revs li small { font-size: 12px; color: var(--muted); font-weight: 600; }
.bk-revs .bk-link { padding: 6px 2px 0; color: var(--accent-ink); }

/* ── «Elegir fecha» month picker ── */
.bk-datebtn { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; border: 1.5px solid var(--line); background: var(--card); color: var(--accent-ink); border-radius: 14px; padding: 0 14px; font-size: 13.5px; font-weight: 650; }
.bk-datebtn svg { width: 17px; height: 17px; }
.bk-datebtn:hover, .bk-datebtn[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
.bk-mcal { position: absolute; right: 16px; top: calc(100% - 6px); z-index: 60; width: 340px; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(18, 16, 26, .45); padding: 14px; }
.bk-mcal[hidden] { display: none; }
.bk-mcal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bk-mcal-head b { font-family: var(--display); font-weight: 600; font-size: 16px; text-transform: capitalize; }
.bk-mcal-head .bk-wk { height: 34px; }
.bk-mcal-dow, .bk-mcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bk-mcal-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.bk-mcal-grid { min-height: 236px; align-content: start; }
.bk-cd { position: relative; height: 40px; border: 0; border-radius: 12px; background: var(--bg); font-weight: 650; font-size: 14px; color: var(--text); }
.bk-cd i { position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent-strong); }
.bk-cd.none { background: transparent; color: var(--muted); font-weight: 500; }
.bk-cd.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.bk-cd:hover:not(:disabled) { background: var(--accent-soft); }
.bk-cd.sel { background: var(--day-on); color: var(--on-day); }
.bk-cd.sel i { background: currentColor; }
.bk-cd:disabled { background: transparent; color: color-mix(in srgb, var(--muted) 45%, var(--tint-base)); cursor: not-allowed; text-decoration: line-through; font-weight: 400; }
.bk-mcal-load { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0; }
.bk-mcal-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.bk-mcal-note:empty { display: none; }
.bk-mcal .bk-link { display: none; }
.bk-mcal-scrim { display: none; }

/* ── Packages store (packages_store/*.html+v2) ── */
.bk-store .bk-layout { margin-top: 30px; }
.bk-store-list { min-width: 0; }
.bk-store-redeem { margin: 0 0 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; }
.bk-store-redeem + .bk-sec-h { margin-top: 0; }
.bk-store-redeem > div, .bk-store-redeem > form { margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.bk-packs-store { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-pk-b .bk-del { font-size: 18px; font-weight: 500; color: var(--muted); margin-right: 8px; }
.bk-pk.best { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.bk-pk .bk-btn svg { width: 16px; height: 16px; }
/* Static, not sticky: the checkout is taller than a screen and its button
   must be reachable by scrolling the page. */
.bk-store .bk-panel.bk-store-panel { position: static; max-height: none; overflow: visible; }
/* The buy link of a service sold without a date (service_purchases/new+v2). */
.bk-buy .bk-panel.bk-store-panel { align-self: start; }
@media (max-width: 980px) { .bk-buy .bk-panel.bk-store-panel { width: 100%; align-self: stretch; } }
.bk-buy-info { display: flex; flex-direction: column; gap: 18px; }
.bk-buy-photo { border-radius: 22px; overflow: hidden; border: 1.5px solid var(--line); background: var(--card); }
.bk-buy-photo img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: top; }
.bk-buy-text { background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 18px 20px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.bk-buy-form { display: flex; flex-direction: column; gap: 20px; margin-top: 6px; }
.bk-buy-group { display: flex; flex-direction: column; gap: 10px; }
.bk-buy-h { margin: 0 2px 2px; padding: 0; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--text); }
.bk-buy-hint { margin: 0 2px; font-size: 13px; color: var(--muted); }
.bk-buy-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.bk-buy-terms input { margin-top: 3px; width: 16px; height: 16px; }
.bk-buy-terms a { color: var(--accent-ink); font-weight: 650; }
@media (max-width: 720px) { .bk-buy-photo img { max-height: 440px; } }
.bk-store-panel .bk-pkc { margin-bottom: 4px; min-height: 130px; }
.bk-store-form .tw-py-6 { padding-top: 14px !important; padding-bottom: 14px !important; }
.bk-store-form .tw-pb-7 { padding-bottom: 4px !important; }
.bk-store-form #store-submit { border: 0; min-height: 50px; border-radius: 14px; background: var(--accent-strong) !important; color: var(--on-accent) !important; font-size: 15px; }
.bk-store-panel.is-loading .bk-store-form, .bk-store-panel.is-loading .bk-how { opacity: .55; transition: opacity .15s; pointer-events: none; }
.bk-store-panel h3[tabindex="-1"]:focus { outline: none; }
.bk-store-panel h3[tabindex="-1"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.bk-store-form h3 { font-family: var(--display); }
.bk-store-form .tw-bg-paper-100 { background: color-mix(in srgb, var(--accent) 6%, var(--tint-base)) !important; }
.bk-store-form select, .bk-store-form input[type="text"], .bk-store-form input[type="email"], .bk-store-form input[type="tel"] { border: 1.5px solid var(--line) !important; background: var(--card) !important; }
.bk-store-form select:focus, .bk-store-form input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent) !important; outline: none; }
/* The old store's states (waiting, manual notice…) inside the v2 frame. */
.bk-legacy { text-align: center; }
.bk-legacy > div { box-shadow: 0 20px 50px -24px rgba(18, 16, 26, .35) !important; }
.bk-legacy h1 { font-family: var(--display); font-weight: 600 !important; }
.bk-legacy .tw-bg-mint-50 { background: var(--accent-soft) !important; }
.bk-legacy .tw-text-mint-700 { color: var(--accent-ink) !important; }
.bk-legacy .tw-text-brand-600 { color: var(--accent-ink) !important; }

/* ── Option cards in the store's checkout: packages and ways to pay. Real
   radios (visually hidden, still focusable and arrow-navigable); the card
   shows the state with :has(). ── */
.bk-choices { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; container-type: inline-size; }
.bk-choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.bk-choice:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.bk-choice-in { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin: -10px 0 0; opacity: 0; pointer-events: none; }
.bk-choice:has(.bk-choice-in:checked), .bk-choice.is-fixed { border-color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 7%, var(--tint-base)); box-shadow: inset 0 0 0 1px var(--accent-strong); cursor: default; }
.bk-choice:has(.bk-choice-in:focus-visible) { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.bk-choice-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C4C1D2; background: var(--card); flex-shrink: 0; }
.bk-choice:has(.bk-choice-in:checked) .bk-choice-dot, .bk-choice.is-fixed .bk-choice-dot { border-color: var(--accent-strong); background: var(--accent-strong); box-shadow: inset 0 0 0 4px var(--card); }
.bk-choice-pic { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.bk-choice-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bk-choice-b b { font-size: 15px; font-weight: 650; line-height: 1.25; }
.bk-choice-b small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.bk-choice-p { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; text-align: right; }
.bk-choice-p strong { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-choice-was { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bk-off { font-style: normal; font-size: 11.5px; font-weight: 700; line-height: 1.5; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.bk-change { display: inline-block; margin: 10px 2px 0; font-size: 13px; font-weight: 600; color: var(--accent-ink) !important; }
/* Ways to pay: icon tile, label + what happens next, card marks. */
.bk-choice-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-ink); }
.bk-choice-ic svg { width: 20px; height: 20px; }
.bk-marks { display: flex; gap: 4px; flex-shrink: 0; }
.bk-marks svg { width: 34px; height: 22px; display: block; }
.bk-pay [data-metodo-panel] { border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); margin-top: -2px; }
.bk-legacy .tw-bg-paper-100:has(> .bk-choice) { background: transparent !important; }
.bk-legacy .bk-choice + [data-panel] { padding-top: 12px; }
/* The summary card above the button (filled by _purchase_script). */
.bk-sum { margin: 2px 0 16px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); font-size: 14px; }
.bk-sum-h { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bk-sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 3px 0; color: var(--text-2); }
.bk-sum-row > span:first-child { min-width: 0; }
.bk-sum-amt { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.bk-sum-row.is-off .bk-sum-amt, .bk-sum-row.is-gift .bk-sum-amt { color: var(--accent-ink); font-weight: 600; }
.bk-sum-row.is-note { font-size: 12.5px; color: var(--muted); }
.bk-sum-row.is-total { align-items: center; margin-top: 8px; padding-top: 12px; border-top: 1.5px solid var(--line); color: var(--text); font-weight: 700; font-size: 15px; }
.bk-sum-row.is-total .bk-sum-amt { font-family: var(--display); font-size: 22px; font-weight: 700; }
.bk-sum-row.is-total small { margin-left: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
/* The summary already says the total: the card form's own line would repeat it. */
.bk-store-form #pay-box > .tw-flex:first-child { display: none; }
/* Narrow column (the panel on desktop is ~380px, a phone less): the card marks
   go under the label instead of squeezing it. */
@container (max-width: 440px) {
  .bk-choice:has(.bk-marks) { flex-wrap: wrap; row-gap: 8px; }
  .bk-choice .bk-marks { width: 100%; padding-left: 84px; }
  .bk-choice-pic { width: 44px; height: 44px; }
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .bk-card { grid-template-columns: 200px minmax(0, 1fr); }
  .bk-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .bk-layout { grid-template-columns: minmax(0, 1fr); }
  /* The store's panel is the page's purpose, not a sheet over a schedule: it
     stays in the flow, first when a package is already chosen. */
  .bk-store .bk-panel.bk-store-panel { position: static; transform: none; visibility: visible; max-height: none; border: 1.5px solid var(--line); border-radius: 22px; padding: 16px; z-index: auto; }
  .bk-store .bk-layout.chosen .bk-store-panel { order: -1; }
  .bk-store .bk-layout { display: flex; flex-direction: column; }
  .bk-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; z-index: 71; transform: translateY(100%); visibility: hidden; transition: transform .25s, visibility .25s; border: 0; padding: 18px 16px 28px; }
  .bk-booking .bk-panel { transform: none; visibility: visible; }
  .bk-panel-x { display: grid; position: absolute; right: 14px; top: 14px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .92); place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
  .bk-panel-x svg { width: 18px; height: 18px; }
  .bk-panel .bk-idle { display: none; }
  .bk-scrim { display: block; position: fixed; inset: 0; background: rgba(18, 16, 26, .4); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .bk-booking .bk-scrim { opacity: 1; pointer-events: auto; }
  body.bk-booking { overflow: hidden; }
}
@media (max-width: 720px) {
  .bk-packs, .bk-packs-store { grid-template-columns: minmax(0, 1fr); }
  .bk-pk { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
  .bk-pk > .bk-pic { aspect-ratio: auto; min-height: 100%; }
  .bk-pk-b { padding: 14px; }
  .bk-pk-b strong { font-size: 28px; margin-top: 2px; }
  .bk-pk-b .bk-btn { margin-top: 8px; min-height: 40px; font-size: 13.5px; }
  .bk-pk em { font-size: 10.5px; top: 8px; left: 8px; padding: 2px 7px; }
  .bk-st-card.wide { grid-column: auto; }
  .bk-gallery, .bk-gallery.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 110px; grid-auto-rows: 110px; gap: 8px; }
  .bk-gallery .bk-pic:first-child { grid-row: auto; grid-column: 1 / -1; }
  .bk-gallery.n1, .bk-gallery.n2 { grid-template-rows: 220px; grid-auto-rows: 120px; }
  .bk-gallery .bk-pic:nth-child(n+6) { display: none; }
  .bk-gallery.n4 .bk-pic:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bk-wrap { padding: 0 16px; }
  .bk-datebtn { padding: 0; width: 34px; justify-content: center; border-radius: 10px; }
  .bk-datebtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* The month as a bottom sheet on the phone. */
  .bk-mcal { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; border-radius: 22px 22px 0 0; border: 0; padding: 18px 16px 26px; z-index: 81; }
  .bk-mcal .bk-link { display: flex; }
  .bk-mcal-scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(18, 16, 26, .4); z-index: 80; }
  body.bk-mcalopen { overflow: hidden; }
  .bk-cd { height: 44px; }
  .bk-hero { padding: 16px 0 86px; }
  .bk-nav a:not(.rb) { display: none; }
  .bk-logo { width: 42px; height: 42px; }
  .bk-hero-main { margin-top: 30px; }
  .bk-stats { display: none; }
  .bk-hero p { font-size: 14.5px; }
  .bk-picker { padding: 10px; border-radius: 18px; }
  .bk-strip-row { gap: 4px; }
  .bk-wk { width: 22px; border-radius: 10px; }
  .bk-strip { gap: 4px; }
  .bk-d { padding: 8px 0; border-radius: 12px; }
  .bk-d small { font-size: 10px; letter-spacing: .02em; }
  .bk-d b { font-size: 19px; }
  .bk-d span { display: none; }
  .bk-frow { gap: 10px; }
  .bk-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px; width: calc(100% + 20px); }
  .bk-seg::-webkit-scrollbar { display: none; }
  .bk-seg button { white-space: nowrap; flex-shrink: 0; }
  .bk-coaches { margin-left: 0; }
  .bk-card { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px 8px 14px; }
  .bk-cphoto { min-height: 0; aspect-ratio: 16 / 9; }
  .bk-cbody { padding: 8px 8px 0; }
  .bk-ctop h3 { font-size: 20px; }
  .bk-cta { width: 100%; padding: 13px; }
  .bk-cap { margin-right: 0; }
  .bk-foot { justify-content: space-between; }
  .bk-sec-h { margin-top: 34px; }
  .bk-cal { grid-template-columns: 1fr; }
  .bk-done-wrap { margin-top: -60px; }
}

/* ── Loading feedback (layouts/_bk_loader) ──────────────────────────────────
 * Nothing shows on a fast load: the bar waits 150 ms, the card 800 ms. All in
 * the studio's accent; the card never takes clicks. */
#bk-loadbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9000; pointer-events: none; background: var(--accent-strong); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; transition: transform .25s ease-out, opacity .3s; }
#bk-loadbar.on { opacity: 1; }
#bk-loadbar.done { opacity: 0; transition: transform .15s ease-out, opacity .3s .12s; }
#bk-wait { position: fixed; inset: 0; z-index: 8999; display: grid; place-items: center; padding: 16px; pointer-events: none; background: color-mix(in srgb, var(--bg) 55%, transparent); opacity: 0; transition: opacity .25s; }
#bk-wait[hidden] { display: none; }
#bk-wait.on { opacity: 1; }
.bk-wait-card { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 280px; padding: 22px 26px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 24px 50px -24px rgba(20, 16, 40, .35); text-align: center; }
.bk-wait-logo { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); animation: bk-breathe 1.6s ease-in-out infinite; }
.bk-wait-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.bk-wait-logo.contain img { object-fit: contain; }
.bk-wait-text { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
@keyframes bk-breathe { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 10%, transparent); } }
.bk-spin { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: bk-spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
.bk-spin { margin-right: 8px; }
.bk-btn > .bk-spin, .tw-inline-flex > .bk-spin { margin-right: 0; }
button[aria-busy="true"] { cursor: progress !important; }
@keyframes bk-spin { to { transform: rotate(360deg); } }
/* The package panel while a new one loads (packages_store/new+v2). The delay
   keeps a quick swap from flickering. */
.bk-store-panel.is-loading > * { opacity: .5; transition: opacity .2s .15s; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  #bk-loadbar, #bk-loadbar.done, #bk-wait { transition: none; }
  .bk-wait-logo, .bk-spin { animation: none; }
  .bk-spin { border-right-color: currentColor; opacity: .6; }
}

/* ── Dark (follows the device; ThemeHelper sets data-theme on <html>) ──────
   The studio's page in the studio's colours, on a dark surface: cards, lines
   and text switch; the accent stays. Its soft tints are mixed with the dark
   card instead of white, and the accent as text is lightened so it reads at
   AA on the card and on its tint (45% accent + white: >= 5:1 on --card for
   any accent, black included). The inline style on <body> (BrandPalette)
   holds the light values, hence !important — custom properties declared
   !important beat an inline normal declaration. Buttons keep --accent-strong
   with --on-accent, already AA. The logo plate and the pill on the hero stay
   white: logos are drawn for light, and they keep the light ink
   (--accent-ink-paper). */
:root[data-theme="dark"] .bk {
  --bg: #100F18 !important; --card: #18162A; --tint-base: #18162A;
  --line: #2E2B40 !important; --muted: #A09BB8 !important; --text: #F1EFF8 !important; --text-2: #CDC9DE !important;
  --accent-soft: color-mix(in srgb, var(--accent) 22%, #18162A);
  --accent-ink: color-mix(in srgb, var(--accent) 45%, white) !important;
}
:root[data-theme="dark"] .bk.bk-pf { --accent-ink: #C4B5FD !important; }
/* The shared Tailwind form: the studio's brand scale for the dark surface. */
:root[data-theme="dark"] .bk:not(.bk-pf) {
  --pf-brand-50: var(--pf-brand-dk-50) !important; --pf-brand-100: var(--pf-brand-dk-100) !important;
  --pf-brand-200: var(--pf-brand-dk-200) !important; --pf-brand-700: var(--pf-brand-dk-700) !important;
}
:root[data-theme="dark"] .bk-picker, :root[data-theme="dark"] .bk-done { box-shadow: 0 20px 50px -24px rgb(0 0 0 / .8), 0 0 0 1px var(--line); }
:root[data-theme="dark"] .bk-alert { background: #3A1616; color: #FFC9C9; border-color: #5E2424; }
:root[data-theme="dark"] .bk-cap.few b { color: #FCA5A5; }
:root[data-theme="dark"] :is(.bk-note, .bk-box.warn, .bk-ok.wait, .bk-pol li > .ic) { background: #34290F; color: #FCD34D; }
:root[data-theme="dark"] .bk-skel { background: linear-gradient(90deg, #1D1B2A 25%, #262336 50%, #1D1B2A 75%); background-size: 200% 100%; }
:root[data-theme="dark"] .bk-steps li { color: #8E89A8; }
:root[data-theme="dark"] .bk-map { background: #1D1B2A; }
:root[data-theme="dark"] .bk-choice-dot { border-color: #6A6586; }
:root[data-theme="dark"] .bk-wait-card { box-shadow: 0 24px 50px -24px rgb(0 0 0 / .8); }
:root[data-theme="dark"] .bk-form .js-book-input,
:root[data-theme="dark"] .bk-form .js-guest-input,
:root[data-theme="dark"] .bk-form #promo-code,
:root[data-theme="dark"] .bk-store-form :is(select, input[type="text"], input[type="email"], input[type="tel"]) { color: var(--text); }

/* Modalities of one class (booking v2): Grupal · Privada · Dúo, each with its spots. */
.bk-mods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bk-mods button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px; border-radius: 12px; border: 1.5px solid var(--line, rgba(0,0,0,.12)); background: var(--card); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.bk-mods button b { font-size: 13px; font-weight: 600; }
.bk-mods button small { font-size: 11.5px; color: var(--muted); }
.bk-mods button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.bk-mods button.on small { color: var(--accent-ink); }
.bk-mods button.full:not(.on) { opacity: .6; }
.bk-mods button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-active .bk-mods { margin: 14px 0 4px; }
