/* hospitalero-mostrador · live surface. Tokens first, then the counter. */
:root {
  --sc-canvas: #E4E7E1;      /* granite in daylight */
  --sc-surface: #F6F7F3;
  --sc-ink: #17211D;         /* forest-black */
  --sc-ink-soft: #46524C;
  --sc-accent: #A8401F;      /* brick */
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;

  --ground-2: #EDEFEA;
  --line: #CBD1C9;
  --bar: #18241F;
  --bar-ink: #E9ECE6;
  --bar-soft: #AEBAB3;
  --night: #141D19;
  --night-ink: #E7ECE8;
  --night-soft: #B3C0B8;
  --accent-light: #F0A383;   /* brick, light stop for the dark panels */

  --ok-fg: #15803d; --ok-bg: #dcfce7;
  --few-fg: #92400e; --few-bg: #fef3c7;
  --full-fg: #b91c1c; --full-bg: #fee2e2;
  --new-fg: #1d4ed8; --new-bg: #dbeafe;

  --bar1: 52px;
  --tabs: 42px;
  --chrome: calc(var(--bar1) + var(--tabs));
  --g: clamp(1rem, 3.2vw, 3rem);
  --r: 14px;
  --frame-w: clamp(170px, 16vw, 236px);
  --e1: 0 1px 2px rgba(23, 33, 29, .08), 0 2px 8px rgba(23, 33, 29, .06);
  --e2: 0 2px 4px rgba(23, 33, 29, .08), 0 12px 32px -8px rgba(23, 33, 29, .22);
}

html { scroll-padding-top: calc(var(--chrome) + 8px); }
body { background: var(--sc-canvas); color: var(--sc-ink); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 700; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.h2 {
  font-family: var(--sc-font-display); font-weight: 700; font-stretch: 88%;
  font-size: clamp(1.6rem, 1.15rem + 1.3vw, 2.3rem); line-height: 1.08; letter-spacing: -0.015em;
}
.h3 { font-family: var(--sc-font-display); font-weight: 700; font-stretch: 88%; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); line-height: 1.15; letter-spacing: -0.01em; }
.kicker { font-family: var(--sc-font-text); font-size: 1rem; font-weight: 700; color: var(--sc-accent); letter-spacing: 0; }
.small { font-size: 15px; color: var(--sc-ink-soft); }
.lead { font-size: 1.12rem; }

