@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #F1F3F6;
  --page: #ffffff;
  --surface: #F1F3F6;
  --line: #E3E6EB;
  --line-strong: #C9CFD8;
  --text: #111827;
  --muted: #545B66;
  --soft: #8A8F96;
  --primary: #16149b;
  --on-primary: #fff;
  --sel: #EEF1F6;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --ok: #1F7A4D;
  --cta: #d63441;
  --cta-h: #b92b37;
  --navy2: #16149b;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1a1a;
    --page: #242424;
    --surface: #2c2c2c;
    --line: #3d3d3d;
    --line-strong: #6a6a6a;
    --text: #ececec;
    --muted: #a8a8a8;
    --soft: #8c8c8c;
    --primary: #ececec;
    --on-primary: #1a1a1a;
    --sel: #383838;
    --error: #f08a8a;
    --error-bg: #3a2424;
    --ok: #8fd19c;
  }
}

:root[data-theme="dark"] {
  --bg: #1a1a1a;
  --page: #242424;
  --surface: #2c2c2c;
  --line: #3d3d3d;
  --line-strong: #6a6a6a;
  --text: #ececec;
  --muted: #a8a8a8;
  --soft: #8c8c8c;
  --primary: #ececec;
  --on-primary: #1a1a1a;
  --sel: #383838;
  --error: #f08a8a;
  --error-bg: #3a2424;
  --ok: #8fd19c;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

[hidden] {
  display: none !important
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased
}

button,
input,
select {
  font: inherit;
  color: inherit
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px
}

/* Barra de revisión */
.tool {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #16149b;
  color: #fff;
  display: flex;
  gap: 14px 20px;
  align-items: center;
  padding: 10px 24px;
  font-size: 13.5px;
  flex-wrap: wrap
}

.tool .brand {
  font-weight: 600;
  letter-spacing: -.01em
}

.tool .brand span {
  font-weight: 400;
  opacity: .7;
  margin-left: 6px
}

.tool label {
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: .95
}

.tool select {
  background: #fff;
  color: #111827;
  border: 0;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 500;
  min-width: 250px;
  cursor: pointer
}

.tool .sp {
  flex: 1
}

.tool .hint-t {
  opacity: .7;
  font-size: 12.5px
}

.tool button {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px
}

.tool button:hover {
  background: rgba(255, 255, 255, .1)
}

/* Página simulada */
.page {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--page);
  min-height: 100vh
}

.fake-block {
  margin: 0 40px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--soft);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center
}

.section {
  padding: 56px 40px 64px
}

.col {
  max-width: 760px;
  margin: 0 auto
}

/* Bloques comunes */
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 48px 30px;
  box-shadow: 0 24px 48px -32px rgba(24, 43, 73, .35)
}

.card h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0 0 8px;
  text-align: center
}

.card .lead {
  color: var(--muted);
  margin: 0 0 26px;
  text-align: center
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  position: relative
}

.label {
  font-weight: 500;
  font-size: 14px
}

.hint {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400
}

.input {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 12px 14px;
  background: var(--page);
  width: 100%
}

.input[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-bg)
}

.input.prefilled {
  background: var(--surface)
}

.err {
  color: var(--error);
  font-size: 13px;
  display: none
}

.err.show {
  display: block
}

.linkbtn {
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 12px)/100% 1px no-repeat;
  border: 0;
  padding: 12px 0;
  min-height: 44px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500
}

.linkbtn:hover {
  color: var(--navy2)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 168px;
  border: 0;
  border-radius: 2px;
  padding: 0 28px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: .005em;
  text-align: center;
  cursor: pointer;
  background: var(--cta);
  color: #fff;
  transition: background .2s
}

.btn:hover {
  background: var(--cta-h)
}

.btn.block {
  width: 100%
}

.btn.ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary)
}

.btn.ghost:hover {
  background: var(--primary);
  color: #fff
}

.btn[aria-busy="true"] {
  opacity: .7;
  cursor: progress
}

.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px
}

