/* ==========================================================================
   cloudaStay — guia de l'hoste. Mòbil primer; l'accent és el de l'allotjament
   (amb contrast garantit al servidor) o Ambre per defecte.
   ========================================================================== */

.guide-body {
  --brand: var(--accent, #7a4a00); --brand-ink: var(--accent, #7a4a00); --on-brand: var(--accent-on, #fff);
  --brand-soft: var(--accent-soft, #fcefd6); --brand-soft-2: var(--accent-soft-2, #f8e0b4);
  --wrap: 680px;
  background: var(--bg);
  font-size: 17px;
}
[data-theme='dark'] .guide-body {
  --brand: var(--accent-light, #f0b44c); --brand-ink: var(--accent-light, #f7c66b); --on-brand: #1e160b;
  --brand-soft: color-mix(in srgb, var(--accent, #7a4a00) 24%, #1d160c); --brand-soft-2: color-mix(in srgb, var(--accent, #7a4a00) 34%, #1d160c);
}
.g-wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.preview-bar { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; background: var(--nit); color: var(--palla); font-size: 13px; text-align: center; }

/* ---------- Barra superior ---------- */
.g-top {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 14px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.is-preview .g-top { top: 34px; }
.g-top.is-scrolled { border-color: var(--line); }
.g-top-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.g-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; background: #fff; }
.g-monogram { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 500; font-size: 14px; letter-spacing: -.02em; }
.g-top-name { font-weight: 500; font-size: 16px; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-top-actions { display: flex; gap: 4px; }
.g-icon { min-width: 44px; height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: var(--r-pill); color: var(--ink-2); font-size: 13px; font-weight: 500; transition: background-color .2s, transform .35s var(--spring); }
.g-icon:hover { background: var(--bg-2); color: var(--ink); }
.g-icon:active { transform: scale(.94); }
.theme-toggle .i-moon, [data-theme='dark'] .theme-toggle .i-sun, [data-theme='dark'] [data-theme-toggle] .i-sun { display: none; }
[data-theme='dark'] [data-theme-toggle] .i-moon { display: block; }
[data-theme-toggle] .i-moon { display: none; }

/* ---------- Portada ---------- */
.g-hero { position: relative; isolation: isolate; min-height: min(62svh, 520px); display: flex; align-items: flex-end; overflow: hidden; margin: 0 12px; border-radius: var(--r-xl); background: var(--nit); color: #fff; }
.g-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 18s var(--ease) both; }
.g-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 22, 11, 0) 30%, rgba(30, 22, 11, .25) 55%, rgba(30, 22, 11, .82) 100%); }
.g-hero.no-cover { min-height: 300px; background: radial-gradient(120% 90% at 100% 0%, var(--accent-deep, #5a3a06), var(--nit) 70%); }
.g-hero.no-cover::after { display: none; }
.g-hero-bubbles i { position: absolute; border-radius: 50%; mix-blend-mode: screen; opacity: .5; animation: breathe 6s ease-in-out infinite; }
.g-hero-bubbles i:nth-child(1) { width: 180px; height: 180px; right: 30%; top: 10%; background: #fce8c3; opacity: .14; }
.g-hero-bubbles i:nth-child(2) { width: 230px; height: 230px; right: -30px; top: -40px; background: #f5c46a; opacity: .2; animation-delay: .8s; }
.g-hero-bubbles i:nth-child(3) { width: 140px; height: 140px; right: 12%; top: 46%; background: #d98f1c; opacity: .3; animation-delay: 1.6s; }
.g-hero-text { padding: 28px 22px 26px; width: 100%; }
.g-hero h1 { font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; animation: fadeUp .8s var(--ease) .1s both; }
.g-place { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 5px 12px 5px 9px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; font-weight: 400; animation: fadeUp .8s var(--ease) both; }
.g-tagline { margin-top: 8px; font-size: 17px; opacity: .9; }

/* ---------- Benvinguda i accions ---------- */
.g-welcome { position: relative; margin-top: -8px; padding: 26px 0 6px; }
.g-welcome h2 { font-size: 1.6rem; margin-bottom: 8px; text-wrap: balance; }
.g-auto { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.g-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 18px; }
.g-quick a {
  display: grid; justify-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 500; text-align: center; line-height: 1.2;
  transition: transform .45s var(--spring), box-shadow .3s; animation: popIn .6s var(--spring) both;
}
.g-quick a:nth-child(2) { animation-delay: .06s; } .g-quick a:nth-child(3) { animation-delay: .12s; } .g-quick a:nth-child(4) { animation-delay: .18s; }
.g-quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.g-quick a:active { transform: scale(.96); }
.g-quick span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink); }
.g-card { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.g-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.g-times > div { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); background: var(--brand-soft); }
.g-times strong { font-size: 16px; }
.g-label { margin: 28px 0 12px; }
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g-grid a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 112px; padding: 14px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 15.5px; line-height: 1.25; transition: transform .45s var(--spring), box-shadow .3s, border-color .3s;
  animation: fadeUp .6s var(--ease) both; animation-delay: calc(var(--i) * 35ms);
}
.g-grid a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-soft-2); }
.g-grid-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.g-grid a[data-k='health'] .g-grid-ico { background: var(--bad-bg); color: var(--bad); }
.g-contact { margin-top: 26px; }
.g-contact h2 { font-size: 1.3rem; margin-bottom: 4px; }
.g-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Seccions ---------- */
.g-sec { padding: 8px 0 40px; scroll-margin-top: 70px; }
.js .g-sec { display: none; }
.js .g-sec.is-open { display: block; animation: secIn .5s var(--ease) both; }
.js .g-home.is-hidden { display: none; }
html:not(.js) .g-sec { border-top: 1px solid var(--line); }
.g-back { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 14px; padding: 8px 14px 8px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.g-sec-head { display: grid; gap: 10px; margin-bottom: 18px; }
.g-sec-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--brand); color: var(--on-brand); box-shadow: 0 14px 26px -16px var(--brand); }
.g-sec-head h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); letter-spacing: -.035em; text-wrap: balance; }
.g-sec-intro { color: var(--ink-2); font-size: 18px; }
.g-blocks { display: grid; gap: 16px; }
.gb.is-hit { animation: hit 1.6s var(--ease); border-radius: var(--r-md); }
@keyframes hit { 0%, 40% { box-shadow: 0 0 0 4px var(--brand-soft-2); } }

/* Blocs */
.gb-h { font-size: 1.25rem; letter-spacing: -.02em; margin: 8px 0 -4px; }
h4.gb-h { font-size: 1.1rem; margin: 4px 0 10px; }
.gb-rich { color: var(--ink-2); }
.gb-rich p + p, .gb-rich p + ul, .gb-rich ul + p { margin-top: 10px; }
.gb-rich ul, .gb-rich ol { padding-left: 1.2em; display: grid; gap: 6px; }
.gb-rich ul { list-style: disc; } .gb-rich ol { list-style: decimal; }
.gb-rich li::marker { color: var(--brand-ink); }
.gb-rich strong { color: var(--ink); }
.gb-rich h3, .gb-rich h4 { color: var(--ink); margin: 14px 0 6px; }
.gb-callout { display: flex; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--ink); }
.gb-callout strong { display: block; margin-bottom: 2px; }
.gb-callout-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--brand-ink); }
.gb-callout.tone-warning, .gb-callout.tone-important { background: var(--warn-bg); }
.gb-callout.tone-warning .gb-callout-ico, .gb-callout.tone-important .gb-callout-ico { color: var(--warn); }
.gb-callout.tone-tip { background: var(--ok-bg); } .gb-callout.tone-tip .gb-callout-ico { color: var(--ok); }
.gb-img figure, .gb-img { display: grid; gap: 6px; }
.gb-zoom { display: block; width: 100%; padding: 0; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; }
.gb-zoom img { width: 100%; transition: transform .6s var(--ease); }
.gb-zoom:hover img { transform: scale(1.02); }
figcaption { font-size: 14px; color: var(--ink-3); }
.credit { font-size: 11.5px; color: var(--ink-3); }
.gb-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.gb-gallery figure { scroll-snap-align: start; display: grid; gap: 6px; }
.gb-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.gb-video video { width: 100%; border-radius: var(--r-md); background: #000; }
.gb-video-ph { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 8px; border-radius: var(--r-md); background: radial-gradient(120% 120% at 0% 0%, var(--accent-deep, #5a3a06), var(--nit)); color: #fff; text-align: center; padding: 16px; }
.gb-video-ph small { font-size: 12px; opacity: .75; }
.gb-video-ph iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }
.gb-play { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--r-pill); background: #fff; color: var(--nit); font-weight: 500; }
.gb-row, .gb-file {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .4s var(--spring), box-shadow .3s;
}
.gb-row:hover, .gb-file:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.gb-row > span:nth-child(2), .gb-file > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.gb-row small, .gb-file small { color: var(--ink-3); font-size: 14px; overflow-wrap: anywhere; }
.gb-row-ico, .gb-file-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.gb-row-cta { flex: none; padding: 8px 14px; border-radius: var(--r-pill); background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 500; }
.gb-row.is-wa .gb-row-ico { background: #dff5e7; color: #1f8f4e; } .gb-row.is-wa .gb-row-cta { background: #1f8f4e; color: #fff; }
[data-theme='dark'] .gb-row.is-wa .gb-row-ico { background: rgba(31, 143, 78, .2); color: #7fdba4; }
.gb-row.is-sos .gb-row-ico { background: var(--bad-bg); color: var(--bad); } .gb-row.is-sos .gb-row-cta { background: var(--bad); color: #fff; }
.gb-row-go, .gb-file-go { flex: none; color: var(--ink-3); }
.gb-btn { width: 100%; }
.gb-map-wrap { display: grid; gap: 10px; }
.gb-map { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.gb-map-load { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; padding: 16px; background: repeating-linear-gradient(135deg, var(--bg-2) 0 16px, var(--surface-2) 16px 32px); color: var(--ink-2); text-align: center; }
.gb-map-load span { font-weight: 500; color: var(--brand-ink); }
.gb-map-load small { font-size: 12.5px; color: var(--ink-3); }
.gb-addr { display: flex; gap: 6px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.gb-addr .ico { margin-top: 3px; flex: none; color: var(--brand-ink); }
.gb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-gps { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.gb-gps > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.gb-coords { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 2px 0; color: var(--brand-ink); font-size: 14px; }
.gb-steps { display: grid; gap: 14px; counter-reset: st; }
.gb-steps li { display: flex; gap: 14px; }
.gb-step-n { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 500; }
.gb-steps li > div { flex: 1; display: grid; gap: 4px; padding-top: 5px; color: var(--ink-2); }
.gb-steps strong { color: var(--ink); }
.gb-step-img { margin-top: 8px; }
.gb-check { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gb-check-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gb-check-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gb-check-bar { height: 8px; margin: 10px 0 12px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.gb-check-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand); transition: width .6s var(--spring); }
.gb-check ul { display: grid; gap: 2px; }
.gb-check label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; transition: background-color .2s; }
.gb-check label:hover { background: var(--bg-2); }
.gb-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gb-check input:checked + .check-box { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.gb-check input:checked ~ span:last-child { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--brand); }
.gb-check input:focus-visible + .check-box { outline: 3px solid var(--brand); outline-offset: 2px; }
.gb-check-done { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ok-bg); color: var(--ok); font-weight: 500; }
.gb-check-reset { margin-top: 10px; font-size: 14px; }
.gb-faq { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.gb-faq summary { display: flex; align-items: center; gap: 10px; padding: 16px; cursor: pointer; font-weight: 500; list-style: none; }
.gb-faq summary::-webkit-details-marker { display: none; }
.gb-faq summary span { flex: 1; }
.gb-faq summary .ico { transition: transform .35s var(--spring); color: var(--brand-ink); }
.gb-faq[open] summary .ico { transform: rotate(180deg); }
.gb-faq .gb-rich { padding: 0 16px 16px; }
.gb-table { display: grid; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.gb-table > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.gb-table > div:first-child { border-top: 0; }
.gb-table dt { font-weight: 500; }
.gb-table dd { color: var(--ink-2); }
.gb-table.is-hours dd { font-variant-numeric: tabular-nums; }
.gb-note { font-size: 14.5px; color: var(--ink-3); }
.gb-service { display: grid; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); }
.gb-service-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gb-service-body { display: grid; gap: 8px; padding: 16px; color: var(--ink-2); }
.gb-service-body h4 { font-size: 1.15rem; color: var(--ink); }
.gb-service-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.gb-price { font-weight: 500; color: var(--brand-ink); }
.gb-link-inline { font-weight: 500; }

/* Wi‑Fi */
.gb-wifi { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--brand-soft); }
.gb-wifi.is-compact { padding: 0; background: none; }
.gb-wifi-row { display: flex; align-items: center; gap: 12px; }
.gb-wifi-row > div { flex: 1; min-width: 0; display: grid; }
.gb-wifi-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); color: var(--brand-ink); }
.gb-wifi.is-compact .gb-wifi-ico { background: var(--brand-soft); }
.gb-wifi-v { font-size: 19px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.gb-wifi-qr summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--brand-ink); list-style: none; }
.gb-wifi-qr summary::-webkit-details-marker { display: none; }
.gb-wifi-qr-in { display: grid; justify-items: center; gap: 8px; margin-top: 12px; padding: 16px; border-radius: var(--r-md); background: #fff; color: #1e160b; text-align: center; font-size: 14px; }
.gb-wifi-qr-in svg { width: 190px; height: 190px; }

/* Recomanacions */
.gb-places { display: grid; gap: 12px; }
.gb-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gb-filter button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.gb-filter button.is-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.gb-place-list { display: grid; gap: 12px; }
.gb-place { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; scroll-margin-top: 80px; }
.gb-place.is-featured { border-color: var(--brand-soft-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.gb-place-img img { width: 100%; height: 150px; object-fit: cover; }
.gb-place-img.is-ico { height: 64px; }
.gb-place-img.is-ico { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.gb-place-body { display: grid; gap: 6px; padding: 14px; font-size: 15px; color: var(--ink-2); }
.gb-place-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gb-place h4 { font-size: 1.05rem; color: var(--ink); }
.gb-featured { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--brand-ink); font-weight: 500; }
.gb-tip { padding: 8px 12px; border-radius: var(--r-sm); background: var(--brand-soft); font-size: 14px; }
.gb-hours summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: var(--brand-ink); }
.gb-hours p { margin-top: 6px; font-size: 14px; }
.gb-place[hidden] { display: none; }

/* Valoració i navegació */
.g-feedback { display: grid; gap: 10px; justify-items: center; margin-top: 30px; padding: 18px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); text-align: center; font-size: 15px; }
.g-feedback div { display: flex; gap: 8px; }
.g-feedback button { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2); font-weight: 500; }
.g-feedback button:hover { border-color: var(--brand); color: var(--brand-ink); }
.g-feedback-thanks { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 500; }
.g-next { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin-top: 16px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--nit); color: #fff; text-decoration: none; }
.g-next .mono-label { color: var(--palla); }
.g-next strong { font-size: 18px; }
.g-next .ico { grid-row: 1 / 3; grid-column: 2; }
[data-theme='dark'] .g-next { background: var(--surface-2); }

/* Peu */
.g-foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 20px; border-top: 1px solid var(--line); }
.g-foot .g-wrap { display: grid; gap: 14px; justify-items: start; }
.g-sos { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: var(--r-md); background: var(--bad-bg); color: var(--bad); text-decoration: none; }
.g-sos span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); }
.g-sos strong { flex: 1; font-size: 15px; }
.g-made { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.brand-mini { display: inline-flex; align-items: center; gap: 6px; font-weight: 450; font-size: 14px; letter-spacing: -.02em; color: var(--ink); }
.brand-mini .mark { width: 18px; height: 18px; }
.brand-mini b { font-weight: 450; color: var(--wm-stay); }
a.brand-mini { text-decoration: none; }
a.brand-mini:hover { text-decoration: underline; }

/* Fulls inferiors (cerca, idioma, contacte, Wi‑Fi) */
.sheet { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(30, 22, 11, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
.sheet-in { width: min(640px, 100%); max-height: min(86svh, 760px); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 14px; align-content: start; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--bg); box-shadow: var(--shadow-lg); animation: sheetUp .45s var(--spring); }
.sheet[data-sheet='search'] { align-items: flex-start; }
.sheet[data-sheet='search'] .sheet-in { border-radius: 0 0 28px 28px; max-height: 92svh; padding-top: max(14px, env(safe-area-inset-top)); animation-name: sheetDown; }
.sheet-head { display: flex; align-items: center; gap: 8px; }
.sheet-head h2 { flex: 1; font-size: 1.35rem; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-3); }
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-field input { flex: 1; min-width: 0; height: 50px; border: 0; background: none; outline: none; font-size: 17px; color: var(--ink); }
.search-results { display: grid; gap: 8px; }
.search-results a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.search-results small { color: var(--ink-3); font-size: 13.5px; }
.search-results mark { background: var(--brand-soft-2); color: inherit; border-radius: 4px; padding: 0 2px; }
.lang-list { display: grid; gap: 6px; }
.lang-list a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.lang-list a .mono { width: 34px; color: var(--brand-ink); }
.lang-list a .ico { margin-left: auto; color: var(--brand-ink); }
.lang-list a[aria-current] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sheet-list { display: grid; gap: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(15, 8, 12, .92); animation: fade .25s; }
.lightbox img { max-height: 88svh; border-radius: var(--r-md); }
.lightbox .g-icon { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; color: #fff; background: rgba(255, 255, 255, .12); }
.g-toast { position: fixed; z-index: 400; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 10px 18px; border-radius: var(--r-pill); background: var(--nit); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); animation: popIn .4s var(--spring); }

/* Portes (PIN, privada, no disponible) */
.gate-body { min-height: 100svh; display: grid; background: radial-gradient(90% 60% at 100% 0%, var(--palla), transparent 60%), var(--bg); }
[data-theme='dark'] .gate-body { background: radial-gradient(90% 60% at 100% 0%, #3a2a12, transparent 60%), var(--bg); }
.gate { display: grid; place-items: center; align-content: center; gap: 24px; padding: 24px 16px; }
.gate-card { width: min(420px, 100%); display: grid; gap: 12px; justify-items: center; padding: 32px 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg); text-align: center; }
.gate-card h1 { font-size: 1.6rem; text-wrap: balance; }
.gate-ico { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px; background: var(--brand-soft); color: var(--brand-ink); }
.gate-form { display: grid; gap: 12px; width: 100%; margin-top: 6px; }
.code-input { width: 100%; height: 60px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); text-align: center; font-family: var(--mono); font-size: 26px; letter-spacing: .3em; color: var(--ink); }
.code-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.gate-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.gate .notice { width: 100%; text-align: left; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } }
@keyframes secIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes heroZoom { from { transform: scale(1.08); } }
@keyframes breathe { 50% { transform: scale(1.04); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes sheetDown { from { transform: translateY(-30px); opacity: 0; } }

@media (min-width: 760px) {
  .guide-body { font-size: 17.5px; }
  .g-hero { margin: 0 auto; width: min(1100px, 100% - 32px); min-height: 460px; }
  .g-hero-text { padding: 40px 44px 38px; }
  .g-grid { grid-template-columns: repeat(3, 1fr); }
  .gb-place { grid-template-columns: 200px minmax(0, 1fr); }
  .gb-place-img img { height: 100%; min-height: 160px; }
  .gb-place-img.is-ico { height: auto; }
  .gb-gallery { grid-auto-columns: 46%; }
  .sheet { align-items: center; }
  .sheet-in, .sheet[data-sheet='search'] .sheet-in { border-radius: 28px; animation-name: popIn; }
  .sheet[data-sheet='search'] { align-items: flex-start; padding-top: 10svh; }
}
@media (max-width: 380px) {
  .g-quick { gap: 6px; }
  .g-quick a { font-size: 12.5px; padding: 12px 2px 10px; }
  .g-quick span { width: 42px; height: 42px; }
}
@media print {
  .g-top, .g-quick, .g-feedback, .g-back, .sheet, .g-next, .gb-map, .preview-bar { display: none !important; }
  .js .g-sec, .js .g-home.is-hidden { display: block !important; }
  .g-hero { min-height: 220px; }
}
