/* 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: var(--mute); text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--brand); }
@media (max-width: 1100px) { .nav-links { display: none; } }

/* 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(44px, 9vw, 112px); font-weight: 900; line-height: .82; text-transform: uppercase; letter-spacing: -.05em; margin-bottom: 36px; }
.hero h1 span { color: var(--brand); }
.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; } }

/* ===================================================================
   Afegits per al web d'avals electrònics (alhoraexterior)
   La resta del full és el de foraespanya.cat, sense canvis.
   =================================================================== */
.signa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.signa-grid .checks { margin-top: 8px; }
.rform select { width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
  font: 400 16px/1.3 "Inter", sans-serif; padding: 13px 14px; outline: none; border-radius: 0; }
.rform select:focus { border-color: var(--brand); }
.rform .ajuda { font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--mute); }
.resultat { margin-top: 4px; font-size: 15px; color: var(--text); }
.resultat:empty { display: none; }
.resultat .ok-titol { font-weight: 900; text-transform: uppercase; color: #15803d; margin: 0 0 6px; }
.resultat .err-titol { font-weight: 700; color: var(--brand); margin: 0 0 6px; }
.resultat ul { margin: 8px 0 0; padding-left: 18px; color: var(--dim); font-size: 13px; }
.resultat a { color: var(--text); }
.mobil { max-width: 560px; }
.mobil p { color: var(--dim); font-size: 18px; }
.mobil .btn { width: 100%; margin-top: 12px; border: 0; cursor: pointer; font-family: inherit; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p, .faq details li { color: var(--dim); max-width: 760px; }
.dates { list-style: none; padding: 0; margin: 0; }
.dates li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.dates li b { color: var(--brand); font-weight: 900; text-transform: uppercase; font-size: 15px; letter-spacing: .04em; }
.dates li span { color: var(--dim); }
.card a, .step a, .section p a { color: #fff; }
.destacat { margin: 16px 0 0; padding: 14px 16px; border-left: 4px solid var(--brand); background: rgb(255 0 67 / .12); color: #fff !important; font-size: 16px; line-height: 1.4; }
.destacat-ample { margin-top: 24px; padding: 20px 24px; font-size: 17px; }
.destacat .enllac-guia { margin: 0 0 0 6px; }
.blanc { color: #fff; font-weight: 700; }
.destacat b { color: var(--brand); font-weight: 900; }
.nota { font-size: 14px; color: var(--mute); margin-top: 24px; }
.passos { margin: 0; padding-left: 22px; color: var(--dim); }
.passos li { padding: 8px 0 8px 6px; border-top: 1px solid var(--line); }
.passos li::marker { color: var(--brand); font-weight: 700; }
.step-text h3.subhead + .passos { margin-top: 4px; }
.passos + * { margin-top: 0; }
.cap-form { display: flex; align-items: center; gap: 20px; margin-top: 40px; color: var(--brand); text-decoration: none;
  font-size: clamp(18px, 2vw, 22px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1; }
.cap-form svg { flex: none; }
.cap-dreta { width: 120px; height: 24px; }
.cap-avall { display: none; width: 24px; height: 64px; }
.enllac-guia { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #fff !important; font-size: 14px; font-weight: 700;
  text-decoration: none; border-bottom: 2px solid var(--brand); padding-bottom: 2px; transition: color .2s; }
.enllac-guia::after { content: "→"; color: var(--brand); }
.enllac-guia:hover { color: var(--brand) !important; }
.sublead .enllac-guia { display: table; margin-top: 12px; }
.card .checks { margin-bottom: 4px; }
.card .destacat { font-size: 15px; }
.card-btns { display: grid; gap: 10px; margin-top: 8px; }
.card-btns .btn { border: 0; cursor: pointer; font-family: inherit; font-size: 12px; padding: 12px 16px; }
.card-btns .nota { margin: 0; }
.band-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.guia { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; padding: 56px 0; border-top: 1px solid var(--line); align-items: start; }
.guia-lletra { display: grid; place-items: center; width: 48px; height: 48px; background: var(--brand); color: #fff; font-size: 22px; font-weight: 900; margin-bottom: 20px; }
.guia-cap h3 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; text-transform: uppercase; line-height: 1; margin-bottom: 16px; }
.guia-cap p { color: var(--dim); font-size: 18px; margin: 0 0 22px; }
.guia-cap .nota { font-size: 14px; }
.guia-cap a:not(.btn) { color: #fff; }
.guia-opcio { margin: 0 0 20px; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.guia-opcio span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--brand); }
.cronologia + .guia-opcio { margin-top: 40px; }
.cronologia { list-style: none; counter-reset: pas; margin: 0; padding: 0; }
.cronologia li { counter-increment: pas; position: relative; padding: 0 0 28px 52px; color: var(--dim); }
.cronologia li:last-child { padding-bottom: 0; }
.cronologia li::before { content: counter(pas); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--brand); color: #fff; font-size: 14px; font-weight: 900; background: var(--bg); z-index: 1; }
.cronologia li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 2px; background: var(--line-2); }
.cronologia b { color: #fff; }
.cronologia a { color: #fff; }
@media (max-width: 860px) {
  .signa-grid { grid-template-columns: 1fr; gap: 40px; }
  .cap-form { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; }
  .cap-dreta { display: none; }
  .cap-avall { display: block; margin-left: 8px; }
  .guia { grid-template-columns: 1fr; gap: 32px; }
  .dates li { grid-template-columns: 1fr; gap: 4px; }
}
.step:has(.passos) { align-items: start; }

/* Pàgina interior del vot (vot.html): fons blanc com l'agenda de foraespanya.cat */
.pagina-blanca { background: #fff; color: #3f3f46; }
.pagina-blanca .nav { background: #09090b; }
.pagina-blanca .footer { border-top-color: #e4e4e7; }
.pagina-blanca .foot-brand { color: #71717a; }
.pagina-blanca .foot-links a { color: #52525b; }
.vot { padding-top: 80px; }
.vot > h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; text-transform: uppercase; line-height: .95; margin: 0 0 28px; color: #09090b; }
.vot .big { color: #3f3f46; }
.vot-grup { margin-top: 48px; border: 1px solid #e4e4e7; }
.vot-grup h2 { margin: 0; padding: 16px 24px; background: #f4f4f5; color: #09090b; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.vot-grup h2 span { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .1em; }
.vot-llista { list-style: none; margin: 0; padding: 0; }
.vot-llista li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 24px; font-size: 17px; line-height: 1.45; }
.vot-llista li + li { border-top: 1px dashed #e4e4e7; }
.vot-llista strong { color: #09090b; }
.vot-data { font: 700 15px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--brand); white-space: nowrap; padding-top: 2px; }
.vot-nota { margin: 32px 0 0; font-size: 14px; color: #71717a; }
.vot-nota a { color: #09090b; }
.vot .band { background: #09090b; color: #fff; margin-bottom: 0; }
@media (max-width: 640px) {
  .vot { padding-top: 56px; }
  .vot-llista li { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
  .vot-grup h2 { padding: 14px 18px; }
}

/* Data límit del hero: versió curta al mòbil */
.pill-curt { display: none; }
@media (max-width: 640px) {
  .pill-llarg { display: none; }
  .pill-curt { display: inline; white-space: nowrap; }
}

/* Encapçalament del formulari */
.rform-cap { margin: 0 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.35; color: var(--text); }
.rform-cap b { color: var(--brand); }

/* Textos que no s'han de partir: botó de la franja final i enllaços del peu */
.band .btn, .foot-links a, .foot-links button { white-space: nowrap; }
.foot-links { flex-wrap: wrap; justify-content: flex-end; }
.foot-brand { white-space: nowrap; }
@media (min-width: 861px) { .foot-links { gap: 28px; } }

/* Passos de la secció Signa: números en lloc de ticks */
.passos-num { counter-reset: pas; }
.passos-num li { counter-increment: pas; padding-left: 38px; }
.passos-num li::before { content: counter(pas); left: 0; top: 11px; width: 24px; height: 24px; border: 2px solid var(--brand); border-radius: 50%;
  transform: none; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; line-height: 1; }

/* Requisits de Qui pot avalar: tick davant del títol */
.amb-tick { position: relative; padding-left: 34px; }
.amb-tick::before { content: ""; position: absolute; left: 3px; top: .3em; width: 16px; height: 8px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }

/* Botó centrat sota «Només et calen 3 coses» */
.cta-centre { display: flex; justify-content: center; margin-top: 48px; }

/* Data de naixement: dia, mes i any */
.rform-data div { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 10px; }
.rform-data legend { display: block; }
/* Al mòbil el formulari s'amaga amb l'atribut hidden; .rform { display: grid } el tornava a mostrar. */
.rform[hidden] { display: none; }
