/* Landing de valoración · Paco Parra Inmobiliaria
   Color corporativo tomado del logotipo (#0287C5). Tipografía del sistema: carga instantánea y sin terceros. */
:root {
  --brand: #0287C5;
  --brand-dark: #016A9E;
  --brand-soft: #EAF5FB;
  --ink: #0F1E2E;
  --ink-2: #4A5868;
  --line: #DFE6EE;
  --bg: #FFFFFF;
  --bg-2: #F6F9FC;
  --ok: #148A4B;
  --err: #C62828;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 30, 46, .06), 0 8px 24px rgba(15, 30, 46, .06);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--brand-dark); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(2, 135, 197, .45); outline-offset: 2px; }

/* Cabecera */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; max-width: 1080px; width: 100%; margin: 0 auto; }
.brand img { height: 44px; width: auto; }
.lang select { appearance: none; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234A5868' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center; border-radius: 999px; padding: 8px 28px 8px 14px; font-size: 15px; font-weight: 600; cursor: pointer; }

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none; font-weight: 700; letter-spacing: .02em; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn-xl { min-height: 58px; padding: 0 24px; font-size: 16px; width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(2, 135, 197, .28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-secondary { background: var(--brand-soft); color: var(--brand-dark); }
.btn-secondary:hover { background: #dcEEF8; }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); min-height: 44px; padding: 0 18px; font-size: 15px; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-dark); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* Portada */
.hero { display: grid; gap: 28px; padding: 12px 0 40px; animation: rise .5s ease both; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
h1 { font-size: clamp(32px, 8.5vw, 54px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 26px; max-width: 34em; }
.badges { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.badges li { display: flex; align-items: center; gap: 10px; }
.badges svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-team { margin: 0; background: linear-gradient(180deg, var(--brand-soft), #fff 75%); border-radius: 24px; padding: 20px 20px 18px; text-align: center; }
.hero-team img { width: min(100%, 360px); margin: 0 auto 8px; mix-blend-mode: multiply; }
.hero-team figcaption { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); }
.hero-team strong { font-size: 18px; color: var(--ink); }
.hero-team .creds { font-size: 12px; letter-spacing: .03em; color: var(--brand-dark); font-weight: 600; margin-top: 4px; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding: 40px 0 64px; }
  .btn-xl { width: auto; min-width: 340px; }
  .brand img { height: 52px; }
}

/* Formulario */
.wizard { max-width: 600px; margin: 0 auto; padding: 4px 0 24px; }
.wz-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.btn-back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 10px 8px 10px 0; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.btn-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step-label { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.progress { height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin: 6px 0 26px; }
.bar { height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .35s ease; }

.stage { min-height: 300px; overflow: hidden; overflow: clip; padding: 4px; margin: -4px; } /* la animación lateral no crea scroll horizontal */
.step { animation: slide .28s ease both; }
.step.back { animation-name: slideBack; }
.q-title { font-size: clamp(25px, 6.4vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; }
.q-sub { color: var(--ink-2); margin: 0 0 22px; }
.q-hint { color: var(--ink-2); font-size: 14px; margin: -12px 0 16px; }

.opts { display: grid; gap: 10px; grid-template-columns: 1fr; }
.opts.cols-2 { grid-template-columns: 1fr 1fr; }
.opts.nums { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 600; text-align: left; transition: border-color .15s, background-color .15s, box-shadow .15s, transform .1s; -webkit-tap-highlight-color: transparent; width: 100%; }
.opt:hover { border-color: #b9cfe0; }
.opt:active { transform: scale(.985); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.opt .ico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; }
.opt[aria-pressed="true"] .ico, .opt[aria-checked="true"] .ico { background: #fff; }
.opt .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opts.cols-2 .opt { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 108px; gap: 10px; font-size: 15px; line-height: 1.25; }
.opts.nums .opt { justify-content: center; text-align: center; font-size: 19px; min-height: 64px; padding: 12px 6px; }
.opts.nums .opt.wide { font-size: 15px; }
.opt .check { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; background: #fff; }
.opt .check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; opacity: 0; }
.opt[aria-checked="true"] .check { background: var(--brand); border-color: var(--brand); }
.opt[aria-checked="true"] .check svg { opacity: 1; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field-label { font-weight: 700; font-size: 15px; }
.field small { color: var(--ink-2); font-size: 13px; }
.input, .select { width: 100%; min-height: 56px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 17px; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(2, 135, 197, .14); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input-unit { position: relative; }
.input-unit .input { padding-right: 52px; font-size: 22px; font-weight: 700; }
.input-unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 700; }
.phone-row { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.select { appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234A5868' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; margin-bottom: 16px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }

/* Buscador de municipio */
.combo { position: relative; }
.combo-list { list-style: none; margin: 8px 0 0; padding: 6px; border: 1.5px solid var(--line); border-radius: 14px; max-height: 300px; overflow: auto; background: #fff; box-shadow: var(--shadow); }
.combo-list li { padding: 14px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--brand-soft); }
.combo-list li.empty { color: var(--ink-2); font-weight: 400; cursor: default; background: none; }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); border: 1.5px solid var(--brand); font-weight: 700; margin-bottom: 18px; }
.chosen button { background: none; border: 0; color: var(--brand-dark); font-weight: 700; cursor: pointer; text-decoration: underline; padding: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 14px; font-weight: 600; font-size: 15px; cursor: pointer; min-height: 44px; }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink); margin: 6px 0 12px; cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand); }
.layer { font-size: 12px; line-height: 1.45; color: var(--ink-2); background: var(--bg-2); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; }
.privacy-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); margin: 10px 0 0; justify-content: center; }
.privacy-note svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2; }
.cf-turnstile { margin: 6px 0 12px; min-height: 65px; }

.actions { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 22%); padding: 22px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 18px; }
.actions[hidden] { display: none; }
.err { color: var(--err); font-weight: 600; font-size: 15px; margin: 0 0 10px; min-height: 0; }
.err:empty { display: none; }

/* Final */
.done { max-width: 600px; margin: 0 auto; text-align: center; padding: 36px 0 48px; animation: rise .5s ease both; }
.done:focus { outline: none; }
.done-icon { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(2, 135, 197, .3); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
.done-icon svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done h1 { font-size: clamp(28px, 7vw, 40px); }

/* Pie y aviso de cookies */
.foot { text-align: center; color: var(--ink-2); font-size: 13px; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 24px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--ink-2); }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 14px; display: grid; gap: 10px; animation: rise .3s ease both; }
.consent p { margin: 0; color: var(--ink-2); }
.consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent a { font-size: 13px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
