/* ==========================================================================
   on.css · Estudi Immobiliari ON · landing de valoración, gracias, legales y cookies
   Requiere tokens.css (antes) y fonts.css. CSS nativo, sin build.
   Nomenclatura: .on-bloque__elemento  ·  variantes: .on-bloque--variante  ·  estados: .is-*
   Solo consume alias --on-*. Nunca --brand-*.
   El JS se engancha por data-on-*, nunca por clases.
   ========================================================================== */

/* --- 1. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.on {
  margin: 0;
  background: var(--on-surface);
  color: var(--on-ink);
  font-family: var(--on-font-body);
  font-size: var(--on-fs-small);
  line-height: var(--on-lh-body);
  -webkit-font-smoothing: antialiased;
}
:where(.on) img, :where(.on) svg { display: block; max-width: 100%; }  /* especificidad 0,0,1: las clases de componente (height, object-fit) siempre ganan */
.on-br-sm { display: none; }              /* salto solo en móvil */
:where(.on) img { height: auto; }
.on p, .on li, .on blockquote { text-wrap: pretty; }
:where(.on) a { color: var(--on-interactive); text-decoration: none; }
:where(.on) a:hover { color: var(--on-bg-dark); }
:where(.on) button, :where(.on) input, :where(.on) select { font: inherit; color: inherit; }  /* especificidad 0,0,1: las reglas de componente siempre ganan */
.on :focus-visible { outline: 2px solid var(--on-interactive); outline-offset: 2px; }
.on [hidden] { display: none !important; }   /* el JS oculta con hidden; nunca anular */
.on-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.on h1, .on h2, .on h3 { margin: 0; font-family: var(--on-font-display); font-weight: var(--on-w-semi); }
.on h1 { font-size: var(--on-fs-h1); line-height: var(--on-lh-tight); letter-spacing: var(--on-ls-h1); }
.on h2 { font-size: var(--on-fs-h2); line-height: var(--on-lh-title); letter-spacing: var(--on-ls-h2); }
.on h3 { font-size: var(--on-fs-h3); line-height: 1.15; }
.on-accent { font-family: var(--on-font-accent); font-style: italic; font-weight: var(--on-w-regular); letter-spacing: -.01em; }
.on-strong { font-weight: var(--on-w-semi); color: var(--on-ink); }

@keyframes onFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes onRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes onGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes onSpin { to { transform: rotate(360deg); } }
@keyframes onUp   { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes onZoom { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* --- 2. Botones (compartidos) ------------------------------------------- */
.on-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 0; border-radius: var(--on-radius-sm);
  font-family: var(--on-font-display); font-size: 15.5px; font-weight: var(--on-w-semi);
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background var(--on-dur-fast) var(--on-ease), border-color var(--on-dur-fast), transform var(--on-dur-fast) var(--on-ease), box-shadow var(--on-dur-fast);
}
.on .on-btn--primary { background: var(--on-cta); color: var(--on-cta-ink); box-shadow: 0 8px 20px -14px rgba(180,165,0,.8); }
.on .on-btn--primary:hover { background: var(--on-cta-hover); color: var(--on-cta-ink); transform: translateY(-2px); }
.on .on-btn--ghost { background: var(--on-surface); color: var(--on-ink); border: 1.5px solid var(--on-line-strong); }
.on .on-btn--ghost:hover { border-color: var(--on-interactive); color: var(--on-ink); }
.on .on-btn--dark { background: var(--on-interactive); color: #fff; }
.on .on-btn--dark:hover { background: var(--on-bg-dark); color: #fff; }
.on-btn--block { width: 100%; height: var(--on-field-h); font-size: 17px; border-radius: var(--on-radius-md); }
.on-btn:disabled { cursor: progress; }
.on .on-btn--link { background: none; border: 0; padding: 0; height: auto; min-height: var(--on-tap-min); color: var(--on-interactive); font: inherit; font-weight: var(--on-w-semi); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* --- 3. Cabecera ---------------------------------------------------------- */
.on-hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--on-z-header);
  background: var(--on-surface); border-bottom: 1px solid var(--on-surface-img);
  transition: box-shadow var(--on-dur-base) ease, border-color var(--on-dur-base) ease;
}
.on-hdr.is-scrolled { border-color: var(--on-line); box-shadow: 0 6px 24px -18px rgba(12,18,52,.5); }
.on-hdr__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(14px, 3vw, 36px); padding: 10px var(--on-gutter); }
.on-hdr__inner--center { grid-template-columns: 1fr; justify-items: center; }
.on-hdr__logo { display: flex; align-items: center; justify-self: center; }
.on-hdr__logo img { height: 48px; width: auto; }
.on-hdr__actions { justify-self: end; display: flex; align-items: center; }
.on-hdr__cta { height: 44px; padding: 0 20px; border-radius: var(--on-radius-sm); font-size: clamp(16px, 1.1vw, 19px); }

/* --- 4. Hero -------------------------------------------------------------- */
.on-hero { position: relative; min-height: var(--on-hero-min); display: grid; overflow: hidden; background: var(--on-bg-hero); }
.on-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; filter: brightness(.42) saturate(.85) contrast(1.06); }
.on-hero__body {
  position: relative; display: grid; align-content: center; justify-items: center;
  gap: clamp(26px, 3.4vw, 44px);
  padding: clamp(90px, 11vh, 116px) var(--on-gutter) clamp(72px, 13vh, 168px);
}
.on-hero__head { display: grid; gap: clamp(14px, 1.6vw, 22px); justify-items: center; max-width: min(100%, 1040px); text-align: center; }
.on-hero__title { color: #fff; }
.on-hero__lead { margin: 0; font-size: var(--on-fs-lead); line-height: var(--on-lh-lead); color: rgba(255,255,255,.9); max-width: min(100%, var(--on-measure-lead)); }
.on-hero__form { width: 100%; max-width: min(100%, var(--on-measure-form)); text-align: left; scroll-margin-top: 110px; }

/* --- 5. Banda de datos ---------------------------------------------------- */
.on-stats { background: var(--on-bg-dark); border-top: 1px solid var(--on-on-dark-line); }
.on-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(18px, 3vw, 32px); padding: clamp(26px, 3vw, 38px) var(--on-gutter); }
.on-stats__num { font-family: var(--on-font-display); font-size: var(--on-fs-stat); font-weight: var(--on-w-semi); color: var(--on-highlight); line-height: 1; }
.on-stats__label { margin-top: 4px; font-size: var(--on-fs-small); color: var(--on-on-dark-muted); }

