/* Booking step 1, the readable services list (catalogue plan task 3.3; spec BK1 to BK5).
   Step 1's part of the mockup's bk.css (docs/design/home-sections/bk.css) with the size rules of
   docs/decisions.md section 1 and the catalogue spec, section 7, difference 8: every sentence at
   18 px, button text at 17 px, every tap target (links and the <summary> rows) at least 48 px;
   the labels of spec SZ1 (the steps indicator, the tab names, the group headings) keep the
   mockup's size. Only features on the phone floor of docs/decisions.md section 15 (iOS 15.4,
   Chrome 108). Nothing to select yet (BK3): no "Añadir", no summary bar or card. Tokens from
   site.css; the drawings, the option lines and the yellow note from catalogue.css. */

/* anchors and focus land below the header and the pinned steps and tabs (review D4); step 1
   has no booking bar. The pinned block measured 153 to 184 px high on phones (the steps and the
   tab names wrap at 360 px) and 139 px from 900 px (Chromium, 2026-12-01). */
html { scroll-padding-top: calc(var(--header-h) + var(--safe-t) + 186px); scroll-padding-bottom: 0; }

/* the page (bk.css:5-6): the mockup's narrower width, the list starting closer to the header */
.page { display: block; max-width: 1080px;
  padding: calc(var(--header-h) + var(--safe-t) + 18px) var(--gutter-r) 48px var(--gutter); }
.bk-head { display: grid; gap: 8px; margin-bottom: 18px; }
.bk-head .sub { margin: 0; color: var(--muted); font-size: 18px; }

/* "Inicio", back to the home page (bk.css:172-173), a button at 17 px and 48 px */
.bk-home { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap);
  font-size: 17px; font-weight: 600; color: var(--moss); text-decoration: none; }
.bk-home::before { content: "←"; }

/* the phone box (bk.css:176-180): its buttons at 17 px and 48 px; a flagged number shows as text */
.bk-call { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; padding: 12px 14px;
  border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: 18px; }
.bk-call p { margin: 0; flex: 1 1 100%; font-weight: 600; }
.bk-call a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border-radius: 24px;
  border: 1.5px solid var(--moss); color: var(--moss); font-size: 17px; font-weight: 700; text-decoration: none; }
.bk-call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-num { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 600; }

/* the steps indicator 1 · 2 · 3 (bk.css:13-18), a label of SZ1 */
.bk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
.bk-steps li { display: inline-flex; align-items: center; gap: 6px; }
.bk-steps li + li::before { content: ""; width: 14px; height: 1px; background: var(--line); margin-right: 2px; }
.bk-steps i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-size: 14px; }
.bk-steps [aria-current] { color: var(--ink); }
.bk-steps [aria-current] i { background: var(--moss); border-color: var(--moss); color: #fff; }

/* the steps and the category tabs pinned together under the header (bk.css:28-46); each tab is
   a link to its category (BK5), the chosen one marked */
.bk-sticky { position: sticky; top: calc(var(--header-h) + var(--safe-t)); z-index: 6; display: grid; gap: 10px;
  margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter-r) 12px var(--gutter); background: var(--linen);
  transition: box-shadow .25s; }
.bk-sticky.stuck { box-shadow: 0 10px 18px -12px rgba(30, 43, 34, .28); }
/* once the tabs no longer fit, as a fourth category does at 320 px, the row scrolls inside
   itself, so the page never scrolls sideways and each tab keeps its words whole (administration
   plan 1.6); while they fit nothing changes. The row reaches the pinned block's edges, its
   padding keeping the tabs where they stood and the focus ring's 7 px, which a scroll box clips */
.bk-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; overflow-x: auto;
  margin: -8px calc(-1 * var(--gutter-r)) -8px calc(-1 * var(--gutter)); padding: 8px var(--gutter-r) 8px var(--gutter); }
.bk-tab { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; min-height: var(--tap); padding: 8px 4px 9px;
  border-radius: 16px; text-align: center; color: var(--ink); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); transition: background-color .25s, border-color .25s, color .25s; }
