/* Guia visual per publicar. Pensada primer per al mòbil. Tots els colors venen de tokens.css. */
.guia { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s5); }
.guia > *, .guia section > * { margin: 0; }
.guia h1 { font-size: clamp(26px, 6vw, 32px); line-height: 1.15; letter-spacing: -.5px; }
.guia h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.guia section { display: flex; flex-direction: column; gap: var(--s2); }
.guia section > p { font-size: 16px; line-height: 1.5; }
.g-lead { margin-top: calc(var(--s3) * -1) !important; font-size: 16px; line-height: 1.45; color: var(--muted); }
.g-back a { display: inline-flex; align-items: center; gap: var(--s1); min-height: var(--touch); font-size: 14px; font-weight: 600; color: var(--link); text-decoration: none; }
.g-foot { font-size: 14px; color: var(--muted); }

/* Portada: una targeta per guia */
.g-cards { display: flex; flex-direction: column; gap: var(--s3); }
.g-cards a { display: flex; align-items: center; gap: var(--s4); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); color: var(--ink); text-decoration: none; }
.g-cards a:hover { border-color: var(--border); }
.g-cards a > svg { flex: none; color: var(--muted); }
.g-icon { flex: none; width: 44px; height: 44px; border-radius: var(--r-m); background: var(--reg-bg); color: var(--reg-ink); display: flex; align-items: center; justify-content: center; }
.g-cards a:nth-child(5n+2) .g-icon { background: var(--age-bg); color: var(--age-ink); }
.g-cards a:nth-child(5n+3) .g-icon { background: var(--space-bg); color: var(--space-ink); }
.g-cards a:nth-child(5n+4) .g-icon { background: var(--price-bg); color: var(--price-ink); }
.g-cards a:nth-child(5n+5) .g-icon { background: var(--access-bg); color: var(--access-ink); }
.g-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.g-card-text strong { font-size: 16px; }
.g-card-text small { font-size: 14px; line-height: 1.35; color: var(--muted); }

/* Passos numerats */
.g-steps { margin: calc(var(--s3) * -1) 0 0 !important; padding: 0; list-style: none; counter-reset: pas; display: flex; flex-direction: column; gap: var(--s5); }
.g-steps li { counter-increment: pas; display: flex; flex-direction: column; gap: var(--s3); }
.g-steps h3 { margin: 0; display: flex; align-items: center; gap: var(--s3); font-size: 19px; }
.g-steps:not(.plain) h3::before { content: counter(pas); flex: none; width: 30px; height: 30px; border-radius: var(--r-full); background: var(--selected-bg); color: var(--selected-ink); font-size: 15px; display: flex; align-items: center; justify-content: center; }
.g-steps p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Dibuixos esquemàtics del formulari */
.g-draw { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.g-draw p { color: var(--ink); }
.g-field { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.g-field span { font-size: 12px; font-weight: 600; color: var(--muted); }
.g-field b { padding: 10px var(--s3); border: 1px solid var(--border); border-radius: var(--r-m); font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
.g-field.mark b { border: 2px solid var(--link); }
.g-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.g-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.g-chip { padding: 6px 10px; border-radius: var(--r-full); background: var(--chip); font-size: 13px; font-weight: 600; }
.g-chip.on { background: var(--selected-bg); color: var(--selected-ink); }
.g-chip.price { background: var(--price-bg); color: var(--price-ink); }
.g-chip.age { background: var(--age-bg); color: var(--age-ink); }
.g-chip.space { background: var(--space-bg); color: var(--space-ink); }
.g-chip.reg { background: var(--reg-bg); color: var(--reg-ink); }
.g-chip.access { background: var(--access-bg); color: var(--access-ink); }
.g-chip.online { background: var(--online-bg); color: var(--online-ink); }
.g-option { display: flex; flex-direction: column; gap: 2px; padding: 10px var(--s3); border: 2px solid var(--line); border-radius: var(--r-m); }
.g-option.on { border-color: var(--ink); background: var(--soft); }
.g-option b { font-size: 14px; }
.g-option span { font-size: 13px; color: var(--muted); }
.g-row { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px var(--s3); border-radius: var(--r-m); background: var(--soft); font-size: 14px; }
.g-row b { font-weight: 600; min-width: 0; }
.g-row span { flex: none; color: var(--muted); }
.g-button { align-self: flex-start; padding: 10px var(--s4); border-radius: var(--r-m); border: 1px solid var(--ink); font-size: 14px; font-weight: 700; }
.g-button.primary { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.g-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-size: 14px; color: var(--muted); }
.g-note { font-size: 14px !important; line-height: 1.4; font-weight: 600; }
.g-bubble { align-self: flex-end; max-width: 92%; padding: var(--s3) 14px; border-radius: 16px 16px 4px 16px; background: var(--selected-bg); color: var(--selected-ink) !important; font-size: 14px !important; line-height: 1.45; overflow-wrap: anywhere; }
.g-drop { padding: 14px; border: 1.5px dashed var(--border); border-radius: var(--r-m); font-size: 13px; color: var(--muted); text-align: center; }
.g-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.g-stats div { display: flex; flex-direction: column; gap: 2px; padding: var(--s3) var(--s2); border-radius: var(--r-m); background: var(--soft); text-align: center; }
.g-stats b { font-size: 26px; font-weight: 800; }
.g-stats span { font-size: 12px; line-height: 1.3; color: var(--muted); }

/* Bo de saber i guia següent */
.g-tips { padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s2); }
.g-tips li { display: flex; flex-direction: column; gap: 2px; padding: var(--s3) 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.g-tips strong { font-size: 15px; }
.g-tips span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.g-next { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4); border-radius: var(--r-l); background: var(--selected-bg); color: var(--selected-ink); text-decoration: none; }
.g-next span { display: flex; flex-direction: column; gap: 2px; }
.g-next small { font-size: 13px; opacity: .8; }
.g-next strong { font-size: 16px; }