/* --- 6. Sección y rejilla ------------------------------------------------- */
.on-section { padding: var(--on-section-y) var(--on-gutter); scroll-margin-top: 80px; }
.on-section--tight-bottom { padding-bottom: var(--on-section-y-tight); }
.on-section--tight-top { padding-top: var(--on-section-y-tight); }
.on-section--brand { background: var(--on-interactive); color: #fff; }
.on-section__head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(32px, 5vw, 56px); }
.on-section__head h2 { margin-bottom: 14px; }
.on-section__sub { margin: 0; font-size: var(--on-fs-sub); line-height: 1.6; color: var(--on-ink-60); }
.on-half { flex: 1 1 calc(50% - clamp(24px, 3.4vw, 56px) / 2); max-width: calc(50% - clamp(24px, 3.4vw, 56px) / 2); }
.on-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 56px); align-items: stretch; }
.on-2col--center { align-items: center; }

/* --- 7. El proceso -------------------------------------------------------- */
.on-steps { display: grid; grid-template-rows: repeat(5, minmax(76px, 1fr)); gap: 10px; }
.on-step {
  position: relative; display: flex; align-items: center; gap: 18px; width: 100%; height: 100%;
  padding: 0 clamp(20px, 1.8vw, 28px); text-align: left; cursor: pointer; overflow: hidden;
  background: var(--on-surface); color: var(--on-ink);
  border: 1.5px solid var(--on-line); border-radius: var(--on-radius-step);
  transition: background .22s, border-color .22s, color .22s;
}
.on-step.is-active { background: var(--on-bg-dark); border-color: var(--on-bg-dark); color: #fff; }
.on-step__icon { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: var(--on-radius-lg); background: var(--on-surface-alt); color: var(--on-interactive); transition: background .22s; }
.on-step.is-active .on-step__icon { background: var(--on-cta); }
.on-step__title { position: relative; z-index: 1; flex: 1; text-wrap: balance; font-family: var(--on-font-display); font-size: var(--on-fs-h3); font-weight: var(--on-w-semi); line-height: 1.2; letter-spacing: -.01em; }
.on-step__num {
  position: absolute; z-index: 0; right: calc(10% - .35em); top: 50%; transform: translateY(-50%);
  width: .7em; text-align: center; pointer-events: none; user-select: none;
  font-family: var(--on-font-display); font-size: var(--on-fs-watermark); font-weight: var(--on-w-semi); line-height: 1; letter-spacing: -.04em;
  color: #F1F2F6; transition: color .22s;
}
.on-step.is-active .on-step__num { color: #fff; }

.on-detail { display: flex; flex-direction: column; background: var(--on-bg-dark); border-radius: var(--on-radius-card); overflow: hidden; scroll-margin-top: 84px; }
.on-detail__media { position: relative; flex: none; height: clamp(200px, 22vw, 300px); background: var(--on-bg-hero); }
.on-detail__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.on-detail__img { position: absolute; top: 0; left: 0; width: 100%; height: clamp(200px, 22vw, 300px); max-height: 100%; object-fit: cover; animation: onFade .45s ease both; }
.on-detail__badge { position: absolute; left: clamp(22px, 2.2vw, 34px); bottom: 0; transform: translateY(50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--on-radius-card); background: var(--on-cta); color: var(--on-interactive); box-shadow: 0 8px 24px rgba(11,15,46,.3); z-index: 1; }
.on-detail__body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding: calc(32px + clamp(14px, 1.4vw, 20px)) clamp(22px, 2.2vw, 34px) clamp(20px, 2vw, 28px); }  /* 32px = mitad del icono que asoma */
.on-detail__label { margin-bottom: 10px; font-family: var(--on-font-display); font-size: var(--on-fs-small); font-weight: var(--on-w-semi); letter-spacing: .1em; color: var(--on-highlight); }
.on-detail__title { margin-bottom: 10px; color: #fff; }
.on-detail__text { margin: 0 0 18px; font-size: var(--on-fs-body-lg); line-height: 1.6; color: rgba(255,255,255,.8); }
.on-detail__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.on-detail__list li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--on-fs-body-lg); line-height: 1.5; color: #fff; }
.on-detail__list svg { flex: none; margin-top: 2px; color: var(--on-highlight); }
.on-detail__pane { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.on-detail__pane[hidden] { display: none !important; }

/* --- 8. Tu inmobiliaria --------------------------------------------------- */
.on-about__text { margin: 0 0 14px; font-size: var(--on-fs-sub); line-height: 1.65; color: var(--on-ink-60); }
.on-about__text:last-child { margin-bottom: 0; }
.on-about h2 { margin-bottom: 16px; }
.on-about__illu { width: 85%; max-width: 544px; margin: 0 auto; }
.on-about__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--on-radius-lg); }
.on-office {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 2.4vw, 32px); align-items: center;
  margin-top: clamp(32px, 4vw, 56px); padding: clamp(24px, 3vw, 36px);
  background: var(--on-surface-alt); border: 1px solid var(--on-line); border-radius: var(--on-radius-card);
}
.on-office__item { display: flex; gap: 14px; align-items: flex-start; }
.on-office__item svg { flex: none; margin-top: 2px; color: var(--on-interactive); }
.on-office__title { font-family: var(--on-font-display); font-size: var(--on-fs-h4); font-weight: var(--on-w-semi); line-height: 1.3; }
.on-office__text { margin-top: 3px; font-size: var(--on-fs-body-lg); line-height: 1.55; color: var(--on-ink-60); }
.on-office__text a { font-weight: var(--on-w-semi); }