.bk-tab svg { width: 52px; height: 39px; }
.bk-tn { font: 700 15.5px/1.2 var(--body); }
/* chosen: aria-current from the server, aria-selected once booking.js runs the tab list */
.bk-tab[aria-current="true"], .bk-tab[aria-selected="true"] { background: var(--moss); border-color: var(--moss); color: #fff; }
.bk-tab[aria-current="true"] .ico .d, .bk-tab[aria-selected="true"] .ico .d { stroke: #fff; }
.bk-tab[aria-current="true"] .ico .dot, .bk-tab[aria-selected="true"] .ico .dot { fill: #fff; }

/* one category's list (bk.css:46-49); the lists not chosen are in the page for readers without
   JavaScript (booking-noscript.css shows them), their category's name a heading for screen
   readers only while one list shows */
.bk-panel { padding-top: 8px; transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.bk-panel-other { display: none; }
/* a list chosen by a tab enters as in the mockup (bk.css:46-47); booking.js sets the class
   only without reduced motion, and site.css turns every transition off with it */
.bk-panel.enter { opacity: 0; transform: translateY(10px); }
.bk-panel-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bk-catdesc { margin: 4px 0 6px; color: var(--muted); font-size: 18px; }
.bk-group { margin: 18px 0 8px; font: 700 15px/1.3 var(--body); letter-spacing: .01em; color: var(--moss); }

/* one service row (bk.css:52-62, :182-186): name and description over the full width, time and
   price on the bottom line. A service with several options is a <details> whose <summary> holds
   the row (spec BK2); <details> and <summary> keep their own display (review D1), the row's
   layout sits on the span inside. */
.bk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bk-row { border-radius: 18px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.bk-fold summary { list-style: none; cursor: pointer; border-radius: 18px; }
.bk-fold summary::-webkit-details-marker { display: none; }
/* the two-tone focus ring (piece 1b spec FR1) drawn inside the row, which clips anything outside
   it: the paper band at the row's edge, the moss line within it, the same widths as site.css's */
.bk-fold summary:focus-visible { outline: 3px solid var(--moss); outline-offset: -5px; box-shadow: inset 0 0 0 2px var(--paper); }
.bk-main { box-sizing: border-box; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 14px 14px 14px 18px; min-height: 72px; }
.bk-txt { flex: 1 1 100%; min-width: 0; display: grid; gap: 3px; }
/* a 120-character name breaks rather than being cut off by the row (administration spec R2) */
.bk-name { font: 700 19px/1.25 var(--body); color: var(--ink); overflow-wrap: anywhere; }
.bk-desc { font-size: 18px; line-height: 1.45; color: #3F4D42; }
.bk-foot { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-f { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.bk-f svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bk-p { color: var(--ink); font-weight: 700; }

/* "Más información" after the row (bk.css:188-189), a button at 17 px and 48 px */
.bk-info { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); margin: -6px 0 6px 18px; color: var(--moss);
  font-weight: 700; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; }
.bk-info::after { content: "→"; text-decoration: none; }

/* desktop: the list left, the summary card's column right, empty until piece 4 (bk.css:144-149;
   spec difference 6) */
@media (min-width: 900px) {
  html { scroll-padding-top: calc(var(--header-h) + var(--safe-t) + 142px); }
  .page { padding-bottom: 80px; }
  .bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .bk-sticky { margin: 0; padding: 12px 0 14px; }
  .bk-tabs { grid-auto-columns: minmax(0, 170px); margin: -8px; padding: 8px; }
}

/* a phone held sideways, or any window under 500 px high (spec BK7, difference 18): the steps
   and the tabs scroll with the page so the list keeps the screen, and an anchor lands below the
   header alone, since nothing pinned covers it any more (review D4); after the desktop rule so
   it also wins in a wide, low window */
@media (max-height: 499px) {
  html { scroll-padding-top: calc(var(--header-h) + var(--safe-t)); }
  .bk-sticky { position: static; }
}