.tabs button {
  background: none;
  border: 0;
  padding: 10px 2px 12px;
  cursor: pointer;
  font-weight: 500;
  color: var(--muted);
  box-shadow: inset 0 -2px 0 transparent;
  margin-bottom: -1px;
  transition: color .2s, box-shadow .2s
}

.tabs button:hover {
  color: var(--text)
}

.tabs button[aria-selected="true"] {
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--cta)
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: flex-start
}

.search-in {
  flex: 1;
  min-width: 0
}

.search-row .field {
  margin-bottom: 0
}

.search-row .loc {
  margin: 10px 0 0
}

.search-row .btn {
  flex: none
}

.ff {
  position: relative
}

.ff .input {
  height: 52px;
  padding: 20px 14px 6px
}

.ff label {
  position: absolute;
  left: 15px;
  right: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
  transition: top .15s, font-size .15s, transform .15s
}

.ff .input:focus+label,
.ff input.input:not(:placeholder-shown)+label,
.ff select.input:valid+label {
  top: 7px;
  transform: none;
  font-size: 12px
}

.ff select.input {
  appearance: auto
}

.ff label .tag {
  font-size: 10px;
  padding: 0 6px
}

.ff .opt-txt {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--soft);
  pointer-events: none
}

.ff:has(.opt-txt:not([hidden])) label {
  right: 84px
}

.ff input:not(:placeholder-shown)~.opt-txt,
.ff input:focus~.opt-txt {
  display: none
}

.legal {
  font-size: 12px;
  color: var(--soft);
  margin: 14px 0 0;
  text-align: center
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color .2s, background .2s;
  padding: 12px 14px;
  cursor: pointer;
  background: var(--page);
  text-align: left;
  width: 100%
}

.opt:hover {
  background: var(--surface)
}

.opt[aria-checked="true"],
.opt[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--sel);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary)
}

.group {
  margin-bottom: 24px
}

.group>.label {
  display: block;
  margin-bottom: 8px
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.nav .missing {
  font-size: 13px;
  color: var(--error);
  margin-right: 14px;
  display: none
}

.nav .missing.show {
  display: inline
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.result-error {
  display: flex;
  align-items: center;
  gap: 10px
}

.result-error .missing {
  margin-right: 0
}

.copy-diagnostic {
  border: 1px solid var(--error);
  border-radius: 3px;
  padding: 5px 9px;
  background: transparent;
  color: var(--error);
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap
}

.copy-diagnostic:hover {
  background: var(--error-bg)
}

.copy-diagnostic-status {
  font-size: 12px;
  color: var(--muted)
}

.draft-notice {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface)
}

.draft-notice p {
  margin: 0 0 12px
}

.saved-records {
  display: grid;
  gap: 10px
}

.saved-record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--page);
  border: 1px solid var(--line)
}

.saved-record-info {
  display: grid;
  gap: 4px;
  min-width: 0
}

.saved-record-info strong {
  overflow-wrap: anywhere
}

.saved-record-info small {
  color: var(--muted)
}

.saved-record-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none
}
.saved-record-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px
}

.saved-record-actions svg {
  width: 16px;
  height: 16px;
  flex: none
}

.draft-save-status {
  margin: 8px 0 0
}

/* Entrada */
.suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--page);
  border: 1px solid var(--line-strong);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  z-index: 5;
  display: none
}

.suggest.show {
  display: block
}

.suggest button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
  border-top: 1px solid var(--line)
}

.suggest button:hover {
  background: var(--sel)
}

.suggest small {
  color: var(--muted);
  display: block
}

.cadastre-dialog {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: min(80vh, 760px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25)
}

.cadastre-dialog::backdrop {
  background: rgba(17, 24, 39, .48)
}

.cadastre-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px
}

.cadastre-dialog-head h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25
}

.cadastre-dialog-close {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--page);
  cursor: pointer;
  font-size: 22px;
  line-height: 1
}

.cadastre-dialog-status {
  min-height: 24px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px
}