/* --- 9. Testimonios (carrusel) -------------------------------------------- */
.on-tst__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; align-items: start; gap: max(18px, 5vw);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.on-tst__track::-webkit-scrollbar { display: none; }
.on-tst__item { margin: 0; scroll-snap-align: start; }
.on-tst__photo { position: relative; min-height: clamp(340px, 38vw, 620px); border-radius: var(--on-radius-xl); overflow: hidden; background: var(--on-bg-dark); }
.on-tst__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.on-tst__tag {
  position: absolute; left: clamp(16px, 1.6vw, 24px); top: clamp(16px, 1.6vw, 24px);
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 12px;
  border-radius: var(--on-radius-pill); background: var(--on-cta); color: var(--on-interactive);
  font-family: var(--on-font-display); font-size: 16px; font-weight: var(--on-w-semi);
}
.on-tst__seal {
  position: absolute; left: clamp(16px, 1.6vw, 24px); bottom: clamp(16px, 1.6vw, 24px);
  display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 16px;
  border-radius: var(--on-radius-lg); background: var(--on-surface); color: var(--on-ink);
  box-shadow: 0 12px 32px rgba(11,15,46,.28); transition: transform .18s var(--on-ease);
}
.on-tst__seal:hover { color: var(--on-ink); transform: translateY(-2px); }
.on-tst__seal svg { flex: none; }
.on-tst__score { display: flex; align-items: center; gap: 8px; }
.on-tst__score b { font-family: var(--on-font-display); font-size: 22px; font-weight: var(--on-w-semi); line-height: 1; }
.on-tst__stars { color: var(--on-star); letter-spacing: 1px; font-size: 17px; line-height: 1; }
.on-tst__sealtext { display: block; margin-top: 4px; font-size: 14px; color: var(--on-ink-60); }
.on-tst__body { display: grid; align-content: center; gap: clamp(20px, 2.2vw, 30px); }
.on-tst__mark { color: var(--on-highlight); }
.on-tst__quote { margin: 0; font-family: var(--on-font-accent); font-style: italic; font-weight: var(--on-w-regular); font-size: var(--on-fs-quote); line-height: 1.08; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.on-tst__text { display: grid; gap: 12px; max-width: 68ch; }
.on-tst__text p { margin: 0; font-size: clamp(15.5px, 1.1vw, 19px); line-height: 1.65; color: rgba(255,255,255,.82); }
.on-tst__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: clamp(18px, 2vw, 26px); border-top: 1px solid var(--on-on-dark-line); }
.on-tst__author { display: flex; align-items: center; gap: 14px; }
.on-tst__avatar { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--on-cta); color: var(--on-interactive); font-family: var(--on-font-display); font-size: 17px; font-weight: var(--on-w-semi); }
.on-tst__name { font-size: clamp(15px, 1.05vw, 18px); line-height: 1.45; color: rgba(255,255,255,.78); }
.on-tst__name b { display: block; color: #fff; font-weight: var(--on-w-semi); }
.on-tst__nav { display: flex; gap: 12px; margin-left: auto; }
.on-tst__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.on-tst__arrow:hover { background: var(--on-cta); border-color: var(--on-cta); color: var(--on-interactive); }

/* --- 10. Footer ----------------------------------------------------------- */
.on-foot { background: var(--on-surface-alt); color: var(--on-ink-60); border-top: 1px solid var(--on-line); padding: clamp(48px, 5vw, 80px) var(--on-gutter) 32px; }
.on-foot__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
.on-foot__brand { display: grid; gap: 18px; align-content: start; max-width: 420px; }
.on-foot__name { width: fit-content; font-family: var(--on-font-display); font-size: clamp(26px, 2.2vw, 40px); font-weight: var(--on-w-semi); line-height: 1.1; letter-spacing: -.02em; color: var(--on-ink); }
.on-foot__brand p, .on-foot__addr { margin: 0; font-size: var(--on-fs-small); line-height: 1.6; }
.on-foot__addr { font-style: normal; display: grid; gap: 6px; }
.on-foot__addr a { width: fit-content; color: var(--on-ink); font-weight: var(--on-w-semi); }
.on-foot__col { display: grid; gap: 10px; align-content: start; font-size: var(--on-fs-body-lg); }
.on-foot__title { margin-bottom: 4px; font-family: var(--on-font-display); font-weight: var(--on-w-semi); color: var(--on-ink); }
.on-foot__col a, .on-foot__col button { width: fit-content; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.on-foot a:hover, .on-foot__col button:hover, .on-foot__name:hover { color: var(--on-interactive); text-decoration: underline; text-underline-offset: 3px; }
.on-foot__copy { margin-top: clamp(32px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--on-line); font-size: var(--on-fs-xs); text-align: center; }

/* --- 11. Barra fija móvil ------------------------------------------------- */
.on-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--on-z-bar); gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--on-line);
  transform: translateY(110%); opacity: 0; pointer-events: none;
  transition: transform var(--on-dur-slow) var(--on-ease), opacity var(--on-dur-slow);
}
.on-bar.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.on-bar__phone { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 1.5px solid var(--on-line); border-radius: var(--on-radius-btn); color: var(--on-interactive); }
.on-bar__cta { flex: 1; height: 52px; border-radius: var(--on-radius-btn); font-size: clamp(16.5px, 1.15vw, 20px); }

