/* Inter (variable, 300-900) servida des del nostre domini. Font: Google Fonts, llicència SIL OFL 1.1. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #FF0043;
  --bg: #09090b;
  --panel: #18181b;
  --line: #27272a;
  --line-2: #3f3f46;
  --text: #f4f4f5;
  --dim: #a1a1aa;
  --mute: #71717a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 17px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand); color: #fff; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
code { background: var(--panel); border: 1px solid var(--line-2); color: #fff; padding: 1px 7px; border-radius: 4px; font-size: .9em; }
strong { color: #fff; }
.dim { color: var(--mute); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #18181b; background: rgb(9 9 11 / .8); backdrop-filter: blur(12px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: -.04em; text-decoration: none; }
.logo span { color: var(--brand); }
.logo img { display: block; width: 98px; height: auto; }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--brand); }
@media (max-width: 900px) { .nav-links { display: none; } }
/* Amb cinc elements, a pantalles mitjanes cal menys aire perquè el botó no surti pel marge */
@media (min-width: 901px) and (max-width: 1100px) { .nav-links { gap: 20px; } .nav-links a { letter-spacing: .08em; } }

/* Botons */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; font-size: 14px; padding: 14px 28px;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: #fff; color: #000; transform: translateY(-3px); }
.btn small { font-size: 10px; font-weight: 400; opacity: .7; margin-top: 4px; letter-spacing: .1em; }
.btn-sm { font-size: 11px; padding: 10px 20px; }
.btn-sm:hover { transform: none; }
.btn-lg { font-size: 17px; padding: 20px 44px; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
.btn-ghost:hover { background: #fff; }

/* Hero */
.hero { min-height: min(78vh, 760px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 72px; padding-bottom: 96px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-bottom: 40px; }
.hero-logo { display: block; width: 125px; height: auto; }
.pill { display: inline-flex; align-items: center; gap: 14px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgb(24 24 27 / .5); backdrop-filter: blur(4px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 2s ease-in-out infinite; }
.pill-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); }
.pill-sep { width: 1px; height: 12px; background: var(--line); }
.pill-value { font-size: 14px; font-weight: 700; color: var(--brand); }
.hero h1 { font-size: clamp(64px, 14vw, 152px); font-weight: 900; line-height: .82; text-transform: uppercase; letter-spacing: -.05em; margin-bottom: 36px; }
.hero h1 span { color: var(--brand); display: block; }
.socials { display: flex; gap: 22px; margin: -8px 0 36px; }
.socials a { display: block; color: var(--dim); transition: color .2s; }
.socials a:hover, .socials a:focus-visible { color: var(--brand); }
.socials svg { display: block; width: 22px; height: 22px; fill: currentColor; }
.lead { font-size: clamp(22px, 2.8vw, 30px); font-weight: 300; line-height: 1.25; color: var(--dim); max-width: 700px; margin: 0 0 48px; }
.lead strong { font-weight: 700; }
.hl { color: #fff; font-weight: 400; }
.lead:has(+ .sublead) { margin-bottom: 20px; }
.sublead { font-size: 18px; color: var(--mute); margin: 0 0 44px; }
.sublead strong { color: #fff; }
.ctas { display: flex; flex-wrap: wrap; gap: 20px; }
.comptador { display: grid; gap: 10px; width: 100%; max-width: 420px; margin-top: 36px; text-decoration: none; }
.comptador[hidden] { display: none; }
.comptador-text { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--mute); }
.comptador-text b { color: #fff; font-size: 15px; margin-right: 4px; }
.comptador-track { display: block; height: 4px; background: var(--line); }
.comptador-track i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .8s ease; }

/* Seccions */
.section { padding: 120px 0 0; }
.eyebrow { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3em; color: var(--brand); margin-bottom: 16px; }
.section > h2 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; text-transform: uppercase; line-height: .95; margin-bottom: 28px; }
.big { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; color: #e4e4e7; max-width: 820px; margin: 0 0 56px; }
.big:has(+ .subhead) { margin-bottom: 40px; }
.subhead { font-size: clamp(20px, 2.2vw, 24px); font-weight: 900; text-transform: uppercase; line-height: 1.1; margin: 0 0 20px; }
.num { display: block; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .1em; margin-bottom: 18px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 32px 28px; transition: background .2s; }
.card:hover { background: #111113; }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--dim); margin: 0 0 12px; }
.soon { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--mute) !important; }

/* Passos amb mockup */
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.step.rev .step-text { order: 2; }
.step h3 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; text-transform: uppercase; line-height: 1; margin-bottom: 18px; }
.step p { color: var(--dim); font-size: 18px; margin: 0 0 22px; }
.step-visual { display: flex; justify-content: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); color: #e4e4e7; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* Mockup 1: telèfon amb WhatsApp */
.phone { width: 290px; padding: 12px; border-radius: 44px; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -30px rgb(255 0 67 / .35); }
.phone-screen { border-radius: 34px; overflow: hidden; background: #0b0b0d; display: flex; flex-direction: column; height: 560px; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 40px 16px 12px; background: #141416; border-bottom: 1px solid var(--line); }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.wa-name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.wa-name small { display: block; font-size: 11px; font-weight: 400; color: var(--mute); }
.wa-chat { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; background: radial-gradient(circle at 1px 1px, #1c1c1f 1px, transparent 0) 0 0 / 14px 14px; }
.msg { max-width: 82%; padding: 7px 10px 6px; border-radius: 10px; font-size: 13px; line-height: 1.35; animation: pop 12s infinite both; }
.msg i { font-style: normal; font-size: 9.5px; color: rgb(255 255 255 / .5); margin-left: 8px; float: right; margin-top: 5px; }
.msg.in { align-self: flex-start; background: #1f1f23; border-top-left-radius: 2px; }
.msg.out { align-self: flex-end; background: var(--brand); border-top-right-radius: 2px; }
.msg.file { display: flex; align-items: center; gap: 10px; padding: 8px; }
.file-ico { flex: none; width: 34px; height: 40px; border-radius: 4px; background: #fff; color: var(--brand); font-size: 10px; font-weight: 900; display: grid; place-items: center; }
.file-name { font-size: 12.5px; font-weight: 500; }
.file-name small { display: block; font-size: 10px; color: var(--mute); }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px 22px; background: #141416; }
.wa-input span { flex: 1; padding: 8px 14px; border-radius: 999px; background: #1f1f23; font-size: 12px; color: var(--mute); }
.wa-input b { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); }
.m1 { animation-name: pop1; } .m2 { animation-name: pop2; } .m3 { animation-name: pop3; }
.m4 { animation-name: pop4; } .m5 { animation-name: pop5; } .m6 { animation-name: pop6; }
@keyframes pop1 { 0%, 4% { opacity: 0; transform: translateY(8px); } 7%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pop2 { 0%, 14% { opacity: 0; transform: translateY(8px); } 17%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pop3 { 0%, 22% { opacity: 0; transform: translateY(8px); } 25%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pop4 { 0%, 32% { opacity: 0; transform: translateY(8px); } 35%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pop5 { 0%, 44% { opacity: 0; transform: translateY(8px); } 47%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pop6 { 0%, 54% { opacity: 0; transform: translateY(8px); } 57%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Mockup 3: lliurament */
.handoff { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); padding: 24px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8); }
.ho-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ho-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3em; color: var(--brand); }
.ho-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; background: #fff; color: #000; animation: badge 8s infinite both; }
.ho-place { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 18px; }
.ho-pin { flex: none; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: var(--brand); transform: rotate(-45deg); }
.ho-place b { display: block; font-size: 14px; }
.ho-place small { font-size: 12px; color: var(--mute); }
.ho-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 18px; }
.ho-list div { background: var(--panel); padding: 12px; }
.ho-list span { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-bottom: 4px; }
.ho-list b { font-size: 20px; font-weight: 900; }
.ho-bar { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.ho-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; animation: fill 8s infinite both; }
.ho-foot { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.ho-check { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); position: relative; flex: none; }
.ho-check::after { content: ""; position: absolute; left: 5px; top: 5px; width: 7px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
@keyframes fill { 0%, 10% { width: 0; } 55%, 92% { width: 100%; } 100% { width: 0; } }
@keyframes badge { 0%, 55% { opacity: 0; transform: scale(.8); } 60%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Banda final */
.band { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 56px; padding: 40px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.band h3 { font-size: 28px; font-weight: 900; text-transform: uppercase; margin-bottom: 8px; }
.band p { margin: 0; color: var(--dim); }

/* Peu */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 160px; padding-top: 40px; padding-bottom: 48px; border-top: 1px solid #18181b; }
.foot-brand { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #52525b; }
.foot-links { display: flex; gap: 40px; }
.foot-links a { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--mute); text-decoration: none; }
.foot-links a:hover { color: var(--brand); }

@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { min-height: 0; padding-top: 48px; padding-bottom: 24px; }
  .section { padding-top: 88px; }
  .grid3 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 40px; }
  .step.rev .step-text { order: 0; }
  .band { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .footer { flex-direction: column; }
  .foot-links { flex-direction: column; align-items: center; gap: 16px; }
  .btn-lg { width: 100%; padding: 18px 16px; font-size: clamp(14px, 4.4vw, 17px); }
  .btn-lg > span { white-space: nowrap; }
  .ctas { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Objectiu */
.manifest { font-size: clamp(26px, 3.6vw, 40px); font-weight: 300; line-height: 1.2; color: var(--dim); max-width: 900px; margin: 0 0 56px; padding-left: 28px; border-left: 4px solid var(--brand); }
.manifest strong { font-weight: 700; }
.pledges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pledge { background: var(--bg); padding: 32px 28px; }
.signa { display: flex; align-items: center; gap: 24px; margin-top: 40px; }
.signa img { display: block; width: 125px; height: auto; flex: none; }
.signa-sep { width: 1px; height: 32px; background: var(--line-2); flex: none; }
.signa p { margin: 0; color: var(--dim); font-size: 16px; }
.pledge h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; line-height: 1.05; margin-bottom: 12px; }
.pledge p { margin: 0; color: var(--dim); }
@media (max-width: 860px) { .pledges { grid-template-columns: 1fr; } .manifest { padding-left: 20px; } }
.ho-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.ho-opts span { padding: 9px 8px; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--line-2); color: var(--mute); }
.ho-opts .on { border-color: var(--brand); background: rgb(255 0 67 / .12); color: #fff; }

/* Formulari de recollidors */
.rform { width: 100%; max-width: 480px; display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); padding: 28px; }
.rform label { display: grid; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.rform input:not([type=radio]):not([type=checkbox]) { width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: #fff; font: 400 16px/1.3 "Inter", sans-serif; padding: 13px 14px; outline: none; transition: border-color .2s; }
.rform input:focus { border-color: var(--brand); }
.rform input::placeholder { color: #52525b; }
.rform-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rform fieldset { border: 0; margin: 0; padding: 0; }
.rform legend { padding: 0; margin-bottom: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.rform-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rform-opts label { display: block; }
.rform-opts input { position: absolute; opacity: 0; pointer-events: none; }
.rform-opts span { display: block; padding: 11px 4px; text-align: center; border: 1px solid var(--line-2); color: var(--dim); font-size: 12px; letter-spacing: .04em; text-transform: none; cursor: pointer; transition: border-color .2s, background .2s; }
.rform-opts input:checked + span { border-color: var(--brand); background: rgb(255 0 67 / .12); color: #fff; }
.rform-opts input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.rform-check { display: flex !important; align-items: flex-start; gap: 10px; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: 14px !important; color: var(--dim) !important; cursor: pointer; }
.rform-check input { accent-color: var(--brand); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.rform-check a { color: #fff; }
.rform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.rform-error { margin: 0; color: var(--brand); font-size: 14px; font-weight: 700; }
.rform-error:empty { display: none; }
.rform button { border: 0; cursor: pointer; font-family: inherit; }
.rform button:disabled { opacity: .5; cursor: wait; }

/* Pàgines secundàries */
.thanks { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 80px; padding-bottom: 40px; }
.thanks h1, .legal h1 { font-size: clamp(48px, 9vw, 104px); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.04em; margin-bottom: 28px; }
.thanks h1 { color: var(--brand); }
.thanks-nom { color: #fff; }
.small-note { margin-top: 20px; font-size: 14px; }
.legal { max-width: 760px; padding-top: 80px; }
.legal h2 { font-size: 20px; font-weight: 900; text-transform: uppercase; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--dim); }
.legal a { color: #fff; }

@media (max-width: 860px) {
  .rform { padding: 22px 18px; }
  .rform-2 { grid-template-columns: 1fr; }
  .rform-opts { grid-template-columns: 1fr 1fr; }
}

/* Enllaç de descàrrega */
.dl { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; text-decoration: none; border-bottom: 2px solid var(--brand); padding-bottom: 4px; }
.dl::before { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg) translateY(-3px); }
.dl:hover { color: var(--brand); }
.thanks .dl { margin-top: 28px; }
.step .btn { margin-bottom: 24px; }

/* El full */
.full-doc { display: block; width: 100%; max-width: 340px; }
.full-doc img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), 14px 14px 0 0 rgb(255 0 67 / .14); }
@media (max-width: 860px) {
  .full-doc { max-width: 240px; margin: 0 auto; }
}

/* Formulari (pas 01) i targeta de lliurament (pas 03) sobre fons blanc */
.rform, .handoff {
  --panel: #fff; --bg: #f4f4f5; --line: #e4e4e7; --line-2: #d4d4d8;
  --text: #09090b; --dim: #3f3f46; --mute: #71717a;
  color: var(--text);
}
.rform input:not([type=radio]):not([type=checkbox]) { color: var(--text); }
.rform input::placeholder { color: #a1a1aa; }
.rform-check a, .rform-opts input:checked + span, .ho-opts .on { color: var(--text); }
.rform .btn:hover { background: #09090b; color: #fff; }
.ho-badge { background: #09090b; color: #fff; }
.handoff { box-shadow: 0 40px 80px -30px rgb(0 0 0 / .5); }

/* Cercador de municipis del formulari (com el MunicipiTypeahead d'alhora_militants) */
.ac { position: relative; display: block; }
.rform .ac input { padding-right: 40px; }
.ac-x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 4px; background: none; color: #9ca3af; cursor: pointer; }
.ac-x:hover { color: #4b5563; background: #f3f4f6; }
.ac-x[hidden] { display: none; }
.ac-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ac-list { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 0; list-style: none; max-height: 256px; overflow-y: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.ac-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #111827; cursor: pointer; }
.ac-list li small { font-size: 12px; line-height: 16px; color: #9ca3af; white-space: nowrap; }
.ac-list li.on { background: #fef2f2; }

/* Bàner de galetes (assets/consentiment.js) */
.galetes { position: fixed; z-index: 60; left: 24px; bottom: 24px; max-width: 420px; padding: 20px; background: var(--panel); border: 1px solid var(--line-2); border-left: 4px solid var(--brand); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .8); }
.galetes[hidden] { display: none; }
.galetes p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--dim); }
.galetes a { color: #fff; }
.galetes-botons { display: flex; gap: 10px; margin-top: 16px; }
.galetes .btn { font-size: 11px; padding: 10px 20px; border: 0; cursor: pointer; font-family: inherit; }
.galetes .btn:hover { transform: none; }
.foot-links button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--mute); }
.foot-links button:hover { color: var(--brand); }
@media (max-width: 640px) {
  .galetes { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
.enllac { padding: 0; border: 0; background: none; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; }

/* Menú hamburguesa (assets/menu.js): a totes les pàgines i mides. El panell queda sota el nav,
   que es manté a sobre amb el botó convertit en creu per tancar. */
.menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: 16px; padding: 10px; border: 0; background: none; cursor: pointer; flex-shrink: 0; }
.nav-in > .logo + .menu-btn { margin-left: auto; }
.menu-btn span { display: block; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-btn.obert span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.obert span:nth-child(2) { opacity: 0; }
.menu-btn.obert span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel { position: fixed; inset: 0; z-index: 45; background: #09090b; overflow-y: auto; padding: 120px 24px 48px; }
.menu-panel[hidden] { display: none; }
.menu-links { display: flex; flex-direction: column; max-width: 1032px; margin: 0 auto; }
.menu-links a { padding: 18px 0; border-bottom: 1px solid #27272a; color: #fff; text-decoration: none; font-size: clamp(28px, 6vw, 44px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--brand); }
.menu-socials { max-width: 1032px; margin: 36px auto 0; }
.menu-socials svg { width: 28px; height: 28px; }
.nav-in > .btn-sm { white-space: nowrap; }
@media (max-width: 420px) { .nav-in > .btn-sm { padding: 10px 12px; letter-spacing: .06em; } .menu-btn { margin-left: 4px; } }
/* A escriptori hi ha els enllaços al nav; el menú hamburguesa només és per a mòbil. */
@media (min-width: 901px) { .menu-btn { display: none; } }

/* Agenda de recollida (secció generada per agenda/genera.mjs). Tota la secció amb fons blanc, d'una vora
   a l'altra de la pantalla encara que visqui dins de .wrap (l'ombra i el clip-path l'estiren). */
.agenda { margin-top: 120px; padding: 96px 0; background: #fff; color: #3f3f46; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
.agenda > h1, .agenda > h2 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; text-transform: uppercase; line-height: .95; margin: 0 0 28px; color: #09090b; }
.agenda .big { color: #3f3f46; }
.agenda .dim { color: #71717a; }
.agenda .subhead { margin-top: 48px; color: #09090b; }
.agenda .big:has(+ .agenda-nota) { margin-bottom: 20px; }
.agenda-nota { display: flex; gap: 10px; align-items: flex-start; max-width: 820px; margin: 0 0 56px; font-size: 16px; line-height: 1.5; color: #71717a; }
.agenda-nota svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.agenda-intro { color: #71717a; font-size: 18px; margin: -8px 0 24px; }
.agenda-punts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.agenda-punt { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: #f4f4f5; color: #3f3f46; text-decoration: none; border-radius: 16px; border-left: 6px solid var(--brand); transition: transform .2s; }
.agenda-punt:hover { transform: translateY(-2px); }
.agenda-punt strong { color: #09090b; font-size: 20px; }
.agenda-punt-mun { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--brand); }
.agenda-punt .agenda-hora { margin-top: 8px; }
.agenda-llista { background: #fff; color: #3f3f46; border: 1px solid #e4e4e7; }
.agenda-dia + .agenda-dia { border-top: 1px solid #e4e4e7; }
.agenda-dia h4 { margin: 0; padding: 14px 24px; background: #f4f4f5; color: #09090b; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.agenda-acte { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 24px; font-size: 17px; line-height: 1.45; }
.agenda-acte + .agenda-acte { border-top: 1px dashed #e4e4e7; }
.agenda-acte strong { color: #09090b; }
.agenda-acte a { display: flex; align-items: center; gap: 6px; width: fit-content; margin-top: 2px; color: #71717a; font-size: 15px; text-decoration: none; }
.agenda-mapa { flex: none; width: 18px; height: 18px; fill: #3f3f46; }
.agenda-acte a:hover { color: var(--brand); }
.agenda-acte a:hover span { text-decoration: underline; }
.agenda-hora { font: 700 15px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--brand); white-space: nowrap; padding-top: 2px; }
@media (max-width: 640px) {
  .agenda { margin-top: 80px; padding: 64px 0; }
  .agenda-acte { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
  .agenda-dia h4 { padding: 12px 18px; }
}

/* Crida i pop-up «Proposa una parada» de l'agenda (assets/proposta.js) */
.proposta-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 32px; background: #09090b; color: #fff; border-left: 6px solid var(--brand); }
.proposta-cta h3 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; line-height: 1.15; color: #fff; }
.proposta-cta p { margin: 0; color: #a1a1aa; font-size: 17px; }
.proposta-cta button { border: 0; cursor: pointer; font-family: inherit; }
/* El text del botó és llarg: en mòbil pot fer dues línies en lloc de sortir del botó */
.proposta-cta .btn-lg > span { white-space: normal; text-align: center; line-height: 1.35; }
.proposta-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: none; overflow: auto; }
.proposta-dialog::backdrop { background: rgb(9 9 11 / .75); }
.proposta-dialog .rform { max-width: none; }
.proposta-cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.proposta-cap h3 { margin: 0; font-size: 22px; font-weight: 900; text-transform: uppercase; color: #09090b; }
.proposta-tanca { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: none !important; color: #71717a; }
.proposta-tanca:hover { color: #09090b; }
.proposta-tanca svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.proposta-camps { display: grid; gap: 16px; }
.proposta-camps[hidden], .proposta-ok[hidden] { display: none; }
.rform textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font: 400 16px/1.4 "Inter", sans-serif; padding: 13px 14px; outline: none; resize: vertical; transition: border-color .2s; }
.rform textarea:focus { border-color: var(--brand); }
.rform textarea::placeholder { color: #a1a1aa; }
.proposta-ok p { margin: 0 0 14px; font-size: 18px; line-height: 1.5; color: #3f3f46; }
.proposta-ok b { color: #09090b; }
.proposta-ok .btn { margin-top: 8px; }
@media (max-width: 640px) { .proposta-cta { padding: 24px 20px; } .proposta-cta button { width: 100%; } }

/* En imprimir (p. ex. «Imprimeix les instruccions»), el bàner de galetes i el menú no han de sortir al paper. */
@media print { .galetes, .menu-panel, .menu-btn { display: none !important; } }

/* Barra superior al mòbil: logo + «Vull recollir avals» + hamburguesa no cabien en 412 px (Pixel 8a) i
   feien scroll horitzontal. Menys espai entre elements i botó més compacte; la icona del menú
   s'alinea a la vora (el padding del botó ja fa d'àrea tàctil). */
@media (max-width: 900px) {
  .nav-in { gap: 12px; }
  .menu-btn { margin-left: 0; margin-right: -10px; }
}
@media (max-width: 420px) {
  .nav-in > .btn-sm { padding: 9px 12px; letter-spacing: .06em; }
  .logo img { width: 84px; }
}
@media (max-width: 380px) {
  .nav-in { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .nav-in > .btn-sm { font-size: 10px; padding: 8px 10px; letter-spacing: .04em; }
  .logo img { width: 76px; }
}
/* Pantalles molt estretes (320 px): el botó «Vull recollir avals» ja és dins el menú hamburguesa. */
@media (max-width: 340px) { .nav-in > .btn-sm { display: none; } }
/* Una sola columna al mòbil sense amplada mínima: si no, el contingut de la targeta de lliurament
   eixampla la columna i a 320 px fa scroll horitzontal. */
@media (max-width: 860px) { .step { grid-template-columns: minmax(0, 1fr); } }

/* Pàgina de locals de recollida (locals-recollida.html): fa servir la mateixa llista que l'agenda (.agenda-llista). */

/* Secció de locals de l'inici, enganxada a l'agenda (mateix fons blanc, sense franja fosca entre totes dues). */
.agenda.agenda-seguida { margin-top: -1px; padding-top: 24px; }
.agenda-nota a { color: #09090b; text-decoration: underline; }

/* Enllaços creuats entre l'agenda i els locals de recollida, sota el paràgraf d'introducció. */
.agenda .big:has(+ .agenda-enllac) { margin-bottom: 16px; }
.agenda-enllac { margin: 0 0 40px; }
.agenda-enllac + .agenda-nota { margin-top: -24px; }
.agenda-enllac a { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--brand); text-decoration: none; }
.agenda-enllac a:hover { text-decoration: underline; }
.agenda-enllac svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.agenda-enllac a:hover svg { transform: translateX(3px); }

/* Barra d'ordinador justa (901-1000 px) amb «Locals de recollida»: lletra i espais més petits. */
@media (min-width: 901px) and (max-width: 1000px) { .nav-links { gap: 14px; } .nav-links a { font-size: 11px; letter-spacing: .04em; } .nav-in > .btn-sm { padding: 10px 14px; letter-spacing: .06em; } }
.local-dies { display: block; margin-top: 4px; font-size: 14px; color: #52525b; }

/* Aclariment del formulari de parades: qui la proposa l'ha de muntar. */
.proposta-cta-nota { margin-top: 10px !important; font-size: 15px !important; color: #d4d4d8 !important; }
.proposta-avis { margin: 0; padding: 12px 14px; background: #fff5f7; border-left: 4px solid var(--brand); font-size: 14px; line-height: 1.5; color: #3f3f46; text-transform: none; letter-spacing: 0; font-weight: 400; }
.proposta-avis b { color: #09090b; }
.proposta-avis a { color: #c8002f; }
