/* cuantovalepiso.com — versió Claude */
@font-face {
  font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  --ink: #0d1b2a;
  --ink-2: #33445a;
  --muted: #64748b;
  --line: #e4e8ee;
  --line-2: #d4dae3;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-warm: #faf7f2;
  --brand: #0a7c66;       /* verd profund: confiança, diners */
  --brand-2: #0fa37f;
  --brand-soft: #e6f5f0;
  --navy: #0f2742;
  --accent: #ffb547;      /* toc càlid per als detalls */
  --danger: #c2410c;
  --ok: #0a7c66;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --sh-sm: 0 1px 2px rgba(13,27,42,.06), 0 1px 1px rgba(13,27,42,.04);
  --sh: 0 10px 30px -12px rgba(13,27,42,.18), 0 2px 6px rgba(13,27,42,.05);
  --sh-lg: 0 30px 60px -20px rgba(13,27,42,.28), 0 8px 20px -10px rgba(13,27,42,.12);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 750; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: 0; transform: translateY(-150%); background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { transform: translateY(1rem); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Botons ---------- */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 999px; border: 0; background: var(--b); color: #fff; font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; box-shadow: 0 6px 16px -8px rgba(10,124,102,.7); white-space: nowrap; }
.btn:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn--dark { background: var(--ink); box-shadow: none; }
.btn--dark:hover { background: var(--navy); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .92rem; }
.link-btn:hover { color: var(--brand-2); }

/* ---------- Capçalera ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 780; font-size: 1.15rem; letter-spacing: -0.03em; }
.logo svg { width: 32px; height: 32px; }
.logo b { color: var(--brand); font-weight: 780; }
.top nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
.top nav a:hover { color: var(--ink); }
.top .btn { padding: .6rem 1.1rem; font-size: .92rem; }
@media (max-width: 860px) { .top nav { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(15,163,127,.12), transparent 60%),
  radial-gradient(900px 400px at -10% 20%, rgba(255,181,71,.10), transparent 60%),
  linear-gradient(#fff, var(--bg-soft)); padding: 48px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; position: relative; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 650; color: var(--brand); background: var(--brand-soft); padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1.1rem; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(15,163,127,.18); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: .35em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 34rem; }
.ticks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1.4rem 0 0; color: var(--ink-2); font-size: .95rem; font-weight: 550; }
.ticks li { display: flex; align-items: center; gap: .45rem; }
.ticks svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.hero__sources { margin-top: 2rem; display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; }
.hero__sources svg { width: 34px; height: 34px; flex: none; }
@media (min-width: 980px) {
  .hero { padding: 72px 0 96px; }
  .hero__grid { grid-template-columns: 1.02fr .98fr; gap: 56px; }
  .hero__copy { padding-top: 28px; position: sticky; top: 110px; }
}
@media (max-width: 979px) { .ticks, .hero__sources { display: none; } .hero__lead { margin-bottom: 0; } }

/* ---------- Configurador ---------- */
.cfg { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); border: 1px solid rgba(13,27,42,.06); overflow: hidden; scroll-margin-top: 84px; }
.cfg__head { padding: 18px 22px 0; }
.cfg__meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.cfg__bar { height: 4px; background: var(--line); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.cfg__bar span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 4px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.cfg__body { padding: 22px; }
@media (min-width: 560px) { .cfg__head { padding: 22px 30px 0; } .cfg__body { padding: 26px 30px 30px; } }
.step { animation: entra .35s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: 1.45rem; margin-bottom: .3rem; outline: none; }
.step__sub { color: var(--muted); margin-bottom: 1.25rem; font-size: .97rem; }
.step__nav { display: flex; gap: .75rem; margin-top: 1.5rem; align-items: center; }
.step__nav .btn:last-child { flex: 1; }
.back { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; padding: .4rem 0; margin-bottom: .6rem; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

/* Cercador d'adreces */
.search { position: relative; }
.search__box { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 0 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.search__box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,163,127,.15); }
.search__box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.05rem; padding: 15px 0; background: transparent; color: var(--ink); min-width: 0; }
.search input::placeholder { color: #94a3b8; }
.spin { width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: gira .7s linear infinite; flex: none; }
@keyframes gira { to { transform: rotate(360deg); } }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-lg); list-style: none; margin: 0; padding: 6px; z-index: 20; max-height: 320px; overflow-y: auto; }
.sug li { display: flex; gap: .7rem; align-items: flex-start; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.sug li[aria-selected="true"], .sug li:hover { background: var(--bg-soft); }
.sug svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 3px; }
.sug strong { display: block; font-weight: 600; font-size: .97rem; }
.sug small { color: var(--muted); font-size: .84rem; }
.sug__empty { color: var(--muted); font-size: .92rem; cursor: default !important; background: none !important; }
.hint { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
.below { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; gap: 1rem; flex-wrap: wrap; }
.mini-trust { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .82rem; }
.mini-trust svg { width: 15px; height: 15px; color: var(--brand); }

/* Edifici: alçat amb plantes i portes */
.finca { display: flex; gap: .85rem; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 1rem; }
.finca svg { width: 36px; height: 36px; flex: none; }
.finca strong { display: block; font-size: .98rem; }
.finca small { color: var(--muted); font-size: .84rem; }
.finca__no { margin-left: auto; white-space: nowrap; }
.edifici { border: 1px solid var(--line); border-radius: 14px; max-height: 360px; overflow-y: auto; background: linear-gradient(#fff, #fbfcfd); }
.planta { display: grid; grid-template-columns: 88px 1fr; align-items: stretch; border-bottom: 1px dashed var(--line); }
.planta:last-child { border-bottom: 0; }
.planta__nom { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 12px 10px 12px 14px; display: flex; align-items: center; background: var(--bg-soft); border-right: 1px solid var(--line); }
.portes { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; }
.porta { border: 1.5px solid var(--line-2); background: #fff; border-radius: 10px; padding: 7px 11px; font: inherit; cursor: pointer; text-align: left; line-height: 1.25; transition: border-color .15s, background .15s, transform .1s; min-width: 74px; }
.porta:hover { border-color: var(--brand); background: var(--brand-soft); }
.porta:active { transform: scale(.97); }
.porta b { display: block; font-size: .95rem; }
.porta span { font-size: .78rem; color: var(--muted); }
.estat-carrega { display: flex; align-items: center; gap: .75rem; color: var(--muted); padding: 1.25rem 0; }
.skel { height: 44px; border-radius: 10px; background: linear-gradient(90deg, var(--bg-soft), #eef1f5, var(--bg-soft)); background-size: 200% 100%; animation: brilla 1.2s infinite; margin-bottom: 8px; }
@keyframes brilla { to { background-position: -200% 0; } }
.avis { border-radius: 12px; padding: 12px 14px; font-size: .93rem; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; margin: 0 0 1rem; }
.avis--info { background: var(--brand-soft); border-color: #bfe6da; color: #064e3f; }
.alt-link { margin-top: .9rem; text-align: center; }

/* Formulari de característiques */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f--full { grid-column: 1 / -1; }
.f > label, .f > .lbl { font-weight: 650; font-size: .9rem; color: var(--ink); }
.f .src { font-size: .76rem; color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.inp { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.inp:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,163,127,.15); }
.inp input, .inp select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; padding: 12px 13px; color: var(--ink); }
.inp span { padding-right: 13px; color: var(--muted); font-size: .92rem; }
.inp input[aria-invalid="true"] { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { border: 1.5px solid var(--line-2); border-radius: 999px; padding: 8px 13px; font-size: .9rem; font-weight: 560; cursor: pointer; user-select: none; transition: all .15s; background: #fff; display: inline-flex; align-items: center; gap: .35rem; }
.chips label:hover { border-color: var(--brand); }
.chips input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + label { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.chips--sq label { min-width: 44px; justify-content: center; border-radius: 10px; padding: 8px 0; }
.err { color: var(--danger); font-size: .9rem; margin: 1rem 0 0; font-weight: 550; }
@media (max-width: 420px) { .fgrid { grid-template-columns: 1fr; } }

/* Resultat */
.calc { text-align: center; padding: 1.5rem 0 1rem; }
.calc__ring { width: 64px; height: 64px; margin: 0 auto 1rem; position: relative; }
.calc__ring svg { width: 64px; height: 64px; animation: gira 1.1s linear infinite; }
.calc ol { list-style: none; padding: 0; margin: 0 auto; max-width: 300px; text-align: left; }
.calc li { display: flex; gap: .55rem; align-items: center; color: var(--muted); font-size: .94rem; padding: 4px 0; opacity: .45; transition: opacity .3s, color .3s; }
.calc li.is-on { opacity: 1; color: var(--ink); }
.calc li svg { width: 16px; height: 16px; color: var(--brand); }
.res__top { text-align: center; }
.res__lbl { font-size: .82rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.res__val { font-size: clamp(2.4rem, 8vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: .2rem 0 .25rem; color: var(--ink); white-space: nowrap; }
.res__rng { color: var(--ink-2); font-size: 1rem; }
.res__rng b { white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 650; padding: .25rem .6rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-bottom: .6rem; }
.tag--warn { background: #fff7ed; color: #9a3412; }
.gauge { margin: 1.4rem 0 .5rem; }
.gauge__track { position: relative; height: 10px; border-radius: 10px; background: linear-gradient(90deg, #cdeee4, var(--brand-2) 50%, #cdeee4); }
.gauge__pin { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 5px solid var(--ink); box-shadow: var(--sh); transition: left .8s cubic-bezier(.2,.8,.2,1); }
.gauge__ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1.1rem 0; }
.kpi { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.kpi small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }
.kpi b { font-size: 1.2rem; letter-spacing: -0.02em; }
.factors { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.factors li { display: flex; justify-content: space-between; gap: 1rem; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.pill { font-weight: 700; font-size: .82rem; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; align-self: center; }
.pill--up { background: var(--brand-soft); color: var(--brand); }
.pill--down { background: #fdecea; color: #b42318; }
.disc { font-size: .8rem; color: var(--muted); text-align: center; margin: .75rem 0 0; }

/* Lead */
.lead { margin-top: 1.4rem; border-radius: 18px; background: linear-gradient(160deg, var(--navy), var(--ink)); color: #fff; padding: 22px; }
.lead h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.lead p.sub { color: #c7d2e0; font-size: .93rem; margin-bottom: 1rem; }
.lead .f > label, .lead .lbl { color: #fff; }
.lead .inp { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.lead .inp input { color: #fff; }
.lead .inp input::placeholder { color: #8fa1b8; }
.lead .inp:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(15,163,127,.25); }
.lead .chips label { background: transparent; color: #e2e8f0; border-color: rgba(255,255,255,.22); }
.lead .chips input:checked + label { background: #fff; color: var(--ink); border-color: #fff; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: #c7d2e0; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand-2); flex: none; }
.check a { color: #fff; }
.checks { display: grid; gap: .7rem; margin: 1rem 0 1.1rem; }
.lead .err { color: #fdba74; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ok-box { text-align: center; padding: .5rem 0; }
.ok-box svg { width: 48px; height: 48px; margin: 0 auto .6rem; color: var(--brand-2); }
.res__again { margin-top: 1rem; text-align: center; }

/* ---------- Seccions ---------- */
.sec { padding: 88px 0; }
.sec--soft { background: var(--bg-soft); }
.sec--warm { background: var(--bg-warm); }
.sec__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.sec__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.sec h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.sec__head p { color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 700px) { .sec { padding: 64px 0; } .sec__head { margin-bottom: 32px; } }

.steps3 { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 800px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sh-sm); }
.steps3 .card { position: relative; }
.steps3 .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 750; margin-bottom: 1rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* Metodologia: fórmula */
.formula { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .formula { grid-template-columns: 1fr auto 1fr auto 1fr auto 1.1fr; } }
.formula .card { text-align: left; }
.formula .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: .9rem; }
.formula .ico svg { width: 24px; height: 24px; }
.op { display: grid; place-items: center; font-size: 1.8rem; font-weight: 300; color: var(--muted); }
.formula .card--res { background: var(--ink); color: #fff; border-color: var(--ink); }
.formula .card--res p { color: #c7d2e0; }
.formula .card--res .ico { background: rgba(255,255,255,.1); color: var(--accent); }
.note { text-align: center; color: var(--muted); font-size: .93rem; margin-top: 28px; }

.grid4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.fac .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); margin-bottom: .85rem; }
.fac .ico svg { width: 22px; height: 22px; }
.fac h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.fac p { font-size: .92rem; }
.fac .rng { display: inline-block; margin-top: .7rem; font-size: .78rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: .15rem .55rem; border-radius: 999px; }

/* Vendre */
.sell { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; background: linear-gradient(150deg, var(--navy), var(--ink)); color: #fff; border-radius: 28px; padding: 44px 28px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .sell { grid-template-columns: 1.1fr .9fr; padding: 64px; } }
.sell h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.sell p { color: #c7d2e0; font-size: 1.05rem; }
.sell ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .9rem; }
.sell li { display: flex; gap: .75rem; align-items: flex-start; color: #e2e8f0; }
.sell li svg { width: 22px; height: 22px; color: var(--brand-2); flex: none; margin-top: 1px; }
.sell__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 24px; }
.sell__row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem; color: #c7d2e0; }
.sell__row:last-child { border: 0; }
.sell__row b { color: #fff; }
.sell__row .pill { background: rgba(15,163,127,.2); color: #6ee7c8; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 650; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* CTA final i peu */
.final { text-align: center; }
.final h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.final p { color: var(--ink-2); font-size: 1.08rem; max-width: 560px; margin: 0 auto 1.6rem; }
.foot { background: var(--ink); color: #94a3b8; padding: 56px 0 36px; font-size: .9rem; }
.foot .logo { color: #fff; }
.foot__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h4 { color: #fff; font-size: .9rem; margin-bottom: .8rem; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.foot a { color: #cbd5e1; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; font-size: .8rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* Barra fixa al mòbil */
.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; transform: translateY(140%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.dock.is-on { transform: none; }
.dock .btn { width: 100%; box-shadow: var(--sh-lg); }
@media (min-width: 980px) { .dock { display: none; } }

/* Pàgines legals */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-2); }

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

/* Retocs després de la revisió visual */
.step h2.res__lbl { font-size: .82rem; margin: 0; }
.finca { flex-wrap: wrap; }
.finca > div { flex: 1 1 170px; min-width: 0; }
@media (max-width: 520px) { .finca__no { margin-left: 51px; } }
@media (max-width: 979px) {
  .eyebrow { display: none; }
  .hero { padding: 28px 0 56px; }
  .hero__grid { gap: 22px; }
  .hero__lead { font-size: 1rem; }
  .top .btn { padding: .55rem .95rem; font-size: .88rem; box-shadow: none; }
}

/* Botó "Empezar de nuevo" i senyal visual en anar al configurador */
.cfg__reset { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; font-weight: 650; color: var(--brand); cursor: pointer; text-transform: none; letter-spacing: 0; }
.cfg__reset:hover { color: var(--brand-2); text-decoration: underline; }
@keyframes pols { 0% { box-shadow: var(--sh-lg), 0 0 0 0 rgba(15,163,127,.45); } 100% { box-shadow: var(--sh-lg), 0 0 0 18px rgba(15,163,127,0); } }
.cfg.is-pulse { animation: pols .9s ease-out 1; }

/* ---------- Pàgines de ciutat i barri ---------- */
.molles { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.molles a { color: var(--muted); }
.hero--ciutat h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.hero--ciutat .hero__lead b { color: var(--ink); }
@media (max-width: 979px) { .hero--ciutat .hero__lead { display: block; } }
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 28px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--sh-sm); }
.tile small { display: block; font-size: .8rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tile b { display: block; font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -0.03em; margin: .3rem 0 .4rem; }
.tile span { font-size: .88rem; color: var(--ink-2); }
/* Histograma: una sèrie, un to (verd de marca), tooltip en passar per sobre o amb el teclat */
.hist { margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 14px; }
.hist figcaption b { display: block; font-size: 1.05rem; }
.hist figcaption span { font-size: .85rem; color: var(--muted); }
.hist__plot { display: flex; align-items: flex-end; gap: 2px; height: 180px; margin: 18px 0 6px; border-bottom: 1px solid var(--line-2); }
.hist__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; outline: none; }
.hist__bar { background: var(--brand-2); border-radius: 4px 4px 0 0; min-height: 2px; transition: background .15s; }
.hist__col:hover .hist__bar, .hist__col:focus .hist__bar { background: var(--brand); }
.hist__lbl { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.hist__col:hover::after, .hist__col:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .78rem; padding: 6px 9px; border-radius: 8px; white-space: nowrap; z-index: 5; pointer-events: none; }
.hist__taula { margin-top: 30px; font-size: .88rem; }
.hist__taula summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.hist__taula table { border-collapse: collapse; margin-top: .6rem; }
.hist__taula td, .hist__taula th { padding: 4px 14px 4px 0; text-align: left; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .hist__lbl { font-size: .6rem; } .hist__col:nth-child(even) .hist__lbl { visibility: hidden; } }
/* Rànquing horitzontal */
.rk { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 18px; }
.rk h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.rk__sub { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.rk ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rk li { display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr auto; gap: 12px; align-items: center; font-size: .9rem; padding: 3px 0; }
.rk li a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk li a:hover { color: var(--brand); text-decoration: underline; }
.rk__bar { height: 10px; background: var(--bg-soft); border-radius: 0 4px 4px 0; overflow: hidden; }
.rk__bar i { display: block; height: 100%; background: var(--brand-2); border-radius: 0 4px 4px 0; }
.rk li b { font-size: .88rem; text-align: right; min-width: 92px; }
@media (max-width: 560px) { .rk li { grid-template-columns: 1fr auto; } .rk__bar { grid-column: 1 / -1; grid-row: 2; } }
.font { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.chips-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip-link { border: 1.5px solid var(--line-2); border-radius: 999px; padding: 7px 13px; font-size: .9rem; color: var(--ink); text-decoration: none; background: #fff; }
.chip-link:hover { border-color: var(--brand); color: var(--brand); }
/* Graella de ciutats a la portada */
.ciutats { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .ciutats { grid-template-columns: repeat(4, 1fr); } }
.ciutat { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.ciutat:hover { border-color: var(--brand); transform: translateY(-1px); color: var(--ink); }
.ciutat span { font-size: .9rem; color: var(--brand); font-weight: 650; }