/* --- 12. Módulo de valoración --------------------------------------------- */
.on-val {
  width: 100%; margin: 0; padding: clamp(18px, 3vw, 30px);
  background: var(--on-surface); color: var(--on-ink); border-radius: var(--on-radius-xl);
  box-shadow: 0 24px 60px -30px rgba(12,18,52,.45), 0 2px 8px rgba(12,18,52,.06);
  text-wrap: pretty; text-align: left;
}
.on-val__steps { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.on-val__st { display: flex; align-items: center; gap: 8px; font-family: var(--on-font-display); font-size: 13px; font-weight: var(--on-w-semi); letter-spacing: .02em; color: #A8AEBC; }
.on-val__dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--on-surface-img); color: #A8AEBC; font-size: 12px; }
.on-val__st.is-current { color: var(--on-interactive); } .on-val__st.is-current .on-val__dot { background: var(--on-cta); color: var(--on-interactive); }
.on-val__st.is-done { color: var(--on-interactive); } .on-val__st.is-done .on-val__dot { background: var(--on-interactive); color: #fff; }
.on-val__prog { flex: 1; height: 2px; border-radius: 2px; background: var(--on-line); overflow: hidden; }
.on-val__prog i { display: block; height: 100%; width: 0; background: var(--on-cta); transition: width .45s var(--on-ease); }
.on-val__prog.is-done i { width: 100%; }
.on-val__pane { animation: onRise .4s ease both; }

.on-val__tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 18px; background: var(--on-surface-alt); border-radius: var(--on-radius-md); }
.on-val__tab { flex: 1; min-width: 130px; height: 46px; padding: 0 14px; border: 0; border-radius: var(--on-radius-xs2); background: transparent; color: var(--on-ink-60); font-family: var(--on-font-display); font-size: 15px; font-weight: var(--on-w-semi); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.on-val__tab.is-active, .on-val__tab[aria-selected="true"] { background: var(--on-surface); color: var(--on-interactive); box-shadow: 0 2px 8px rgba(12,18,52,.12), inset 0 -3px 0 var(--on-cta); }
.on-val__tabpanes { display: grid; }
.on-val__tabpane { grid-area: 1 / 1; }
.on-val__tabpane.is-off { visibility: hidden; pointer-events: none; }  /* misma altura en ambas pestañas: no salta. Se usa clase, no hidden */

.on-val__label { display: block; margin-bottom: 7px; font-size: var(--on-fs-ui); font-weight: var(--on-w-semi); color: var(--on-ink-60); }
.on-val__field { position: relative; }
.on-val__field > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--on-ink-40); pointer-events: none; }
.on-val__field > .on-val__suffix { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: var(--on-fs-ui); color: var(--on-ink-40); }
.on-val__input, .on-val__select {
  width: 100%; height: var(--on-field-h); padding: 0 16px; font-size: var(--on-fs-field); color: var(--on-ink);
  background: var(--on-surface); border: 1.5px solid var(--on-line); border-radius: var(--on-radius-md); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.on-val__input--icon { padding-left: 44px; }
.on-val__input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.on-val__input:focus, .on-val__select:focus { border-color: var(--on-interactive); box-shadow: 0 0 0 4px rgba(20,28,82,.10); }
.on-val__input.is-invalid, .on-val__select.is-invalid { border-color: var(--on-error); }
.on-val__input--sm, .on-val__select--sm { height: 52px; padding: 0 15px; }
.on-val__select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.on-val__select.is-empty { color: var(--on-ink-40); }
.on-val__field > .on-val__chev { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--on-ink-60); pointer-events: none; }

.on-sugg { position: absolute; z-index: var(--on-z-sugg); left: 0; right: 0; top: calc(var(--on-field-h) + 6px); overflow: hidden; background: var(--on-surface); border: 1px solid var(--on-line); border-radius: var(--on-radius-md); box-shadow: 0 18px 40px -18px rgba(12,18,52,.35); animation: onRise .18s ease both; }
.on-sugg__item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 13px 16px; text-align: left; background: none; border: 0; border-bottom: 1px solid #F0F1F5; font-size: 15px; color: var(--on-ink); cursor: pointer; transition: background .15s; }
.on-sugg__item:last-child { border-bottom: 0; }
.on-sugg__item:hover, .on-sugg__item[aria-selected="true"] { background: var(--on-surface-alt); }
.on-sugg__item svg { flex: none; color: var(--on-interactive); }
.on-sugg__msg { padding: 13px 16px; font-size: 14px; color: var(--on-ink-50); }

.on-val__err { margin-top: 8px; font-size: var(--on-fs-ui); color: var(--on-error); }
.on-val__help { display: flex; align-items: center; justify-content: center; text-align: center; min-height: var(--on-tap-min); margin: 6px 0 0; font-size: var(--on-fs-ui); line-height: 1.45; color: var(--on-ink-50); }
.on-val__refrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--on-tap-min); margin-top: 6px; font-size: var(--on-fs-ui); color: var(--on-ink-50); }
.on-val__refrow a { display: inline-flex; align-items: center; min-height: var(--on-tap-min); font-weight: var(--on-w-semi); text-decoration: underline; text-underline-offset: 3px; }
.on-val__count { white-space: nowrap; font-weight: var(--on-w-semi); color: var(--on-ink-40); }
.on-val__count.is-complete { color: var(--on-success); }
.on-val__next { margin-top: 20px; }
.on-val__note { margin: 14px 0 0; text-align: center; font-size: var(--on-fs-ui); color: var(--on-ink-50); }

.on-val__loc { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 20px; background: var(--on-surface-alt); border-radius: var(--on-radius-md); }
.on-val__loc svg { flex: none; color: var(--on-interactive); }
.on-val__loctext { font-size: var(--on-fs-ui); font-weight: var(--on-w-semi); line-height: 1.3; }
.on-val__loc .on-btn--link { margin-left: auto; padding: 0 4px; font-size: var(--on-fs-ui); }
.on-val__catnote { display: flex; align-items: center; gap: 9px; padding: 11px 14px; margin: -8px 0 20px; background: rgba(245,227,30,.22); border: 1px solid rgba(180,165,0,.35); border-radius: var(--on-radius-md); font-size: 13.5px; font-weight: var(--on-w-semi); color: var(--on-warn-ink); }
.on-val__catnote svg { flex: none; color: #8A7400; }

.on-val__stack { display: grid; gap: 18px; }
.on-val__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.on-val__grid--wide { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.on-val__divider { height: 1px; background: var(--on-surface-img); }
.on-count { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 6px; border: 1.5px solid var(--on-line); border-radius: var(--on-radius-md); }
.on-count__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--on-radius-xs2); background: var(--on-surface-alt); color: var(--on-interactive); font-size: 20px; cursor: pointer; transition: background .15s; }
.on-count__btn:hover { background: #E9EBF2; }
.on-count__val { font-family: var(--on-font-display); font-size: 18px; font-weight: var(--on-w-semi); }

.on-val__consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: var(--on-fs-ui); line-height: 1.55; color: var(--on-ink-60); }
.on-val__consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--on-interactive); cursor: pointer; }
.on-val__consent a { font-weight: var(--on-w-semi); text-decoration: underline; text-underline-offset: 2px; }
.on-val__err--consent { margin-top: -8px; padding-left: 34px; }