/* ------------------------------------------------------------- app chrome -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--bar); color: var(--bar-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 8px 24px -16px rgba(0, 0, 0, .5);
}
.bar__row { height: var(--bar1); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: var(--g); }
.bar__mark { font-family: var(--sc-font-display); font-weight: 800; font-stretch: 85%; font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }
.bar__icon { width: 28px; height: 28px; border-radius: 7px; margin-right: .55rem; flex: none; }
.close__icon { display: block; width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--e1); }
.bar__mark small { font-family: var(--sc-font-text); font-weight: 400; font-size: .8rem; color: var(--bar-soft); margin-left: .35rem; letter-spacing: 0; }
.bar__end { display: flex; align-items: center; gap: .9rem; }
.bar__lang { display: inline-flex; gap: .15rem; font-size: .85rem; font-weight: 700; }
.bar__lang a { text-decoration: none; padding: .35rem .5rem; border-radius: 8px; color: var(--bar-soft); min-height: 36px; display: inline-flex; align-items: center; }
.bar__lang a[aria-current] { color: var(--bar-ink); background: rgba(255, 255, 255, .1); }
.bar__lang a:hover { color: var(--bar-ink); }
.bar :focus-visible { outline-color: var(--accent-light); }

.tabs { height: var(--tabs); background: var(--sc-surface); color: var(--sc-ink-soft); border-bottom: 1px solid var(--line); }
.tabs__list {
  list-style: none; margin: 0; padding: 0 var(--g); height: 100%;
  display: flex; gap: .25rem; align-items: stretch;
  overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list li { flex: 0 0 auto; display: flex; }
.tab {
  position: relative; display: flex; align-items: center; padding: 0 .8rem;
  font-size: .9rem; text-decoration: none; white-space: nowrap; color: var(--sc-ink-soft);
  transition: color 160ms var(--sc-ease-out), opacity 160ms var(--sc-ease-out);
}
.tab::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--sc-accent); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--sc-ease-out);
}
.tab:hover { color: var(--sc-ink); }
.tab__fix { display: none; }
.tab.is-active { color: var(--sc-ink); font-weight: 700; }
.tab.is-active .tab__name { display: none; }
.tab.is-active .tab__fix { display: inline; }
.tab.is-active::after { transform: scaleX(1); }
.tab.is-off { opacity: .42; }
.tab.is-off .tab__name { text-decoration: line-through; text-decoration-thickness: 1px; }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1.05rem; border-radius: 10px; border: 1px solid transparent;
  font: 700 1rem/1.1 var(--sc-font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out), opacity 140ms var(--sc-ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--cta { background: var(--sc-accent); color: var(--sc-accent-ink); }
.btn--cta:hover { background: #8F3418; }
.bar__cta { min-height: 38px; padding: .45rem .85rem; font-size: .92rem; }
.btn--go { background: var(--sc-ink); color: #fff; }
.btn--go:hover { background: #2A3832; }
.btn--go:disabled { background: #C4CBC4; color: #3F4A45; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--sc-ink); border-color: var(--line); }
.btn--ghost:disabled { color: #6A756F; cursor: default; }
.btn--wide { width: 100%; margin-top: .75rem; }

/* --------------------------------------------------------------- frames -- */
.frame { margin: 0; width: var(--frame-w); }
.frame__glass {
  position: relative; aspect-ratio: 640 / 1391; overflow: hidden;
  border-radius: 26px; background: #fff;
  border: 1px solid #C2C9C1; box-shadow: var(--e2);
}
.frame__glass img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.frame__glass--low img { object-position: 50% 82%; }
.frame__glass--top img { object-position: top; }
.frame figcaption { margin-top: .6rem; font-size: .82rem; font-weight: 700; color: var(--sc-ink-soft); text-align: center; }
.frame--pending .frame__glass {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; padding: 1.2rem;
  background: repeating-linear-gradient(135deg, #F1F3EE 0 10px, #EBEEE8 10px 20px);
  border: 1.5px dashed #A9B3AB; box-shadow: none;
}
.frame__app { font-family: var(--sc-font-display); font-weight: 800; font-stretch: 85%; font-size: 1.15rem; }
.frame__screen { font-size: .92rem; color: var(--sc-ink); }
.frame__note { margin-top: .5rem; font-size: .78rem; font-weight: 700; color: var(--sc-ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .2rem .65rem; }

/* -------------------------------------------------------------- counter -- */
.scr { position: relative; }
.counter {
  display: grid; grid-template-columns: var(--frame-w) minmax(0, 1fr) var(--frame-w);
  grid-template-areas: "owner strip pilgrim";
  gap: clamp(1.5rem, 3.4vw, 4rem); align-items: start;
  max-width: 1440px; margin-inline: auto; padding-inline: var(--g);
}
.counter > .frame--owner { grid-area: owner; }
.counter > .strip { grid-area: strip; min-width: 0; }
.counter > .frame--pilgrim { grid-area: pilgrim; }
.counter--sticky > .frame { position: sticky; top: calc(var(--chrome) + 1.5rem); }
.strip > * + * { margin-top: 1.4rem; }
.strip { max-width: 760px; justify-self: center; width: 100%; }

/* hero: the counter already open */
.scr--hero { padding: calc(var(--chrome) + clamp(1.5rem, 5vh, 3.5rem)) 0 clamp(2.5rem, 7vh, 5rem); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.scr--hero .counter { align-items: center; width: 100%; }
.hero__h { font-family: var(--sc-font-display); font-weight: 800; font-stretch: 82%; font-size: clamp(2.3rem, 1.4rem + 2.9vw, 3.6rem); line-height: 1.02; letter-spacing: -0.022em; }
.hero__sub { font-size: 1.12rem; max-width: 40rem; }
.hero__act { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.note { font-size: .95rem; color: var(--sc-ink-soft); }
.nudge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .85rem .55rem .6rem; border-radius: 12px;
  background: var(--sc-surface); border: 1px solid var(--line); box-shadow: var(--e1); text-decoration: none; font-size: .95rem; font-weight: 700;
}
.nudge:hover { border-color: var(--sc-ink-soft); }
.nudge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sc-accent); box-shadow: 0 0 0 4px rgba(168, 64, 31, .16); }

/* tags, panels, pills */
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: var(--sc-ink-soft); background: var(--sc-canvas); border-radius: 6px; padding: .12rem .45rem; line-height: 1.4; }
.tag--quiet { color: var(--night-soft); background: rgba(255, 255, 255, .09); }
.panel { border-radius: var(--r); padding: 1rem 1.1rem 1.1rem; margin: 0; min-width: 0; }
.panel--owner { background: #fff; border: 1px solid var(--line); box-shadow: var(--e1); }
.panel--pilgrim { background: var(--night); color: var(--night-ink); box-shadow: var(--e2); }
fieldset.panel { border: 1px solid var(--line); }
.panel__head { display: flex; align-items: center; gap: .55rem; margin-bottom: .75rem; padding: 0; float: none; width: 100%; }
.panel__title { font-weight: 700; font-size: 1rem; }
.panel__hint { font-size: .86rem; color: var(--sc-ink-soft); margin-top: .7rem; line-height: 1.45; }
.panel--pilgrim .panel__title { color: var(--night-ink); }

.work { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 1rem; align-items: start; }

.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.seg__b {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  min-height: 64px; padding: .5rem .3rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--sc-surface);
  font: 700 .9rem/1.15 var(--sc-font-text); color: var(--sc-ink); cursor: pointer; text-align: center;
  transition: background-color 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.seg__b:hover { border-color: var(--sc-ink-soft); }
.seg__b:active { transform: scale(.97); }
.seg__b[aria-checked="true"][data-state="available"] { background: var(--ok-bg); border-color: var(--ok-fg); color: #14532d; }
.seg__b[aria-checked="true"][data-state="few"] { background: var(--few-bg); border-color: #b45309; color: #78350f; }
.seg__b[aria-checked="true"][data-state="full"] { background: var(--full-bg); border-color: var(--full-fg); color: #7f1d1d; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dot--ok { background: #16a34a; } .dot--few { background: #d97706; } .dot--full { background: #dc2626; }

.sees__row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.sees__room { font-weight: 700; }
.sees__meta { font-size: .9rem; color: var(--night-soft); margin-top: .35rem; }
.sees__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.pill { font-size: .85rem; font-weight: 700; border-radius: 99px; padding: .2rem .7rem; white-space: nowrap; transition: opacity 160ms var(--sc-ease-out); }
.pill[data-state="available"] { background: var(--ok-bg); color: #14532d; }
.pill[data-state="few"] { background: var(--few-bg); color: #78350f; }
.pill[data-state="full"] { background: var(--full-bg); color: #7f1d1d; }
.pill[data-state=""] { opacity: 0; }
.pill--wait { background: rgba(255, 255, 255, .12); color: var(--night-ink); }
.sees__name { font-family: var(--sc-font-display); font-weight: 700; font-stretch: 88%; font-size: 1.25rem; line-height: 1.2; margin-bottom: .4rem; overflow-wrap: anywhere; }

.copy > * + * { margin-top: .9rem; }
.echo { padding: .7rem .9rem; margin-inline: -.9rem; border-radius: 10px; transition: background-color 220ms var(--sc-ease-out); }
.echo.is-on { background: #fff; box-shadow: var(--e1); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.facts li { position: relative; padding-left: 1.4rem; }
.facts li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--sc-ink-soft); }

/* tools */
.scr--tools { background: var(--ground-2); padding-block: clamp(3.5rem, 9vh, 6rem); }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--g); }
.wrap--tools { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.tools__head > * + * { margin-top: 1rem; }
.tools { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--e1); }
.tool { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.05rem 1.2rem; transition: opacity 180ms var(--sc-ease-out); }
.tool + .tool { border-top: 1px solid var(--line); }
.tool.is-off p { opacity: .5; }
.switch {
  position: relative; width: 48px; height: 28px; margin-top: .1rem; border-radius: 99px; border: 0; cursor: pointer;
  background: #A7B1AA; transition: background-color 160ms var(--sc-ease-out); flex: 0 0 auto;
}
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform 180ms var(--sc-ease-out); }
.switch[aria-checked="true"] { background: var(--ok-fg); }
.switch[aria-checked="true"] span { transform: translateX(20px); }
.switch::before { content: ""; position: absolute; inset: -8px; }

.scr--lbc { padding-block: clamp(3.5rem, 9vh, 6rem); }

/* pinned stages reserve the chrome: nothing in them ever passes under the bar */
.stage { padding-top: calc(var(--chrome) + clamp(.75rem, 2.4vh, 1.75rem)); padding-bottom: clamp(.75rem, 2vh, 1.5rem); box-sizing: border-box; }
.counter--stage { height: 100%; align-items: center; }
.counter--stage .frame { --frame-w: min(var(--frame-w), calc((100svh - var(--chrome) - 7rem) * .46)); width: var(--frame-w); }
.counter--stage { grid-template-columns: min(var(--frame-w), calc((100svh - var(--chrome) - 7rem) * .46)) minmax(0, 1fr) min(var(--frame-w), calc((100svh - var(--chrome) - 7rem) * .46)); }
.scr--req { background: var(--ground-2); }
.req__copy > * + * { margin-top: .8rem; }
.req__copy p { font-size: 1rem; }
.work--req { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.req__name { font-family: var(--sc-font-display); font-weight: 700; font-stretch: 88%; font-size: 1.3rem; line-height: 1.1; }
.trust { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; flex-wrap: wrap; }
.trust__basis { font-size: .9rem; color: var(--sc-ink-soft); }
.req__meta { font-size: .9rem; color: var(--sc-ink-soft); margin-top: .25rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700; border-radius: 6px; padding: .18rem .5rem; }
.chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip--trusted { background: var(--ok-bg); color: var(--ok-fg); }
.chip--new { background: var(--new-bg); color: var(--new-fg); }
.chip--caution { background: var(--few-bg); color: #92400e; }
.req__step { margin-top: 1rem; }
.req__step--ask { display: flex; flex-wrap: wrap; gap: .45rem; }
.req__step--ask .btn { min-height: 42px; padding-inline: .8rem; font-size: .92rem; }
fieldset.req__step { border: 0; padding: 0; margin-inline: 0; }
.pick__title { font-weight: 700; padding: 0; }
.opt { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; margin-top: .45rem; cursor: pointer; min-height: 44px; }
.opt input { accent-color: var(--sc-ink); width: 18px; height: 18px; margin: 0; }
.opt span:first-of-type { flex: 1; font-weight: 700; }
.opt__p { font-variant-numeric: tabular-nums; color: var(--sc-ink-soft); }
.opt:has(input:checked) { border-color: var(--sc-ink); background: var(--sc-surface); }
.done__count { font-weight: 700; color: var(--ok-fg); }
.done__room { display: flex; justify-content: space-between; gap: .5rem; margin-top: .35rem; font-weight: 700; }
.state { font-size: .85rem; border-radius: 99px; padding: .15rem .6rem; background: var(--ok-bg); color: #14532d; }
.walk { margin-top: 1rem; }
.walk__track { position: relative; display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.walk__fill { position: absolute; inset: 0; border-radius: 6px; background: var(--accent-light); transform-origin: left; transform: scaleX(0); }
.walk__me { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(240, 163, 131, .35); }
.walk__km { margin-top: .6rem; color: var(--night-soft); font-size: .95rem; }
.walk__km strong { color: var(--night-ink); font-size: 1.35rem; font-variant-numeric: tabular-nums; margin-right: .2rem; }
.sees--req.is-arrived .walk__fill { background: #86efac; }

/* word */
.scr--word { padding-block: clamp(3.5rem, 9vh, 6rem); }
.word__head { max-width: 46rem; }
.word__head > * + * { margin-top: .9rem; }
.word__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.2rem; }
.word__grid > div > * + * { margin-top: 1rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; }
.word__foot { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: 46rem; }
.word__foot > * + * { margin-top: .7rem; }

/* parte: the rail */
.scr--reg { background: var(--ground-2); }
.stage--pan { display: flex; align-items: center; }
.rail { list-style: none; margin: 0; padding: 0 var(--g); display: flex; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; width: max-content; }
.rail__lead { width: min(27rem, 78vw); }
.rail__lead > * + * { margin-top: 1rem; }
.rail__item { --h: min(58svh, 520px); width: calc(var(--h) * .462); }
.rail__item .frame { width: 100%; }
.rail__item .frame__glass { aspect-ratio: 640 / 1385; }
.rail__item > p { margin-top: .9rem; font-size: .98rem; line-height: 1.45; }
.rail__note { width: min(18rem, 70vw); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .scr--reg .rail__item { opacity: calc(.55 + .45 * min(1, var(--sc-p, 0) * 6)); }
}

/* security: status lines */
.scr--sec { padding-block: clamp(3.5rem, 9vh, 6rem); }
.wrap--sec { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.sec__laws > * + * { margin-top: 1rem; }
.status { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--e1); grid-row: span 2; }
.status li { display: grid; grid-template-columns: 20px 1fr; gap: .8rem; padding: .9rem 1.1rem; }
.status li + li { border-top: 1px solid var(--line); }
.status svg { width: 20px; height: 20px; margin-top: .18rem; fill: var(--ok-bg); stroke: var(--ok-fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.status p { font-size: .98rem; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.sec__end > * + * { margin-top: .8rem; }
.sec__line { font-family: var(--sc-font-display); font-weight: 700; font-stretch: 88%; font-size: 1.35rem; line-height: 1.2; }
.laws { font-size: .85rem; font-weight: 700; color: var(--sc-ink-soft); letter-spacing: .02em; }

/* reach: the map */
.scr--reach { background: var(--ground-2); }
.strip--reach { display: flex; flex-direction: column; height: 100%; max-width: 820px; }
.strip--reach > * + * { margin-top: 1rem; }
.reach__copy > * + * { margin-top: .7rem; }
.reach__copy p { font-size: 1rem; }
.map { position: relative; flex: 1 1 auto; min-height: 220px; border-radius: var(--r); background: var(--night); overflow: hidden; box-shadow: var(--e2); }
.map__c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.counter--reach { align-items: stretch; }
.counter--reach > .frame { align-self: center; }

/* michael */
.scr--michael { padding-block: clamp(3.5rem, 10vh, 7rem); }
.wrap--michael { max-width: 44rem; }
.michael > * + * { margin-top: 1rem; }
.mission { font-family: var(--sc-font-display); font-weight: 700; font-stretch: 88%; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15; color: var(--sc-accent); }

/* faq */
.scr--faq { background: var(--ground-2); padding-block: clamp(3rem, 8vh, 5rem); }
.wrap--faq { max-width: 50rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--e1); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 48px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 180ms var(--sc-ease-out); flex: 0 0 auto; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--sc-ink-soft); }

/* close: an input, and it holds */
.scr--close { background: var(--sc-canvas); }
.stage--close { display: flex; align-items: center; }
.close { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--g); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.close__main > * + * { margin-top: 1rem; }
.h2--close { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); font-stretch: 84%; }
.stores, .lane { font-size: .95rem; }
.lane a { font-weight: 700; }
.close__work { display: grid; gap: 1rem; }
.field__label { display: flex; align-items: center; gap: .55rem; font-weight: 700; margin-bottom: .55rem; }
.field { width: 100%; box-sizing: border-box; min-height: 48px; padding: .6rem .8rem; border-radius: 10px; border: 1.5px solid var(--sc-ink-soft); background: var(--sc-surface); font: 400 1.05rem/1.3 var(--sc-font-text); color: var(--sc-ink); caret-color: var(--sc-accent); }
.field::placeholder { color: #66726B; }
.field:focus { outline: 3px solid var(--sc-accent); outline-offset: 2px; }
.foot { grid-column: 1 / -1; font-size: .88rem; color: var(--sc-ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; }

::selection { background: #F4C7B4; color: var(--sc-ink); }

/* --------------------------------------------------------------- phones -- */
@media (max-width: 1100px) {
  :root { --frame-w: clamp(150px, 15vw, 190px); }
  .work, .work--req { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --bar1: 48px; --tabs: 40px; --g: 16px; }
  body { font-size: 16.5px; }
  .bar__mark small { display: none; }
  .bar__end { gap: .4rem; }
  .bar__cta { padding: .4rem .7rem; font-size: .85rem; }
  .tab { font-size: .86rem; padding: 0 .65rem; }
  .tab::after { left: .65rem; right: .65rem; }

  .counter { grid-template-columns: 1fr 1fr; grid-template-areas: "strip strip" "owner pilgrim"; gap: 1.6rem 1rem; }
  .counter .frame { width: min(42vw, 172px); justify-self: center; }
  .counter > .frame--owner { justify-self: end; }
  .counter > .frame--pilgrim { justify-self: start; }
  .counter--sticky > .frame { position: static; }
  .strip { max-width: none; }

  .scr--hero { min-height: auto; }
  .hero__h { font-size: clamp(2.05rem, 8.6vw, 2.6rem); }
  .hero__sub { font-size: 1.02rem; }

  .wrap--tools, .wrap--sec, .word__grid, .close { grid-template-columns: 1fr; }
  .status { grid-row: auto; }

  /* pinned stages on a phone: the working strip only, frames stay in flow sections */
  .counter--stage { grid-template-columns: 1fr; grid-template-areas: "strip"; }
  .counter--stage > .frame { display: none; }
  .req__copy p { font-size: .93rem; line-height: 1.5; }
  .req__copy .h2 { font-size: 1.45rem; }
  .strip > * + * { margin-top: 1rem; }
  .panel { padding: .8rem .9rem .9rem; }
  .req__step { margin-top: .7rem; }
  .req__name { font-size: 1.15rem; }
  .panel__hint { font-size: .82rem; margin-top: .45rem; }
  .opt { padding: .45rem .6rem; margin-top: .35rem; }
  .walk { margin-top: .6rem; }
  .sees__meta { margin-top: .2rem; }
  .work--req { gap: .7rem; }

  .rail__item { --h: min(50svh, 430px); }
  .rail__lead { width: 82vw; }

  .strip--reach .map { min-height: 200px; }
  .close { gap: 1.2rem; }
  .h2--close { font-size: 1.8rem; }
  .close__main > * + * { margin-top: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tabs__list { scroll-behavior: auto; }
  .walk__fill, .walk__me, .switch span, .tab::after { transition: none; }
}

/* fixes after the first verification pass */
[hidden] { display: none !important; }
.counter--stage:not(.counter--reach) { align-items: start; padding-top: clamp(1rem, 6vh, 4rem); }
.counter--stage:not(.counter--reach) > .frame { align-self: start; }
.rail { align-items: flex-start; }
.stage--pan { align-items: flex-start; padding-top: calc(var(--chrome) + clamp(1.5rem, 6vh, 4rem)); }
.rail__lead, .rail__note { padding-top: clamp(1rem, 8vh, 6rem); }
@media (max-width: 860px) { .counter--stage:not(.counter--reach) { padding-top: .25rem; } }

/* ------------------------------------------- Hoy en tu albergue (act 3b) -- */
.scr--hoy { padding-block: clamp(1rem, 3vh, 2rem) clamp(3.5rem, 9vh, 6rem); }
.work--hoy { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.scr--hoy .copy > .facts { margin-top: 1.1rem; }

/* form rows inside an owner panel (the app's labels); shared with /guia */
.scr--add { padding-block: clamp(3rem, 8vh, 5.5rem); }
.scr--add.alt { background: var(--ground-2); }
.add__head > * + * { margin-top: .9rem; }
.add__head p { max-width: 44rem; }
.fld { margin-top: .85rem; }
.fld__label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: .35rem; }
.fld__hint { font-size: .8rem; color: var(--sc-ink-soft); margin-top: .3rem; line-height: 1.4; }
.fld__count { float: right; font-weight: 400; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.in {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: .5rem .7rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--sc-surface);
  font: 400 1rem/1.35 var(--sc-font-text); color: var(--sc-ink);
}
textarea.in { min-height: 72px; resize: vertical; }
.in:focus { outline: 3px solid var(--sc-accent); outline-offset: 1px; border-color: var(--sc-ink-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.seg--kind .seg__b { min-height: 44px; flex-direction: row; font-size: .9rem; }
.seg--kind .seg__b[aria-checked="true"] { background: var(--sc-ink); border-color: var(--sc-ink); color: #fff; }
.chips--pick { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.chipb {
  min-height: 40px; padding: .35rem .8rem; border-radius: 99px; border: 1.5px solid var(--line);
  background: var(--sc-surface); color: var(--sc-ink); font: 700 .88rem/1.2 var(--sc-font-text); cursor: pointer;
}
.chipb:hover { border-color: var(--sc-ink-soft); }
.chipb[aria-checked="true"] { background: var(--sc-ink); color: #fff; border-color: var(--sc-ink); }
.swrow { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; margin-top: .9rem; }
.swrow strong { display: block; font-size: .95rem; }
.panel__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.state--live { font-size: .85rem; font-weight: 700; color: var(--ok-fg); }
fieldset.panel > legend.panel__head { float: left; }
fieldset.panel > legend.panel__head + * { clear: both; }

/* what the pilgrim sees: a post */
.phones { display: grid; gap: 1rem; }
.post { padding: .7rem 0 .2rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.post__top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.post__kind { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-light); }
.post__title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; margin-top: .25rem; overflow-wrap: anywhere; }
.post__body { font-size: .92rem; color: var(--night-ink); margin-top: .25rem; overflow-wrap: anywhere; }
.post__meta { font-size: .85rem; color: var(--night-soft); margin-top: .35rem; font-variant-numeric: tabular-nums; }
.badge { font-size: .75rem; font-weight: 700; border-radius: 99px; padding: .12rem .55rem; background: var(--ok-bg); color: #14532d; }
.sees__sub { font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: var(--night-soft); margin-top: 1rem; }
.sees__sub:first-of-type { margin-top: .25rem; }
.townrow { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.townrow__name { font-weight: 700; }
.tchip { font-size: .8rem; font-weight: 700; border-radius: 99px; padding: .15rem .6rem; background: rgba(240, 163, 131, .18); color: var(--accent-light); white-space: nowrap; }
.muted { color: var(--night-soft); font-size: .88rem; padding: .5rem 0; }

/* the guide, linked where a hospitalero looks for "how do I start" */
.guide-link { font-size: .98rem; font-weight: 700; }
.guide-link a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--sc-accent); text-decoration-thickness: 1.5px; }
.guide-link a::after { content: "\2192" / ""; transition: transform 140ms var(--sc-ease-out); }
.guide-link a:hover { color: #8F3418; }
.guide-link a:hover::after { transform: translateX(3px); }
.strip--hero > .guide-link { margin-top: .4rem; }
.rail__lead > .guide-link { margin-top: .6rem; }
.foot a { font-weight: 700; }

@media (max-width: 1100px) { .work--hoy { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .phones { gap: .8rem; }
  .scr--hoy .frame--pending { display: none; }   /* no placeholder pair on a phone */
}
@media (prefers-reduced-motion: reduce) { .guide-link a::after { transition: none; } }

/* ------------------------------------------ notes of 2026-10-22 -- */
/* section banner: the feature's own name on top of its section */
.banner { display: inline-flex; align-items: center; gap: .5rem; font: 700 .82rem/1 var(--sc-font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--sc-accent); border: 1.5px solid currentColor; border-radius: 99px; padding: .42rem .8rem .4rem .7rem; }
.banner__dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
/* the word act: its banner line is now the headline */
.h2--banner { color: var(--sc-ink); }
.h2--banner::before { content: ""; display: block; width: 3rem; height: 4px; border-radius: 2px; background: var(--sc-accent); margin-bottom: 1rem; }
.word__sub { color: var(--sc-accent); }
/* ¿Prefieres asegurarlo?: copy + the online payment example */
.word__foot.pay { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.pay__copy > * + * { margin-top: .8rem; }
.work--pay { grid-template-columns: 1fr; max-width: 30rem; gap: .8rem; }
.seg--pay .seg__b { min-height: 52px; font-size: .84rem; }
.seg--pay .seg__b[aria-checked="true"] { background: var(--sc-ink); border-color: var(--sc-ink); color: #fff; }
.pill--paid { background: var(--ok-bg); color: #14532d; }
.pill--paid::before { content: "\2713\00a0"; }
.pill--plain { background: rgba(255, 255, 255, .12); color: var(--night-ink); }
.pill--plain::before { content: none; }
.sees__town { font-family: var(--sc-font-display); font-weight: 700; font-size: 1.05rem; margin-top: .2rem; }
@media (max-width: 1100px) { .word__foot.pay { grid-template-columns: 1fr; } }
/* three languages in the bar: on narrow phones the icon stands for the name */
@media (max-width: 440px) {
  .bar__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar__lang a { padding: .35rem .4rem; }
}

/* parte: the Portugal line sits under the intro, not at the end of the rail (Michael 2026-10-23) */
.rail__pt { font-weight: 700; }

/* ---------------------------------------------- the reservation book (#libro) */
.book__bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin: .35rem 0 .3rem; }
.book__bar span { height: 14px; border-radius: 3px; background: var(--ground-2); border: 1px solid var(--line); transition: background 200ms var(--sc-ease-out); }
.book__bar span.is-taken { background: var(--sc-ink); border-color: var(--sc-ink); }
.book__bar span.is-block { background: repeating-linear-gradient(135deg, var(--sc-ink-soft) 0 3px, var(--ground-2) 3px 6px); border-color: var(--sc-ink-soft); }
.book__taken { font-size: .9rem; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.book__list { list-style: none; margin: .5rem 0 0; padding: 0; }
.book__list li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.book__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.book__who span { font-size: .85rem; color: var(--sc-ink-soft); }
.book__n { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 1.4rem; text-align: right; }
.book__x { width: 44px; height: 44px; margin: -6px -8px -6px 0; border: 0; background: none; border-radius: 10px; font-size: 1.3rem; color: var(--sc-ink-soft); cursor: pointer; }
.book__x:hover { background: var(--ground-2); color: var(--sc-ink); }
.book__x:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: -2px; }
.book__ask { margin-top: .8rem; padding: .85rem .9rem; border-radius: 12px; background: var(--ground-2); border: 1px solid var(--line); }
.book__ask-t { font-weight: 700; margin-bottom: .2rem; }
.book__ask-b { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.book__ask-b .btn { flex: 1 1 8rem; }
@media (prefers-reduced-motion: reduce) { .book__bar span { transition: none; } }

/* ------------------------------------- the tools fit the owner's way of working */
.fluid { grid-column: 1 / -1; max-width: 46rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.fluid .h3 { margin-bottom: .4rem; }
.fluid__cases { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .6rem; }
.fluid__cases li { padding: .75rem 1rem; border-radius: var(--r); background: var(--sc-surface); border: 1px solid var(--line); }

/* the film (brag video) under the hero: silent loop while on screen, sound on request */
.film { margin: clamp(2rem, 5vw, 3.5rem) auto 0; width: min(1120px, 100%); padding-inline: var(--g); }
.film__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--night); box-shadow: var(--e2); }
.film__v { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__btn, .film__play { font: inherit; font-weight: 700; border: 0; cursor: pointer; min-height: 44px; border-radius: 999px; }
.film__btn { position: absolute; right: 14px; bottom: 14px; padding: .5rem 1rem; background: rgba(20, 29, 25, .8); color: #fff; }
.film__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: .8rem 1.4rem; background: var(--sc-accent); color: #fff; box-shadow: var(--e2); }
.film__btn:focus-visible, .film__play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.req__week { font-family: var(--sc-font-display); font-weight: 700; font-stretch: 88%; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); margin-top: .35rem; }

/* the film leads the page: first thing under the bar, as big as fits (Michael 2026-10-27: "Put it at the top. It's the lead.") */
.film--lead { margin: 0 auto clamp(2rem, 5vh, 3.5rem); width: min(1320px, 100%, calc((100svh - var(--chrome) - 3rem) * 1.778 + 2 * var(--g))); }
@media (max-width: 760px) { .film--lead { width: 100%; } }

/* the site footer (site-foot.mjs): the website's guía, getting-started, security, FAQ and legal pages.
   The bar's colours, closing every page; the website's own pages use the same footer. 2026-10-27 */
.site-foot { position: relative; z-index: 1; background: var(--bar); color: var(--bar-ink); font-size: .92rem; line-height: 1.5; padding: clamp(1.75rem, 4vw, 2.75rem) var(--g) 1.5rem; }
.site-foot__row { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 1.25rem clamp(2rem, 8vw, 6rem); }
.site-foot__h { font-family: var(--sc-font-display); font-weight: 700; font-stretch: 88%; font-size: 1rem; color: var(--bar-ink); margin-bottom: .45rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--bar-soft); text-decoration: none; }
.site-foot li a:hover { color: var(--bar-ink); text-decoration: underline; }
.site-foot :focus-visible { outline-color: var(--accent-light); }
.site-foot__end { max-width: 1180px; margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1.5rem; color: var(--bar-soft); font-size: .85rem; }
@media (max-width: 440px) { .site-foot__row { grid-template-columns: 1fr; } }