.cadastre-dialog-status[aria-busy="true"]::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  border: 2px solid var(--line-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: cadastre-spin .8s linear infinite
}

@keyframes cadastre-spin {
  to {
    transform: rotate(360deg)
  }
}

@media(prefers-reduced-motion:reduce) {
  .cadastre-dialog-status[aria-busy="true"]::before {
    animation-duration: 2s
  }
}

.legal-dialog {
  width: min(720px, calc(100vw - 32px));
  max-width: none;
  max-height: min(82vh, 800px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25)
}

.legal-dialog::backdrop {
  background: rgba(17, 24, 39, .48)
}

.legal-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px
}

.legal-dialog-head h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600
}

.legal-dialog-content {
  max-height: 62vh;
  overflow: auto;
  line-height: 1.6
}

.legal-dialog-content:empty {
  display: none
}

.legal-dialog-status {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px
}

.legal-dialog-status[aria-busy="true"] {
  display: flex;
  align-items: center;
  gap: 9px
}

.legal-dialog-status[aria-busy="true"]::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  border: 2px solid var(--line-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: cadastre-spin .8s linear infinite
}

.legal-dialog-status:empty {
  display: none
}

.legal-consent {
  margin: 8px 0 0
}

.legal-consent .check {
  margin: 0
}

.legal-link {
  margin: 2px 0 0 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px
}

.cadastre-list {
  display: grid;
  gap: 8px;
  max-height: 52vh;
  overflow: auto
}

.cadastre-list .cadastre-option {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--page);
  text-align: left;
  cursor: pointer
}

.cadastre-list .cadastre-option:hover,
.cadastre-list .cadastre-option:focus-visible {
  border-color: var(--primary);
  background: var(--sel)
}

.cadastre-list .cadastre-option strong,
.cadastre-list .cadastre-option small {
  display: block
}

.cadastre-list .cadastre-option small {
  margin-top: 3px;
  color: var(--muted)
}

.cadastre-filter {
  width: 100%;
  margin-bottom: 4px
}

.cadastre-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px
}

@media(max-width:600px) {
  .cadastre-dialog {
    padding: 18px
  }

  .cadastre-dialog-actions .btn {
    width: 100%
  }
}

.loc {
  display: none;
  align-items: center;
  gap: 12px;
  margin: -4px 0 16px;
  font-size: 13px;
  color: var(--ok)
}

.loc.error {
  color: var(--error)
}

.loc.error .tick {
  background: var(--error)
}

.loc.show {
  display: flex
}

.loc .tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none
}

.loc .tick svg {
  width: 12px;
  height: 12px
}

.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
}

.input.lg {
  height: 52px;
  text-overflow: ellipsis
}

.input::placeholder {
  color: var(--soft);
  opacity: 1
}

/* Progreso */
.progress {
  margin-bottom: 26px
}

.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 8px
}

.steps span {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px
}

.steps span.done {
  background: var(--primary)
}

.steps span.cur {
  background: var(--cta)
}

.step-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted)
}

/* Tu vivienda */
.cat-ok {
  display: none;
  text-align: center;
  font-size: 13px;
  color: var(--ok);
  background: var(--surface);
  border-radius: 4px;
  padding: 10px 14px;
  margin: 0 0 22px
}

.cat-ok.show {
  display: block
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 7px;
  margin-left: 6px;
  color: var(--muted);
  vertical-align: 1px
}

.types {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px
}

.types .opt {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 12px 6px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.2
}

.types .opt svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--muted)
}

.types .opt[aria-checked="true"] svg {
  color: var(--primary)
}

.counter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.counter .opt {
  width: 48px;
  height: 48px;
  justify-content: center;
  padding: 0
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.chips .opt {
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 2px
}

/* Estado y características */
.lbl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px
}

.lbl-row .label {
  margin: 0
}

.slider {
  position: relative;
  padding-bottom: 34px
}

.est-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px
}

.est-wrap .slider {
  flex: 1;
  min-width: 0
}

.est-end {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: -5px
}

