/* El Gresol — Guia de benvinguda (/guia-benvinguda/), segons el prototip (Benvinguda / BenvingudaPers). Només tokens. */
.b-page { padding-bottom: var(--space-24); }
.b-page p { margin: 0; }
.b-eyb { margin: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); }
.b-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0; background: none; border: 0; font: 700 14px var(--font-sans); color: var(--olive); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.b-btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (hover: hover) { .b-btn-light:hover { background: var(--surface); border-color: var(--surface); } }
.gr-btn svg { flex: none; }
.b-avisw { padding-top: var(--space-4); }

/* Portada emmarcada: foto de la façana, text a l'esquerra i el temps (o el compte enrere) a la dreta */
.b-frame { padding: var(--space-4) var(--space-4) 0; }
.b-hero { position: relative; overflow: hidden; border-radius: 28px; background: var(--brown); color: var(--on-dark); }
.b-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(26,28,24,.80) 0%, rgba(26,28,24,.52) 45%, rgba(26,28,24,.10) 100%); }
.b-hero__in { position: relative; z-index: 2; box-sizing: border-box; max-width: var(--container); margin: 0 auto; padding: var(--space-16) var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px 56px; align-items: center; }
.b-hero__txt { display: flex; flex-direction: column; gap: var(--space-4); }
.b-eyebrow a { color: inherit; }
.b-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(246, 244, 238, .82); }
.b-h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; color: var(--surface); text-wrap: balance; }
.b-lead { font-size: 17px; line-height: 1.55; max-width: 560px; color: rgba(246, 244, 238, .92); }
.b-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: 15px; font-weight: 700; color: var(--on-dark); }
.b-chips li { display: inline-flex; align-items: center; gap: var(--space-2); }