.on-val__fail { display: grid; gap: 12px; padding: 16px 18px; background: var(--on-error-bg); border: 1.5px solid var(--on-error-line); border-left: 4px solid var(--on-error); border-radius: var(--on-radius-md); animation: onRise .3s ease both; }
.on-val__failhead { display: flex; gap: 11px; align-items: flex-start; }
.on-val__failhead svg { flex: none; margin-top: 1px; color: var(--on-error); }
.on-val__failtitle { font-family: var(--on-font-display); font-size: 16px; font-weight: var(--on-w-semi); color: var(--on-error-ink); }
.on-val__failtext { margin: 5px 0 0; font-size: var(--on-fs-ui); line-height: 1.55; color: #7A4A43; }
.on-val__failactions { display: flex; flex-wrap: wrap; gap: 8px; }
.on-val__failactions .on-btn { height: 46px; padding: 0 18px; font-size: 15px; }

.on-val__submit { gap: 10px; transition: background .2s, transform .18s var(--on-ease), box-shadow .2s; }
.on-val__submit[aria-busy="true"] { background: var(--on-cta-soft); opacity: .9; cursor: progress; transform: none; }
.on-spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(20,28,82,.25); border-top-color: var(--on-interactive); border-radius: 50%; animation: onSpin .7s linear infinite; }
.on-val__sendnote { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--on-ink-40); }
.on-val__sendnote.is-sending { color: var(--on-ink-60); }

/* Portal sin viviendas (no_building): mismo error inline con dos salidas */
.on-val__alt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.on-val__alt .on-btn { height: 44px; padding: 0 16px; font-size: 14.5px; }

/* --- 13. Página de gracias ------------------------------------------------ */
.on-main { padding: clamp(112px, 13vh, 160px) var(--on-gutter) var(--on-section-y); }
.on-band { padding: clamp(24px, 3.4vw, 52px); background: var(--on-interactive); border-radius: var(--on-radius-2xl); color: #fff; animation: onRise .5s ease both; }
.on-band__title { margin: 0 auto clamp(16px, 1.8vw, 26px); text-align: center; font-size: var(--on-fs-h1-thanks); line-height: 1.04; color: #fff; text-wrap: balance; }
.on-band__value { color: var(--on-highlight); }
.on-band__value--num { white-space: nowrap; }
.on-band__note { color: var(--on-highlight); font-family: var(--on-font-display); font-style: normal; font-size: .55em; vertical-align: top; line-height: 1; margin-left: .08em; text-decoration: none; }
.on-band__note:hover { color: #fff; }
.on-band__ast { color: var(--on-highlight); font-family: var(--on-font-display); font-weight: var(--on-w-semi); }
.on-band__range { max-width: min(100%, 720px); margin: 0 auto; text-align: center; }
.on-band__between { margin: 0; font-size: var(--on-fs-sub); line-height: 1.5; color: rgba(255,255,255,.82); }
.on-band__between b { font-weight: var(--on-w-semi); color: #fff; white-space: nowrap; }
.on-band__bar { position: relative; margin-top: clamp(18px, 2vw, 24px); }
.on-band__bar i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.2), var(--on-cta), rgba(255,255,255,.2)); transform-origin: left; animation: onGrow .8s var(--on-ease) .2s both; }
.on-band__marker { position: absolute; top: 50%; width: 18px; height: 18px; margin-left: -9px; transform: translateY(-50%); border-radius: 50%; background: var(--on-interactive); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(11,15,46,.3); }
.on-band__minmax { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; text-align: left; font-size: var(--on-fs-xs); color: var(--on-on-dark-muted); }
.on-band__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); margin: clamp(24px, 2.8vw, 40px) 0 0; padding-top: clamp(20px, 2.2vw, 28px); border-top: 1px solid var(--on-on-dark-line); }
.on-band__kpi { display: grid; gap: 6px; justify-items: center; text-align: center; }
.on-band__kpi + .on-band__kpi { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--on-on-dark-line); }
.on-band__kpi dt { font-size: 13px; font-weight: var(--on-w-semi); letter-spacing: .08em; text-transform: uppercase; color: var(--on-on-dark-muted); }
.on-band__kpi dd { margin: 0; font-family: var(--on-font-display); font-size: var(--on-fs-kpi); font-weight: var(--on-w-semi); color: #fff; white-space: nowrap; }
.on-band__disc { scroll-margin-top: 100px; margin: clamp(16px, 1.8vw, 22px) auto 0; max-width: min(100%, 720px); text-align: center; text-wrap: balance; font-size: var(--on-fs-xs); line-height: 1.6; color: var(--on-on-dark-muted); }
.on-band__lead { margin: 0 auto; max-width: min(100%, 760px); text-align: center; font-size: var(--on-fs-sub); line-height: 1.55; color: rgba(255,255,255,.88); }

.on-thanks__cols { margin-top: clamp(28px, 3vw, 44px); animation: onRise .5s ease .12s both; }
.on-card { display: flex; flex-direction: column; border: 1px solid var(--on-line); border-radius: var(--on-radius-card); overflow: hidden; }
.on-card__map { position: relative; flex: 1 1 auto; min-height: clamp(220px, 22vw, 320px); background: var(--on-surface-img); }
.on-card__map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.on-card__map small { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: var(--on-ink-60); }
.on-card__body { flex: none; padding: clamp(20px, 2.2vw, 28px) clamp(20px, 2.2vw, 28px) 6px; }
.on-card__title { margin-bottom: 12px; font-family: var(--on-font-display); font-size: clamp(19px, 1.5vw, 26px); font-weight: var(--on-w-semi); }
.on-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--on-line); }
.on-row dt { font-size: clamp(14.5px, 1vw, 17px); color: var(--on-ink-60); }
.on-row dd { margin: 0; font-size: clamp(15px, 1.05vw, 18px); font-weight: var(--on-w-semi); color: var(--on-ink); text-align: right; }
.on-row dd.on-row--mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; font-size: clamp(14px, .95vw, 16px); }