.est-end.new {
  background: var(--sel);
  color: var(--primary)
}

.est-end svg {
  width: 22px;
  height: 22px
}

.slider input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(var(--primary), var(--primary)) 0/var(--p, 33%) 100% no-repeat, var(--line);
  margin: 12px 0 0;
  cursor: pointer
}

.slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--page);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(24, 43, 73, .25)
}

.slider input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--page);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(24, 43, 73, .25)
}

.ticks {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  height: 24px
}

.ticks button {
  position: absolute;
  transform: translateX(-50%);
  background: none;
  border: 0;
  padding: 4px 2px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap
}

.ticks button:first-child {
  transform: translateX(-11px)
}

.ticks button:last-child {
  transform: translateX(calc(-100% + 11px))
}

.ticks button[aria-current="true"] {
  color: var(--primary);
  font-weight: 600
}

.seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--page);
  padding: 2px
}

.seg button {
  border: 0;
  background: none;
  min-height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-radius: 1px;
  transition: background .2s, color .2s
}

.seg button[aria-checked="true"] {
  background: var(--primary);
  color: #fff
}

.seg-full {
  display: flex;
  width: 100%
}

.seg-full button {
  flex: 1
}

.feat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.feat button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--page);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .2s, background .2s
}

.feat button svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted)
}

.feat button:hover {
  background: var(--surface)
}

.feat button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--sel);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary)
}

.feat button[aria-pressed="true"] svg {
  color: var(--primary)
}

/* Cuándo vender */
.tl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  margin: 8px 0 4px
}

.tl::before {
  content: "";
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 32px;
  height: 2px;
  background: var(--line)
}

.tl-pt {
  background: none;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  padding: 0 8px;
  text-align: center;
  color: var(--text)
}

.tl-dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--page);
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 6px;
  transition: background .2s, border-color .2s, color .2s, transform .2s
}

.tl-dot svg {
  width: 26px;
  height: 26px
}

.tl-pt:hover .tl-dot {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05)
}

.tl-pt[aria-checked="true"] .tl-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff
}

.tl-pt b {
  font-weight: 600;
  font-size: 15px
}

.tl-pt small {
  color: var(--muted);
  font-size: 13px
}

.tl-alt {
  text-align: center;
  margin-top: 18px
}

.tl-alt .linkbtn[aria-pressed="true"] {
  color: var(--navy2)
}

/* Datos de contacto */
.tel-row {
  display: flex;
  gap: 6px
}

.tel-row .ff {
  flex: 1;
  min-width: 0
}

.cc {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--page);
  flex: none
}

.cc svg {
  width: 12px;
  height: 12px;
  color: var(--muted)
}

.cc select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer
}

.cc:focus-within {
  outline: 2px solid var(--text);
  outline-offset: 2px
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin: 4px 0 0
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px
}

/* Resultado */
.scen {
  display: grid;
  grid-template-columns: var(--scenario-grid, 1fr 1.2fr 1fr);
  gap: 10px;
  margin-bottom: 22px
}

.scen div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px
}

.scen div.main {
  border: 0;
  background: var(--primary);
  color: var(--on-primary)
}

.scen div.main small,
.scen div.main p {
  color: var(--on-primary);
  opacity: .78
}

.scen small {
  display: block;
  color: var(--muted);
  font-size: 13px
}

.scen b {
  display: block;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -.03em;
  margin: 4px 0
}

.scen p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted)
}

.fee {
  border: 1px solid #D6DDE8;
  background: var(--sel);
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 26px
}

.fee h4 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--primary)
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 0 10px;
  font-size: 14px
}

.fee-row small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px
}

.fee-row b {
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap
}

.bar {
  display: block;
  flex-basis: 100%;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(24, 43, 73, .08);
  margin-top: -4px;
  overflow: hidden
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--line-strong);
  transition: width .6s ease
}

.bar.pfy i {
  background: var(--primary)
}