.b-aside { background: var(--surface); color: var(--ink-2); border-radius: var(--radius-2xl); padding: var(--space-6); display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-lg); }
.b-wx__now { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.b-wx__now[hidden] { display: none; }
.b-wx__deg { font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 1; color: var(--ink); }
.b-wx__ico { color: var(--terra); }
.b-count { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.1; color: var(--ink); margin-top: var(--space-1) !important; }
.b-circle { flex: none; width: 60px; height: 60px; border-radius: var(--radius-pill); background: var(--terra-soft); color: var(--terra); display: flex; align-items: center; justify-content: center; }
.b-wx__days { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: var(--space-1); }
.b-wx__days:empty { display: none; }
.b-wx__day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: 14px; font-size: 13px; text-align: center; }
.b-wx__day:first-child { background: var(--paper); }
.b-wx__sk { width: 100%; height: 84px; border-radius: 10px; }
.b-wx__day b { font-weight: 700; color: var(--ink); }
.b-wx__day svg { color: var(--ink-2); }
.b-wx__day[data-sol] svg { color: var(--terra); }
.b-wx__day[data-wet] svg { color: var(--sage); }
.b-wx__t { font-size: 14px; font-weight: 700; color: var(--ink); }
.b-wx__t span { color: var(--ink-4); }
.b-wx__p { font-size: 12px; color: var(--ink-4); }
.b-wx__day[data-wet] .b-wx__p { color: var(--sage); font-weight: 700; }
.b-wx__tip:empty { display: none; }
.b-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background-color var(--dur-fast); }
.b-row > span:first-of-type { flex: 1; }
.b-row svg { color: var(--olive); }
@media (hover: hover) { .b-row:hover { background: var(--line); } }
.b-note { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.b-note svg { margin-top: 1px; }

/* Registre (fosc, el primer que cal fer) i dades clau */
.b-top { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-10); padding-bottom: var(--space-10); }
.b-reg { background: var(--olive); color: var(--on-dark); border-radius: var(--radius-2xl); padding: clamp(22px, 3vw, 30px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.b-reg__txt { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.b-reg__txt p { font-size: 15.5px; line-height: 1.55; color: rgba(246, 244, 238, .9); }
.b-reg__h { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.15; color: var(--surface); }
.b-reg__act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.b-reg__prog { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 14.5px; }
.b-pips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.b-pip { width: 40px; height: 40px; box-sizing: border-box; border-radius: var(--radius-pill); border: 2px dashed rgba(246, 244, 238, .55); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: rgba(246, 244, 238, .85); }
.b-pip.is-ok { border: 0; background: var(--on-dark); color: var(--olive); }
.b-arr { padding: 26px 28px; gap: 18px; }
/* Registre complet: la mateixa targeta verda, «activada». Text clar sobre el verd. */
.b-reg.b-arr { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; }
.b-arr__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.b-ok { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; color: rgba(246, 244, 238, .9); }
.b-ok > span { width: 22px; height: 22px; border-radius: var(--radius-pill); background: var(--on-dark); color: var(--olive); display: flex; align-items: center; justify-content: center; }
.b-ok a { color: var(--on-dark); font-weight: 700; text-underline-offset: 3px; }
.b-arr__lead { margin: 0; max-width: 720px; font-size: 16.5px; line-height: 1.6; color: rgba(246, 244, 238, .92); }
.b-arr__note { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(246, 244, 238, .75); }
.b-arr__done { margin: 0; display: inline-flex; align-items: center; gap: var(--space-2); align-self: flex-start; padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(246, 244, 238, .14); color: var(--on-dark); font-size: 14.5px; font-weight: 700; }
.b-arr__done svg, .b-arr__soon svg { flex: none; }
.b-arr__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.b-arr__soon { margin: 0; display: inline-flex; align-items: center; gap: var(--space-2); padding: 10px 16px; border-radius: var(--radius-md); background: rgba(246, 244, 238, .12); color: var(--on-dark); font-size: 14.5px; line-height: 1.45; }
.b-arr .gr-btn--line { color: var(--on-dark); border-color: rgba(246, 244, 238, .55); background: transparent; }
@media (hover: hover) { .b-arr .gr-btn--line:hover { background: rgba(246, 244, 238, .1); border-color: var(--on-dark); } }
.b-arr__hora { gap: var(--space-2); }
.b-arr__hora strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.b-arr__hora span { padding-left: var(--space-3); margin-left: var(--space-1); border-left: 1px solid rgba(246, 244, 238, .35); font-weight: 600; opacity: .92; }
p.b-arr__hora { margin: 0; cursor: default; }
.b-arr__f { margin: 0; display: flex; }
.b-arr__more { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); padding-top: var(--space-3); border-top: 1px solid rgba(246, 244, 238, .18); }
.b-arr__more form { margin: 0; }
.b-arr__alt { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0; border: 0; background: none; color: var(--on-dark); font: 700 15px/1.3 var(--font-sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(246, 244, 238, .5); cursor: pointer; }
@media (hover: hover) { .b-arr__alt:hover { text-decoration-color: var(--on-dark); } }
.b-arr__alt svg { flex: none; }
.b-arr a:focus-visible, .b-arr button:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; box-shadow: none; }
.b-arr .b-steps li { color: rgba(246, 244, 238, .92); }
.b-arr .b-num { background: var(--on-dark); color: var(--olive); }
.b-arr .g-code { padding: 1px 6px; border-radius: var(--radius-sm); background: var(--on-dark); color: var(--olive); }
/* El vídeo d'entrada (vertical, 9:16): no es veu a la pàgina.
   Ordinador: finestra modal centrada, a l'alçada de la pantalla, amb botó de tancar.
   Mòbil (.is-full): fons negre a pantalla completa mentre el telèfon obre el seu reproductor. */
dialog.b-vid.gr-dialog { width: fit-content; height: fit-content; max-width: none; max-height: none; padding: 0; border-radius: var(--radius-xl); background: var(--ink); overflow: visible; }
.b-vid video { display: block; height: min(86dvh, 960px); width: auto; aspect-ratio: 9 / 16; max-width: calc(100vw - 2 * var(--space-6)); object-fit: contain; border-radius: var(--radius-xl); background: var(--ink); }
.b-vid form { position: absolute; top: var(--space-3); right: var(--space-3); margin: 0; }
.b-vid__x { width: 48px; height: 48px; border: 0; border-radius: var(--radius-pill); background: rgba(20, 18, 15, .6); color: var(--on-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; }
@media (hover: hover) { .b-vid__x:hover { background: rgba(20, 18, 15, .85); } }
.b-vid__x:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.b-vid::backdrop { background: rgba(20, 18, 15, .8); }
dialog.b-vid.gr-dialog.is-full { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; }
.b-vid.is-full[open] { display: flex; align-items: center; justify-content: center; }
.b-vid.is-full video { width: 100%; height: 100%; max-width: none; border-radius: 0; }
.b-vid.is-full form { top: max(var(--space-3), env(safe-area-inset-top)); right: max(var(--space-3), env(safe-area-inset-right)); }
.b-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: var(--space-4); }
.b-steps li, .b-route li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.b-num { flex: none; width: 30px; height: 30px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--brown); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.b-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: var(--space-4); }
.b-fact { background: var(--surface); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.b-val { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.15; color: var(--ink); }
.b-wifi { margin: 2px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 12px; }
.b-wifi dt { font-size: 13px; color: var(--ink-3); }
.b-wifi dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); min-width: 0; }
.b-clau { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.b-clau code { font-family: var(--font-mono); font-size: 16px; overflow-wrap: anywhere; }
.b-copy { flex: none; width: 44px; height: 44px; margin: -6px 0; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.b-copy:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.b-copy.is-copied { width: auto; gap: 6px; padding: 0 14px 0 12px; border-color: var(--success); background: var(--success-soft); color: var(--success); font: 600 14px/1 var(--font-sans); white-space: nowrap; }
@media (hover: hover) { .b-copy:hover { border-color: var(--olive); } }
.b-muted { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.b-addr { font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--ink); }

/* Submenú de seccions: quan hi arriba, tapa la capçalera i es queda sol */
.b-tabs { position: sticky; top: 0; z-index: calc(var(--z-header) + 1); background: var(--paper); border-bottom: 1px solid var(--line); }
.b-tabs ul { margin: 0 auto; list-style: none; box-sizing: border-box; min-height: var(--header-h); padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; }
.b-tabs ul::-webkit-scrollbar { display: none; }
.b-tabs a { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 700 14px var(--font-sans); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.b-tabs a[aria-current="true"] { background: var(--olive); border-color: var(--olive); color: var(--on-dark); }
@media (hover: hover) { .b-tabs a:not([aria-current="true"]):hover { border-color: var(--olive); } }
.b-tabs a:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* Seccions */
.b-secs { display: flex; flex-direction: column; gap: 72px; padding-top: var(--space-12); }
.b-sec { display: flex; flex-direction: column; gap: var(--space-6); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.b-sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.b-sec__head > div { display: flex; flex-direction: column; gap: var(--space-2); }
.b-sec__links { display: flex; flex-wrap: wrap; gap: 18px; }
.b-sec__links .b-link { min-height: 44px; font-size: 15px; }
.b-h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; color: var(--ink); }
.b-h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--ink); }
.b-h4 { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); font-size: 17px; font-weight: 800; color: var(--ink); }
.b-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; align-items: start; }
/* «Com arribar» i «Aparcament gratuït», de costat: la mateixa alçada */
#abans .b-grid2 { align-items: stretch; }
/* La foto de la porta s'allarga fins a baix de la targeta */
#abans .b-fig:has(> .b-thumb:not(.b-thumb--map)) { flex: 1; }
#abans .b-fig > .b-thumb:not(.b-thumb--map) { flex: 1; height: auto; min-height: 140px; }
#abans .b-fig > .b-thumb:not(.b-thumb--map) .b-thumb__img { position: absolute; inset: 0; }
.b-wide { grid-column: 1 / -1; }
.b-card { background: var(--surface); border-radius: 20px; padding: var(--space-6); display: flex; flex-direction: column; gap: 14px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.b-dark { background: var(--olive); color: rgba(246, 244, 238, .85); gap: 10px; }
.b-dark .b-h3 { color: var(--on-dark); }
.b-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.b-btns .gr-btn { color: var(--olive); }
.b-acc { border-radius: 14px; overflow: hidden; background: var(--paper); }
.b-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.b-acc summary::-webkit-details-marker { display: none; }
.b-acc summary svg { transition: transform var(--dur-base) var(--ease-out); }
.b-acc[open] summary svg { transform: rotate(180deg); }
.b-acc summary:focus-visible { outline: none; box-shadow: inset var(--shadow-focus); }
.b-route { margin: 0; padding: var(--space-4); list-style: none; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.b-fig { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.b-thumb { position: relative; display: block; width: 100%; height: 140px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface-sunken); cursor: zoom-in; font: inherit; }
.b-thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.b-zoom { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-pill); background: rgba(246, 244, 238, .92); color: var(--ink); font-size: 12px; font-weight: 700; }
.b-thumb:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .b-thumb:hover .b-thumb__img { transform: scale(1.03); } }
.b-fig figcaption { font-size: 13px; color: var(--ink-3); }
.b-bring { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px 24px; }
.b-bring li, .b-rules li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.5; }
.b-bring strong { color: var(--ink); }
.b-ibox { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-sunken); color: var(--olive); display: flex; align-items: center; justify-content: center; }
.b-h4 .b-ibox { width: 40px; height: 40px; border-radius: 12px; color: var(--sage); }
.b-ibox.is-terra { color: var(--terra) !important; }
.b-ibox.is-brown { color: var(--brown) !important; }
.b-ibox.is-white { background: var(--surface); }
.b-homes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--space-4); }
.b-home { padding: 22px 22px 24px; gap: 10px; font-size: 15px; }
.b-home .b-link { align-self: flex-start; }
.b-rules { background: var(--surface-sunken); border-radius: 20px; padding: 24px 26px; display: flex; flex-direction: column; gap: var(--space-4); }
.b-rules ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px 32px; }
.b-rules li { color: var(--ink-2); align-items: flex-start; }
.b-rules li > span:last-child { padding-top: 7px; }