.on-side { display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 22px); }
.on-call { flex: 1; display: flex; flex-direction: column; gap: clamp(18px, 2vw, 26px); padding: clamp(22px, 2.4vw, 32px); background: var(--on-surface); border: 1px solid var(--on-line); border-radius: var(--on-radius-card); }
.on-call__text { margin: 10px 0 0; font-size: var(--on-fs-body-lg); line-height: 1.6; color: var(--on-ink-60); }
.on-proc { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; align-content: stretch; }
.on-proc__item { display: flex; align-items: center; gap: 14px; min-height: 56px; border-top: 1px solid var(--on-line); }
.on-proc__item:first-child { border-top: 0; }
.on-proc__dot { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--on-line); color: var(--on-ink-60); font-family: var(--on-font-display); font-size: 15px; font-weight: var(--on-w-semi); }
.on-proc__item.is-done .on-proc__dot { border: 0; background: var(--on-success); color: #fff; }
.on-proc__item.is-current { background: var(--on-warn-bg); border-radius: var(--on-radius-md); padding: 0 14px; margin: 0 -14px; border-top: 0; }
.on-proc__item.is-current .on-proc__dot { border: 0; background: var(--on-cta); color: var(--on-interactive); }
.on-proc__title { font-family: var(--on-font-display); font-size: clamp(16.5px, 1.2vw, 20px); font-weight: var(--on-w-semi); line-height: 1.3; color: var(--on-ink); }
.on-proc__item.is-done .on-proc__title { color: var(--on-ink-60); }
.on-proc__state { margin-left: auto; flex: none; font-size: 13px; font-weight: var(--on-w-semi); letter-spacing: .08em; text-transform: uppercase; color: var(--on-success); }
.on-proc__item.is-current .on-proc__state { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--on-radius-pill); background: var(--on-cta); color: var(--on-interactive); font-size: 12.5px; letter-spacing: .06em; }

.on-visit { display: flex; gap: 16px; align-items: flex-start; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--on-radius-card); background: var(--on-cta); color: var(--on-interactive); }
.on-visit__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--on-interactive); color: var(--on-cta); }
.on-visit__title { margin-bottom: 8px; font-family: var(--on-font-display); font-size: clamp(20px, 1.6vw, 28px); font-weight: var(--on-w-semi); line-height: 1.2; letter-spacing: -.01em; }
.on-visit p { margin: 0; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.6; }