.fee-row.save {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--page);
  flex-wrap: nowrap;
  gap: 14px;
  box-shadow: 0 1px 0 rgba(24, 43, 73, .06)
}

.save-l {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600
}

.save-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #E6F3EC;
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none
}

.save-ico svg {
  width: 20px;
  height: 20px
}

.fee-row.save .save-amt {
  color: var(--ok);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto
}

.contact>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px
}

.contact .btn {
  gap: 10px;
  text-decoration: none
}

.contact .btn svg {
  width: 20px;
  height: 20px;
  flex: none
}

.num {
  font-size: 13px;
  color: var(--muted)
}

.num b {
  color: var(--text);
  font-weight: 600;
  user-select: all
}

.actions-sub {
  text-align: center;
  margin-top: 12px
}

.view {
  display: none
}

.view.show {
  display: block
}

.footer-space {
  height: 160px
}

@media (max-width:820px) {
  .row2 {
    grid-template-columns: 1fr
  }

  .types {
    grid-template-columns: repeat(3, 1fr)
  }

  .scen {
    grid-template-columns: 1fr 1fr;
    gap: 8px
  }

  .scen div.main {
    grid-column: 1/-1;
    order: -1;
    padding: 20px
  }

  .scen div.main b {
    font-size: 32px
  }

  .scen div:not(.main) {
    padding: 14px
  }

  .scen div:not(.main) small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text)
  }

  .scen div:not(.main) b {
    font-size: 17px;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: -.01em
  }

  .section {
    padding: 32px 16px
  }

  .card {
    padding: 24px 18px
  }

  .fake-block {
    margin: 0 16px
  }
}

@media (max-width:600px) {
  .tool {
    position: static;
    gap: 8px;
    padding: 10px 12px
  }

  .tool .brand {
    flex: 0 0 100%;
    line-height: 1.4
  }

  .tool .brand span {
    display: block;
    margin: 2px 0 0
  }

  .tool .language-switch {
    flex: 0 0 auto
  }

  .tool label:not(.sr-only) {
    flex: 1 1 190px;
    min-width: 0;
    flex-wrap: nowrap;
    white-space: nowrap
  }

  .tool select {
    min-width: 0;
    width: auto
  }

  .tool label select {
    flex: 1 1 auto
  }

  .tool #resetBtn {
    white-space: nowrap
  }

  .tool .sp,
  .tool .hint-t {
    display: none
  }

  .input,
  .ff label {
    font-size: 16px
  }

  .ff .input:focus+label,
  .ff input.input:not(:placeholder-shown)+label,
  .ff select.input:valid+label {
    font-size: 12px
  }

  .card h3 {
    font-size: 22px
  }

  .ticks button {
    font-size: 11px
  }

  .seg-full button {
    padding: 0 6px;
    font-size: 12.5px
  }

  .tabs {
    gap: 20px
  }

  .search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px
  }

  .search-row .btn {
    width: 100%
  }

  .nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px
  }

  .nav>div {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px
  }

  .nav .missing {
    margin: 0;
    text-align: center
  }

  .nav .btn {
    width: 100%
  }

  .nav>.linkbtn,
  .nav>.hint {
    align-self: center
  }

  .result-actions {
    flex-direction: column;
    align-items: stretch
  }

  .result-error {
    justify-content: center;
    flex-wrap: wrap
  }

  .saved-record {
    align-items: stretch;
    flex-direction: column
  }

  .saved-record-actions {
    justify-content: space-between
  }

  .btn {
    padding: 10px 20px
  }

  .fee {
    padding: 18px
  }

  .fee-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0
  }

  .fee-row b {
    font-size: 16px
  }

  .fee-row.save {
    flex-direction: row;
    align-items: center
  }

  .fee-row.save .save-amt {
    font-size: 24px
  }

  .contact {
    grid-template-columns: 1fr
  }
}

/* Language selector */
.tool .language-switch {
  margin: 0;
}

.tool .language-switch select {
  min-width: 0;
  width: auto;
  padding: 6px 9px;
  font-size: 13px;
}