/* Llista de sortida */
.b-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.b-check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.b-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--olive); cursor: pointer; }
.b-check input:checked + span { color: var(--ink-4); text-decoration: line-through; }

/* Telèfons */
.b-tels { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-4); }
.b-tel { padding: 22px; gap: 6px; }
.b-tel__n { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.b-tel__s { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.b-tel .b-link { align-self: flex-start; min-height: 44px; }
.b-tel--sos { background: var(--terra); }
.b-tel--sos .b-eyb, .b-tel--sos .b-tel__s { color: var(--surface); }
.b-tel--sos .b-tel__n { color: var(--surface); }

/* Què fer */
.b-evs { display: flex; flex-direction: column; gap: var(--space-4); }
.b-evs__list li { display: flex; }
.b-evs__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--space-4); }
.b-evc { display: flex; gap: var(--space-4); padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.b-evc__b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.b-evc__t { margin: 0; font-size: 16px; line-height: 1.35; color: var(--ink); }
.b-evc__b p { margin: 0; font-size: 14px; color: var(--ink-3); }
.b-evc__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); margin-top: 2px !important; }
.b-evc__links:empty { display: none; }
.b-evc .b-link { min-height: 44px; display: inline-flex; align-items: center; }
.b-date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 68px; min-height: 72px; padding: var(--space-2) var(--space-1); border-radius: var(--radius-md); background: var(--surface-sunken); line-height: 1.1; align-self: flex-start; }
.b-date small { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--terra-hover); }
.b-date small:last-child { font-size: 11px; letter-spacing: .4px; color: var(--ink-3); font-weight: 700; }
.b-date b { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.b-date b.is-r { font-size: 19px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-plans { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-4); }
.b-plans li { display: flex; }
.b-plan { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: 20px; color: inherit; text-decoration: none; transition: box-shadow var(--dur-base) var(--ease-out); }
.b-plan__img { display: block; width: 100%; height: 140px; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.b-plan__txt { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.b-plan strong { font-size: 16px; color: var(--ink); }
.b-plan__txt span { font-size: 13.5px; color: var(--ink-3); }
@media (hover: hover) { .b-plan:hover { box-shadow: var(--shadow-card-hover); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .b-plan:hover .b-plan__img { transform: scale(1.03); } }
/* Grups per decidir el dia: distància (targetes amb foto), segons el dia i itineraris (files compactes) */
.b-grup { display: flex; flex-direction: column; gap: var(--space-4); }
.b-grup .b-h3 { font-size: 20px; }
.b-grup .b-plans { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
@media (max-width: 599px) {
  .b-grup .b-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .b-grup .b-plan { border-radius: var(--radius-lg); }
  .b-grup .b-plan__img { height: 104px; }
  .b-grup .b-plan__txt { padding: var(--space-3); }
  .b-grup .b-plan strong { font-size: 15px; line-height: 1.3; }
}
.b-temes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--space-3); }
.b-temes li { display: flex; }
.b-tema { flex: 1; display: flex; align-items: center; gap: var(--space-3); min-height: 64px; padding: var(--space-3) var(--space-4); background: var(--surface); border-radius: var(--radius-lg); color: inherit; text-decoration: none; transition: box-shadow var(--dur-base) var(--ease-out); }
.b-tema__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.b-tema strong { font-size: 16px; line-height: 1.3; color: var(--ink); }
.b-tema__txt span { font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.b-tema__go { flex: none; font-weight: 700; color: var(--olive); }
@media (hover: hover) { .b-tema:hover { box-shadow: var(--shadow-card-hover); } }

/* Diàlegs: estufa i foto de la porta */
.b-dlg { width: min(520px, calc(100vw - 2 * var(--space-4))); }
.b-dlg__in { display: flex; flex-direction: column; gap: var(--space-3); }
.b-dlg__in p { line-height: 1.6; }
.b-dlg form { margin-top: var(--space-2); }
dialog.b-lb.gr-dialog { width: min(1100px, calc(100vw - 2 * var(--space-6))); max-width: none; padding: 0; background: transparent; box-shadow: none; overflow: visible; }
.b-lb figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.b-lb__img { width: 100%; height: auto; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 16px; }
.b-lb figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: rgba(246, 244, 238, .88); }
.b-lb form { margin: 0; }
.b-close { width: 44px; height: 44px; border: 0; border-radius: var(--radius-pill); background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
dialog.b-lb.gr-dialog[open]::backdrop { background: rgba(20, 18, 15, .88); }

@media (max-width: 899px) {
  .b-frame { padding: var(--space-2) var(--space-2) 0; }
  .b-hero { border-radius: 20px; }
  .b-hero::before { background: linear-gradient(180deg, rgba(26,28,24,.72) 0%, rgba(26,28,24,.78) 50%, rgba(26,28,24,.88) 100%); }
  .b-hero__in { padding-top: var(--space-8); padding-bottom: var(--space-6); gap: var(--space-6); }
  .b-aside { padding: var(--space-5); }
  .b-top { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .b-secs { gap: var(--space-12); padding-top: var(--space-8); }
  .b-card { padding: var(--space-5); }
  .b-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .b-fact { padding: var(--space-4); }
  .b-val { font-size: 26px; }
  dialog.b-lb.gr-dialog { margin: auto; border-radius: 0; padding: var(--space-2); }
}
@media (max-width: 599px) {
  .b-facts .b-fact:nth-child(n+3) { grid-column: 1 / -1; }
  /* Mòbil: els botons de la targeta d'arribada i dels diàlegs, a tota l'amplada (tots iguals). */
  .b-arr__act { flex-direction: column; align-items: stretch; }
  .b-arr__f .gr-btn { padding-inline: var(--space-4); font-size: 16px; white-space: nowrap; }
  .b-arr__f, .b-arr__act .gr-btn, .b-arr__soon { width: 100%; justify-content: center; box-sizing: border-box; }
  .b-arr__soon { justify-content: flex-start; }
  .b-dlg__btns { flex-direction: column; }
  .b-dlg__btns .gr-btn, .b-dlg__btns form { width: 100%; }
  .b-arr__head { flex-direction: column; gap: var(--space-2); }
  .b-arr__more { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 359px) { .b-arr__f .gr-btn { white-space: normal; text-wrap: balance; } }
@media print {
  .b-hero__img, .b-hero::before, [data-share], .b-tabs, .b-thumb { display: none; }
  .b-hero, .b-reg, .b-dark { background: none; color: var(--ink); }
  .b-h1, .b-lead, .b-eyebrow, .b-crumb, .b-reg__h, .b-reg__txt p, .b-dark .b-h3, .b-arr__lead, .b-arr .b-steps li, .b-ok { color: var(--ink); }
  .b-arr__act, .b-arr__more, .b-arr__note { display: none; }
}

/* Plànol de l'aparcament (SVG en línia: miniatura i diàleg) */
.b-map { display: block; width: 100%; height: auto; }
.b-thumb--map { height: auto; aspect-ratio: 8 / 5; background: var(--paper); border: 1px solid var(--line); }
.b-thumb--map .b-map { height: 100%; transition: transform var(--dur-slow) var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .b-thumb--map:hover .b-map { transform: scale(1.03); } }
.b-lb .b-map { max-height: calc(100dvh - 140px); border-radius: 16px; background: var(--paper); }
@media print { .b-thumb--map { display: block; } .b-thumb--map .b-zoom { display: none; } }
/* Al mòbil el plànol ampliat cap sencer i la llegenda surt a sota en text (dins el dibuix seria massa petita). */
.b-map__passos { display: none; }
@media (max-width: 700px) {
  .b-lb .b-map__llegenda { display: none; }
  .b-map__passos { display: grid; gap: var(--space-2); margin: 0; padding: var(--space-4); list-style: none; counter-reset: p; border-radius: 16px; background: var(--surface); color: var(--ink); font-size: 15px; }
  .b-map__passos li { display: flex; align-items: center; gap: 10px; counter-increment: p; }
  .b-map__passos li::before { content: counter(p); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brown); color: var(--on-dark); font-size: 13px; font-weight: 700; }
}

/* Botó del registre: un reflex de llum que el travessa cada pocs segons (com al prototip) */
.b-shine { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 10px 22px -12px rgba(180, 80, 44, .8); }
.b-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%); transform: translateX(-120%) skewX(-18deg); animation: b-shine 4.8s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes b-shine { 0% { transform: translateX(-120%) skewX(-18deg); } 28%, 100% { transform: translateX(330%) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) { .b-shine::after { animation: none; display: none; } }

/* Clau de la Wi-Fi quan no es veu: xip que obre el diàleg */
.b-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -8px 0; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink); font: 700 14px/1.2 var(--font-sans); text-align: left; cursor: pointer; }
.b-chip svg { flex: none; color: var(--ink-3); }
.b-chip:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
@media (hover: hover) { .b-chip:hover { border-color: var(--olive); background: var(--surface); } }
.b-dlg__btns { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.b-dlg__btns form { margin: 0; }
/* Waze només al mòbil i la tauleta: a l'ordinador (ratolí) no té sentit */
@media (hover: hover) and (pointer: fine) { .b-btns .gr-btn.b-waze { display: none; } }

/* Temps: el dia d'avui com a capçalera (graus, estat del cel com a títol i, a sota, el dia i la mínima). */
.b-wx__hero { display: flex; align-items: center; gap: 14px; min-width: 0; }
.b-wx__lab { display: flex; flex-direction: column; gap: 2px; margin: 0; min-width: 0; }
.b-wx__lab strong { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15; color: var(--ink); }
.b-wx__lab span { font-size: 14px; color: var(--ink-3); }
.b-wx__ico { flex: none; display: flex; }

/* Icones del temps animades, suaus: els raigs giren lentament, el núvol es gronxa, la pluja i la neu cauen. */
.wx-ico .wx-raigs { transform-box: view-box; transform-origin: 12px 12px; animation: wx-gira 24s linear infinite; }
.wx-ico .wx-raigs--clar { transform-origin: 12px 12.5px; animation-duration: 30s; }
.wx-ico .wx-nucli { transform-box: fill-box; transform-origin: center; animation: wx-batec 4s ease-in-out infinite; }
.wx-ico .wx-nuvol { animation: wx-gronxa 6s ease-in-out infinite alternate; }
.wx-ico .wx-gota { animation: wx-cau 1.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.wx-ico .wx-floc { animation: wx-cau-neu 3s ease-in-out infinite; }
.wx-ico .wx-g2 { animation-delay: -.55s; }
.wx-ico .wx-g3 { animation-delay: -1.1s; }
.wx-ico .wx-floc.wx-g2 { animation-delay: -1.5s; }
@keyframes wx-gira { to { transform: rotate(360deg); } }
@keyframes wx-batec { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes wx-gronxa { from { transform: translateX(-.6px); } to { transform: translateX(.8px); } }
@keyframes wx-cau { 0% { transform: translateY(-1.5px); opacity: 0; } 30% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(2px); opacity: 0; } }
@keyframes wx-cau-neu { 0% { transform: translate(0, -1.5px); opacity: 0; } 25% { opacity: 1; } 50% { transform: translate(.6px, .5px); } 85% { opacity: 1; } 100% { transform: translate(-.4px, 2.2px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wx-ico * { animation: none !important; } }
.wx-ico { overflow: visible; }

/* Hores d'arribada i de sortida (targetes d'entrada i sortida) */
.b-fact .b-chip { margin: var(--space-2) 0 0; }
.b-fact .b-link { min-height: 44px; }
.b-fact .b-note { margin-top: var(--space-1); }
.b-hores-ok { margin: 0 0 var(--space-3); display: inline-flex; align-items: center; gap: var(--space-2); padding: 10px 16px; border-radius: var(--radius-pill); background: var(--success-soft); color: var(--success); font-size: 15px; font-weight: 700; }
.b-hores-ok svg { flex: none; }
.b-dlg .gr-note p { margin: 0; }
.b-dlg .gr-note svg { flex: none; margin-top: 2px; }