.on-report { margin-top: clamp(56px, 6vw, 96px); animation: onRise .5s ease .24s both; }
.on-report h2 { margin-bottom: 14px; }
.on-compare { margin-top: clamp(24px, 2.6vw, 36px); border: 1px solid var(--on-line); border-radius: var(--on-radius-lg); overflow: hidden; }
.on-compare table { width: 100%; border-collapse: collapse; }
.on-compare th, .on-compare td { padding: 0 clamp(10px, 1.4vw, 18px); height: 52px; border-top: 1px solid var(--on-surface-img); font-size: clamp(15px, 1.05vw, 18px); color: var(--on-ink); }
.on-compare thead th { height: auto; padding: 14px clamp(10px, 1.4vw, 18px); border-top: 0; background: var(--on-surface-alt); font-family: var(--on-font-display); font-size: var(--on-fs-small); font-weight: var(--on-w-semi); color: var(--on-ink-60); text-align: center; }
.on-compare thead th:first-child { text-align: left; }
.on-compare thead th.is-highlight { background: var(--on-cta); color: var(--on-interactive); }
.on-compare tbody th { text-align: left; font-weight: var(--on-w-medium); }
.on-compare td { text-align: center; }
.on-compare td.is-highlight { background: var(--on-cta-pale); }
.on-compare .is-yes { color: var(--on-success); } .on-compare .is-no { color: #B4BAC8; }
.on-compare svg { display: inline-block; vertical-align: middle; }

.on-preview { position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 1 / .9; }
.on-preview__page { position: absolute; top: 7%; height: 82%; aspect-ratio: 1 / 1.414; background: var(--on-surface); border: 1px solid var(--on-line); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(11,15,46,.35), 0 2px 6px rgba(11,15,46,.06); overflow: hidden; }
.on-preview__page--left { left: 6%; transform: rotate(-7deg); }
.on-preview__page--right { right: 6%; transform: rotate(6deg); }
.on-preview__page--front { left: 50%; top: 2%; height: 92%; transform: translateX(-50%); display: flex; flex-direction: column; box-shadow: 0 28px 60px -22px rgba(11,15,46,.45), 0 2px 8px rgba(11,15,46,.08); }
.on-preview__blur { height: 100%; display: flex; flex-direction: column; gap: 8%; padding: 9%; filter: blur(1.6px); }
.on-preview__line { display: block; height: 6px; border-radius: 3px; background: var(--on-line); }
.on-preview__line--ink { background: var(--on-interactive); height: 7px; } .on-preview__line--cta { background: var(--on-cta); height: 7px; } .on-preview__line--mid { background: var(--on-line-strong); }
.on-preview__map { position: relative; flex: 1.3; border-radius: 8px; background: var(--on-surface-img); overflow: hidden; }
.on-preview__map i { position: absolute; background: #fff; }
.on-preview__map b { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--on-cta); }
.on-preview__map b.is-home { width: 12px; height: 12px; background: var(--on-interactive); border: 2px solid #fff; }
.on-preview__rows { flex: 1; display: grid; gap: 9%; }
.on-preview__row { display: flex; gap: 8%; align-items: center; }
.on-preview__thumb { flex: none; width: 22%; aspect-ratio: 1; border-radius: 5px; background: var(--on-surface-img); }
.on-preview__bars { flex: 1; display: flex; align-items: flex-end; gap: 4%; padding-bottom: 4%; border-bottom: 2px solid var(--on-line); }
.on-preview__bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--on-line-strong); }
.on-preview__bars i.is-cta { background: var(--on-cta); }
.on-preview__top { height: 5%; background: var(--on-interactive); }
.on-preview__front { flex: 1; display: flex; flex-direction: column; padding: 10% 10% 9%; }
.on-preview__logo { width: 30%; margin: -4% 0 0 -3%; }
.on-preview__h { margin-top: 9%; font-family: var(--on-font-display); font-size: clamp(17px, 1.6vw, 27px); font-weight: var(--on-w-semi); line-height: 1.2; letter-spacing: -.02em; }
.on-preview__addr { margin-top: 5%; font-size: clamp(10.5px, .8vw, 13.5px); line-height: 1.45; color: var(--on-ink-60); }
.on-preview__foot { margin-top: auto; padding-top: 8%; border-top: 1px solid var(--on-line); }
.on-preview__k { font-size: clamp(9.5px, .7vw, 12px); font-weight: var(--on-w-semi); letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-40); }
.on-preview__v { margin-top: 3%; font-family: var(--on-font-display); font-size: clamp(20px, 2vw, 34px); font-weight: var(--on-w-semi); line-height: 1.2; color: var(--on-interactive); }
.on-preview__grad { margin-top: 8%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #E9EBF2, var(--on-cta), #E9EBF2); }

/* --- 14. Legales ---------------------------------------------------------- */
.on-legal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.on-legal__nav { position: sticky; top: 110px; display: grid; gap: 6px; }
.on-legal__tab { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: var(--on-radius-md); background: var(--on-surface-alt); color: var(--on-ink); font-family: var(--on-font-display); font-size: var(--on-fs-body-lg); font-weight: var(--on-w-semi); transition: background .2s; }
.on-legal__tab[aria-current="page"] { background: var(--on-interactive); color: #fff; }
.on-legal__updated { margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--on-ink-50); }
.on-legal__body { max-width: 78ch; }
.on-legal__body h1 { margin-bottom: clamp(20px, 2.4vw, 32px); font-size: clamp(34px, 4.2vw, 68px); }
.on-legal__body h2 { margin: clamp(32px, 3.4vw, 48px) 0 12px; font-size: clamp(21px, 1.7vw, 28px); line-height: 1.25; letter-spacing: -.01em; }
.on-legal__body p, .on-legal__body li { font-size: clamp(16px, 1.1vw, 18.5px); line-height: 1.7; color: #3E4452; }
.on-legal__body p { margin: 0 0 14px; }
.on-legal__body ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.on-legal__table { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--on-line); border-radius: var(--on-radius-md); }
.on-legal__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.on-legal__table th { text-align: left; padding: 12px 14px; background: var(--on-surface-alt); font-family: var(--on-font-display); font-weight: var(--on-w-semi); color: var(--on-ink); border-bottom: 1px solid var(--on-line); }
.on-legal__table td { padding: 12px 14px; border-top: 1px solid var(--on-surface-img); color: #3E4452; vertical-align: top; }

/* --- 15. Cookies ---------------------------------------------------------- */
.on-ck__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--on-z-cookie); padding: clamp(16px, 2vw, 24px) var(--on-gutter) calc(clamp(16px, 2vw, 24px) + env(safe-area-inset-bottom)); background: var(--on-surface); border-top: 1px solid var(--on-line); box-shadow: 0 -12px 40px rgba(11,15,46,.12); animation: onUp .4s var(--on-ease) both; }
.on-ck__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2.4vw, 40px); }
.on-ck__text { flex: 1 1 420px; min-width: min(100%, 280px); }
.on-ck__title { margin-bottom: 6px; font-family: var(--on-font-display); font-size: clamp(17px, 1.25vw, 21px); font-weight: var(--on-w-semi); }
.on-ck__desc { margin: 0; font-size: var(--on-fs-small); line-height: 1.55; color: var(--on-ink-60); }
.on-ck__desc a { font-weight: var(--on-w-semi); text-decoration: underline; text-underline-offset: 3px; }
.on-ck__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.on-ck__overlay { position: fixed; inset: 0; z-index: var(--on-z-modal); display: grid; place-items: center; padding: 24px; overflow: hidden; background: rgba(11,15,46,.55); animation: onFade .25s ease both; }
.on-ck__panel { width: 100%; max-width: 720px; max-height: calc(100dvh - 48px); overflow: auto; padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.4vw, 32px); background: var(--on-surface); border-radius: var(--on-radius-xl); box-shadow: 0 24px 60px rgba(11,15,46,.3); animation: onZoom .3s var(--on-ease) both; -webkit-overflow-scrolling: touch; }
.on-ck__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.on-ck__paneltitle { font-family: var(--on-font-display); font-size: clamp(21px, 1.7vw, 28px); font-weight: var(--on-w-semi); letter-spacing: -.02em; }
.on-ck__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--on-surface-alt); color: var(--on-ink); cursor: pointer; }
.on-ck__close:hover { background: #E9EBF2; }
.on-ck__intro { margin: 0 0 20px; font-size: var(--on-fs-small); line-height: 1.55; color: var(--on-ink-60); }
.on-ck__cats { display: grid; gap: 10px; margin-bottom: 22px; }
.on-ck__cat { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--on-line); border-radius: var(--on-radius-step); }
.on-ck__cat--locked { background: var(--on-surface-alt); }
.on-ck__catname { font-family: var(--on-font-display); font-size: 16.5px; font-weight: var(--on-w-semi); cursor: pointer; }
.on-ck__catdesc { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--on-ink-60); }
.on-ck__always { flex: none; padding-top: 4px; font-size: 12.5px; font-weight: var(--on-w-semi); letter-spacing: .08em; text-transform: uppercase; color: var(--on-success); }
.on-switch { position: relative; flex: none; width: 52px; height: 30px; padding: 0; border: 0; border-radius: var(--on-radius-pill); background: var(--on-line-strong); cursor: pointer; transition: background .2s; }
.on-switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s var(--on-ease); }
.on-switch[aria-checked="true"] { background: var(--on-interactive); }
.on-switch[aria-checked="true"] i { left: 25px; }
.on-ck__foot { display: flex; flex-wrap: wrap; gap: 10px; }
.on-ck__foot .on-btn { height: 50px; }
.on-ck__legal { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--on-ink-40); }
.on-ck__legal a { font-weight: var(--on-w-semi); }
body.on-ck-lock { overflow: hidden; }

/* --- 16. Página de estados (solo documentación de diseño) ----------------- */
.on-states { display: grid; gap: clamp(40px, 5vw, 72px); padding: clamp(100px, 12vh, 140px) var(--on-gutter) var(--on-section-y); background: var(--on-surface-alt); }
.on-states__item { display: grid; gap: 16px; justify-items: center; }
.on-states__title { width: 100%; max-width: var(--on-measure-form); font-family: var(--on-font-display); font-size: var(--on-fs-h4); font-weight: var(--on-w-semi); color: var(--on-ink-60); }
.on-states__title small { display: block; margin-top: 4px; font-family: var(--on-font-body); font-size: var(--on-fs-small); font-weight: 400; color: var(--on-ink-50); }
.on-states .on-val { max-width: var(--on-measure-form); }

/* --- 17. Responsive ------------------------------------------------------- */
@media (max-width: 1100px) {
  .on-half { flex: 1 1 100%; max-width: 100%; }
  .on-2col { grid-template-columns: minmax(0, 1fr); }
  .on-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .on-foot__grid > :first-child { grid-column: 1 / -1; }
  .on-foot__col { gap: 0; } .on-foot__col a, .on-foot__col button, .on-foot__addr > * { display: inline-flex; align-items: center; min-height: var(--on-tap-min); margin: 0; padding: 0; line-height: 1.3; } .on-foot__addr { gap: 0; } .on-foot__title { margin-bottom: 0; }
  .on-legal { grid-template-columns: minmax(0, 1fr); } .on-legal__nav { position: static; }
}
@media (max-width: 1100px) {
  /* Cifras: carrusel deslizable con avance automático (on.js) en móvil y tablet */
  .on-stats__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--on-gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .on-stats__item:last-child { margin-right: var(--on-gutter); }
  .on-stats__grid::-webkit-scrollbar { display: none; }
  .on-stats__item { flex: 0 0 34%; scroll-snap-align: start; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .on-hdr__inner { gap: 10px; }
  .on-hero { min-height: auto; }
  .on-hero__body { padding-top: 96px; padding-bottom: 52px; }
  .on-hero__title { font-size: 52px; }
  .on-hero__lead { font-size: 17px; }
}
@media (max-width: 760px) {
  .on-bar { display: flex; }
  .on-hdr__cta { display: none; }   /* redundante con la barra flotante */
  .on-foot { padding-bottom: calc(32px + 76px + env(safe-area-inset-bottom)); }
  .on-ck__actions { width: 100%; } .on-ck__actions > * { flex: 1 1 100%; }
  .on-ck__overlay { place-items: end center; padding: 0; }
  .on-ck__panel { max-height: 92dvh; border-radius: var(--on-radius-xl) var(--on-radius-xl) 0 0; padding-bottom: calc(clamp(22px, 2.6vw, 34px) + env(safe-area-inset-bottom)); animation: onUp .35s var(--on-ease) both; }
  .on-ck__foot > * { flex: 1 1 100%; }
}
@media (max-width: 620px) {
  .on-hero { min-height: auto; }
  .on-stats__item { flex: 0 0 70%; }
  .on-hero__body { padding-top: 84px; padding-bottom: 40px; }
  .on-hero__title { font-size: 40px; }
  .on-hero__lead { font-size: 15.5px; }
  .on-steps { grid-template-rows: repeat(5, minmax(64px, auto)); gap: 8px; }
  .on-step { gap: 14px; padding: 12px 64px 12px 14px; }          /* hueco derecho para el número */
  .on-step__title { max-width: 11.5em; }                          /* fuerza la 2ª línea en todos los pasos largos */
  .on-br-sm { display: inline; }
  .on-step__icon { width: 44px; height: 44px; border-radius: var(--on-radius-md); }
  .on-step__icon svg { width: 22px; height: 22px; }
  .on-step__title { font-size: 17px; line-height: 1.2; }
  .on-step__num { font-size: 44px; right: 14px; width: auto; }   /* mismo margen que el icono a la izquierda */
  .on-tst__photo { min-height: 260px; }
  .on-tst__quote { font-size: 28px; }
  .on-tst__seal { left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; gap: 10px; }
  .on-band__strip { grid-template-columns: minmax(0, 1fr); }
  .on-proc__item.is-current .on-proc__state { font-size: 11px; height: auto; padding: 6px 10px; line-height: 1.2; letter-spacing: .04em; text-align: center; border-radius: var(--on-radius-md); }
  .on-proc__title { flex: 1 1 auto; min-width: 150px; }
  .on-band__kpi + .on-band__kpi { padding-left: 0; border-left: 0; }
  .on-foot__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --- Añadidos de desarrollo (plugin) · no forman parte de la entrega de Claude Design ----------------- */
.on-val__prop { display: grid; gap: 18px; }                       /* envoltorio de los campos del inmueble (modo «que me llame un asesor») */
.on-proc__item.is-nodata .on-proc__dot { background: var(--on-surface-alt); border-color: var(--on-line); color: var(--on-ink-60); }
.on-proc__item.is-nodata .on-proc__dot svg { display: none; }
.on-proc__item.is-nodata .on-proc__dot::before { content: "\2013"; }
.on-proc__item.is-nodata .on-proc__state { color: var(--on-ink-60); }
.on-card__mapin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--on-interactive); background-image: linear-gradient(var(--on-line) 1px, transparent 1px), linear-gradient(90deg, var(--on-line) 1px, transparent 1px); background-size: 28px 28px; }
.on-card__mapin span { font-family: var(--on-font-display); font-weight: var(--on-w-semi); font-size: 15px; color: var(--on-ink); }
.on-card__mapin .on-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.on-card__rows { margin: 0; }
.on .on-band__note { color: var(--on-highlight); }                  /* el asterisco de la cifra: la regla «.on a» le ganaba en especificidad */
.on .on-band__note:hover { color: #fff; }
.on-val__label--next { margin-top: 16px; }
/* Flecha del desplegable a la derecha (la regla general de iconos del campo la fijaba a la izquierda, encima del texto). */
.on-val__field > .on-val__chev { left: auto; right: 16px; }
