/* NotariaCerca Core — estilos. Tokens y componentes compartidos por portada, distrito y ficha. */
:root {
  --ink: #1D2B40;
  --ink-2: #3B4452;
  --muted: #5A616D;
  --faint: #8A919C;
  --bone: #FBFAF7;
  --white: #FFFFFF;
  --line: #E8E5DF;
  --line-2: #E0DDD6;
  --hair: #F0EEE9;
  --lacre: #D2582B;
  --lacre-text: #A8431C;
  --lacre-dark: #9A3A15;
  --lacre-soft: #FCE9DF;
  --ink-soft: #EEF0F3;
  --ink-deep: #24344C;
  --ink-line: #364660;
  --shadow-card: 0 1px 2px rgba(29,43,64,.03), 0 4px 14px rgba(29,43,64,.05);
  --shadow-hero: 0 2px 4px rgba(29,43,64,.03), 0 12px 32px rgba(29,43,64,.08);
  --shadow-btn: 0 2px 8px rgba(29,43,64,.18);
  --display: "Archivo", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --gutter: 20px;
  --wide: 1040px;
  --lacre-line: #F0C8B4;
  --shadow-dark: 0 4px 16px rgba(29,43,64,.22), 0 1px 3px rgba(29,43,64,.12);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--lacre-text); }
a:hover { color: #7E3012; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lacre); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 40; background: rgba(251,250,247,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: var(--wide); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--display); font-variation-settings: "wdth" 92; font-size: 21px; font-weight: 760; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand b { color: var(--lacre); font-weight: inherit; }
.brand i { color: var(--faint); font-style: normal; font-weight: 500; }
.nav { display: none; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(29,43,64,.04), 0 2px 6px rgba(29,43,64,.05); }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "wdth" 92; margin: 0; }
h2 { font-size: 24px; font-weight: 740; letter-spacing: -.015em; line-height: 1.2; }
.lead { margin: 6px 0 0; font-size: 15px; color: var(--muted); max-width: 60ch; }
.section { margin-top: 44px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); }

.hero { padding-top: 28px; }
.hero h1 { font-size: clamp(32px, 9vw, 52px); font-weight: 790; letter-spacing: -.03em; line-height: 1.04; max-width: 15ch; }
.hero h1 span { color: var(--lacre); }
.hero .lead { font-size: 17px; color: var(--ink-2); margin-top: 12px; }

.search { margin-top: 22px; padding: 18px; border-radius: 20px; box-shadow: var(--shadow-hero); }
.search-grid { display: grid; gap: 12px; }
.field label { display: block; font-size: 14px; color: var(--muted); }
.search .btn-go { min-height: 52px; border: 0; border-radius: 12px; background: var(--ink); color: var(--bone); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--shadow-btn); }
.search .btn-go:hover { background: #253650; }
.search .err { margin: 10px 0 0; font-size: 13px; color: var(--lacre-text); }
.quick { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quick span { font-size: 14px; color: var(--muted); margin-right: 2px; }
.pill { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; }
.pill:hover { border-color: #CFCBC2; color: var(--ink); }

.trust { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trust div { padding: 14px 12px; border-radius: 14px; background: var(--ink-soft); }
.trust strong { display: block; font-family: var(--display); font-variation-settings: "wdth" 92; font-size: 20px; font-weight: 760; line-height: 1.1; }
.trust span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); line-height: 1.35; }

.tram { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tram a { padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 132px; color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.tram a:hover { border-color: #D6D1C7; transform: translateY(-1px); color: var(--ink); }
.tram h3 { font-size: 17px; font-weight: 720; line-height: 1.2; letter-spacing: -.01em; }
.tram p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.tram .price { font-family: var(--display); font-variation-settings: "wdth" 92; font-size: 20px; font-weight: 760; }
.tram .price small { font-family: var(--text); font-size: 12px; font-weight: 400; color: var(--muted); margin-right: 4px; }
.more { display: inline-block; margin-top: 14px; font-weight: 500; }

.verify { margin-top: 44px; padding: 24px 20px; border-radius: 20px; background: var(--ink); color: var(--bone); box-shadow: 0 4px 16px rgba(29,43,64,.22), 0 1px 3px rgba(29,43,64,.12); }
.verify h2 { color: var(--bone); }
.verify .lead { color: #C9CED6; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; }
.steps .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink-deep); border: 1px solid var(--ink-line); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; color: #F6C3AC; }
.steps b { display: block; font-size: 16px; }
.steps span { display: block; font-size: 14px; color: #C9CED6; }
.sample { margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--ink-deep); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sample p { margin: 0; font-size: 14px; }
.sample small { display: block; color: #C9CED6; font-size: 13px; }
.sample .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--lacre-soft); color: var(--lacre-dark); white-space: nowrap; }

.zones { margin-top: 16px; overflow: hidden; }
.zone + .zone { border-top: 1px solid var(--hair); }
.zone { transition: background-color .28s ease; }
.zone.is-open { background: var(--bone); }
.zone-btn { width: 100%; min-height: 58px; padding: 12px 16px; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.zone-btn b { font-size: 16px; font-weight: 500; }
.zone-btn span { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.chev { transition: transform .32s cubic-bezier(.22,1,.36,1); color: var(--muted); }
.is-open .chev { transform: rotate(180deg); }
.zone-panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s cubic-bezier(.22,1,.36,1), opacity .24s ease; }
.is-open .zone-panel { grid-template-rows: 1fr; opacity: 1; }
.zone-panel > div { overflow: hidden; min-height: 0; }
.zone-list { padding: 0 16px 16px; }
.quick-label { margin: 16px 0 8px; font-size: 14px; color: var(--muted); }
.grid-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid-links .pill { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px; justify-content: flex-start; text-align: left; line-height: 1.25; }

.guides { margin-top: 16px; display: grid; gap: 12px; }
.guides a { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.guides a:hover { border-color: #D6D1C7; color: var(--ink); }
.guides h3 { font-size: 17px; font-weight: 720; line-height: 1.25; }
.guides p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.guides .tag { display: inline-block; margin-top: 8px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--lacre-soft); color: var(--lacre-dark); }
.guides svg { flex: none; color: var(--muted); }

.faq { margin-top: 16px; overflow: hidden; }
.faq .zone-body { padding: 0 16px 16px; font-size: 15px; color: var(--ink-2); }
.faq .zone-body p { margin: 0; }

.legal { margin: 36px 0 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
.foot { margin-top: 28px; border-top: 1px solid var(--line); }
.foot-in { max-width: var(--wide); margin: 0 auto; padding: 22px var(--gutter) 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot .brand { font-size: 16px; }

.xsel { position: relative; margin-top: 6px; }
.xsel-btn { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 16px; }
.xsel-btn:hover { border-color: #CFCBC2; }
.xsel-btn .ph { color: var(--faint); }
.xsel-btn .lead-ico { color: var(--lacre); flex: none; }
.xsel-btn .val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xsel-btn > svg:last-child { flex: none; color: var(--muted); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.xsel.is-open .xsel-btn > svg:last-child { transform: rotate(180deg); }
.xsel-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; padding: 6px; background: rgba(251,250,247,.78); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(29,43,64,.10); border-radius: 16px; box-shadow: 0 16px 40px rgba(29,43,64,.22), 0 2px 6px rgba(29,43,64,.08); opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top center; transition: opacity .18s ease, transform .22s cubic-bezier(.22,1,.36,1), visibility 0s linear .22s; }
.xsel.is-open .xsel-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.xsel-filter { width: 100%; height: 44px; padding: 0 12px; border: 1px solid rgba(29,43,64,.14); border-radius: 12px; background: rgba(255,255,255,.8); font-size: 15px; outline: none; margin-bottom: 4px; }
.xsel-filter:focus { border-color: var(--lacre); }
.xsel-scroll { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.xsel-group { margin: 10px 12px 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.xsel-opt { min-height: 44px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--ink); cursor: pointer; }
.xsel-opt:hover, .xsel-opt.is-active { background: rgba(29,43,64,.07); }
.xsel-opt[aria-selected="true"] { background: var(--ink); color: var(--bone); font-weight: 500; }
.xsel-opt .ok { opacity: 0; color: #F6C3AC; }
.xsel-opt[aria-selected="true"] .ok { opacity: 1; }
.xsel-empty { margin: 10px 12px; font-size: 14px; color: var(--muted); }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .nav { display: flex; }
  .hero { padding-top: 48px; }
  .search { padding: 20px; }
  .search-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
  .search .btn-go { padding: 0 26px; }
  .tram { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guides a { align-items: flex-start; }
  .verify { padding: 32px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
  .verify .sample { margin-top: 0; }
}
@media (max-width: 719px) { .menu-desk { display: none; } }
@media (min-width: 720px) { .menu-mob { display: none; } }
@media (max-width: 340px) {
  :root { --gutter: 16px; }
  .trust { grid-template-columns: 1fr; }
  .trust div { display: flex; align-items: baseline; gap: 10px; }
  .trust span { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Ficha y distrito */
.d { font-family: var(--display); font-variation-settings: "wdth" 92; }
.page { max-width: 600px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.crumbs { padding: 16px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.ficha-hero .addr { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.status { margin: 14px 0 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--faint); }
.status strong { font-weight: 700; }
.status[data-state="open"] .dot, .status[data-state="open"] strong { color: var(--ok); background-color: transparent; }
.status[data-state="open"] .dot { background: var(--ok); }
.status[data-state="soon"] strong { color: var(--lacre-text); }
.status[data-state="soon"] .dot { background: var(--lacre); }
.status[data-state="closed"] strong { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; line-height: 1.3; padding: 5px 10px; border-radius: 999px;
  background: var(--ink-soft); color: var(--ink-2);
}
.chip.verified { background: var(--lacre-soft); color: var(--lacre-dark); }
.chip svg { flex: none; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.btn {
  min-height: 48px; padding: 0 14px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-ink { background: var(--ink); color: var(--bone); box-shadow: var(--shadow-btn); }
.btn-ink:hover { background: #253650; color: var(--bone); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: #CFCBC2; color: var(--ink); }
.btn-share { width: 100%; margin-top: 8px; background: var(--lacre-soft); color: var(--lacre-dark); white-space: nowrap; }
.btn-share:hover { background: #F9DDCE; color: var(--lacre-dark); }
.verify-note {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--lacre-soft); color: var(--lacre-dark); font-size: 14px;
}
.acc { margin-top: 14px; overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--hair); }
.acc-item { transition: background-color .28s ease; }
.acc-item.is-open { background: var(--bone); }
.acc-btn {
  width: 100%; min-height: 60px; padding: 12px 16px; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
}
.acc-name { font-size: 16px; font-weight: 500; }
.acc-right { display: flex; align-items: center; gap: 10px; flex: none; }
.acc-price { font-family: var(--display); font-variation-settings: "wdth" 92; font-size: 20px; font-weight: 760; }
.acc-price small { font-family: var(--text); font-size: 13px; font-weight: 400; color: var(--muted); margin-right: 4px; }
.acc-price.pending { color: var(--faint); }
.acc-panel {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .32s cubic-bezier(.22,1,.36,1), opacity .24s ease;
}
.is-open .acc-panel { grid-template-rows: 1fr; opacity: 1; }
.acc-panel > div { overflow: hidden; min-height: 0; }
.acc-body { padding: 0 16px 16px; font-size: 15px; color: var(--ink-2); }
.acc-body p { margin: 0 0 8px; }
.acc-body b { color: var(--ink); }
.acc-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.acc-link { display: inline-block; margin-top: 10px; font-weight: 500; }
.calc {
  margin-top: 32px; padding: 22px 20px; border-radius: 20px;
  background: var(--lacre-soft); border: 1px solid #F4D3C2;
  box-shadow: 0 1px 2px rgba(154,58,21,.05), 0 6px 20px rgba(154,58,21,.08);
}
.calc h2 { color: var(--ink); }
.calc .lead { color: #5B3A2C; }
.calc label { display: block; margin-top: 16px; font-size: 14px; color: #5B3A2C; }
.money {
  display: flex; align-items: center; gap: 8px; margin-top: 6px; height: 52px; padding: 0 14px;
  background: var(--white); border: 1px solid #EBC3AE; border-radius: 12px;
}
.money:focus-within { border-color: var(--lacre); }
.money span { color: var(--lacre-dark); }
.money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; color: var(--ink); }
.calc-res { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lacre-line); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-total span:first-child { font-weight: 500; }
.calc-total output { font-family: var(--display); font-variation-settings: "wdth" 92; font-size: 30px; font-weight: 760; color: var(--lacre-dark); }
.calc dl { margin: 10px 0 0; display: grid; gap: 6px; font-size: 14px; }
.calc dl div { display: flex; justify-content: space-between; gap: 12px; }
.calc dt { color: #5B3A2C; }
.calc dd { margin: 0; text-align: right; }
.calc .fine { color: #6E5246; }
.err { margin: 8px 0 0; font-size: 13px; }
.hours { margin-top: 14px; padding: 6px; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; margin: 2px 0; border-radius: 10px; font-size: 15px; color: var(--ink-2); }
.hours-row.closed { color: var(--faint); }
.hours-row.today { background: var(--lacre-soft); color: var(--ink); font-weight: 700; }
.hours-row .tag { font-weight: 400; color: var(--lacre-dark); }
.facts { margin: 14px 0 0; padding: 4px 16px; }
.fact { padding: 13px 0; }
.fact + .fact { border-top: 1px solid var(--hair); }
.fact dt { font-size: 13px; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.copy {
  min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--white); font-size: 13px; color: var(--ink);
}
.placeholder { color: var(--faint); }
.report {
  margin-top: 32px; padding: 22px 20px; border-radius: 20px;
  background: var(--ink); color: var(--bone); box-shadow: var(--shadow-dark);
}
.report h2 { color: var(--bone); }
.report .lead { color: #C9CED6; }
.report label { display: block; margin-top: 14px; font-size: 13px; color: #C9CED6; }
.report select, .report input {
  margin-top: 6px; width: 100%; height: 48px; padding: 0 12px;
  border: 1px solid var(--ink-line); border-radius: 12px; background: var(--ink-deep); color: var(--bone);
  font-size: 15px; outline: none;
}
.report select:focus, .report input:focus { border-color: #F6C3AC; }
.report input::placeholder { color: #8893A3; }
.report .err { color: #F6C3AC; }
.btn-lacre { width: 100%; margin-top: 16px; min-height: 48px; border: 0; border-radius: 12px; background: var(--lacre); color: #fff; font-weight: 700; font-size: 15px; }
.btn-lacre:hover { background: #BC4A20; }
.done { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--ink-deep); display: flex; gap: 10px; align-items: flex-start; }
.done p { margin: 0; font-size: 15px; }
.btn-ghost { margin-top: 10px; min-height: 40px; padding: 0 12px; border: 1px solid var(--ink-line); border-radius: 10px; background: transparent; color: var(--bone); font-size: 14px; }
.report .xsel-btn { border-color: var(--ink-line); background: var(--ink-deep); color: var(--bone); }
.report .xsel-btn:focus-visible { outline-color: #F6C3AC; }
@media (max-width: 340px) {
  :root { --gutter: 16px; }
  .ficha-hero .actions { grid-template-columns: 1fr; }
}

.ficha-hero { margin-top: 12px; padding: 22px 20px 20px; border-radius: 20px; box-shadow: var(--shadow-hero); }
.ficha-hero h1 { font-size: clamp(28px, 8vw, 34px); font-weight: 780; letter-spacing: -.025em; line-height: 1.08; }
.page .section { margin-top: 32px; }
.page h2 { font-size: 23px; }

/* Distrito */
.dist-head { padding-top: 8px; }
.dist-head h1 { font-size: clamp(30px, 8.5vw, 44px); font-weight: 790; letter-spacing: -.028em; line-height: 1.06; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tab { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 14px; }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); font-weight: 500; box-shadow: var(--shadow-btn); }
.range { margin-top: 18px; padding: 20px; border-radius: 18px; background: var(--ink); color: var(--bone); box-shadow: var(--shadow-dark); }
.range p { margin: 0; }
.range .lbl { font-size: 15px; color: #C9CED6; }
.range .val { margin-top: 6px; font-family: var(--display); font-variation-settings: "wdth" 92; font-size: 34px; font-weight: 760; letter-spacing: -.02em; line-height: 1.1; }
.range .val i { font-style: normal; font-weight: 400; color: #9AA3AF; }
.range .sub { margin-top: 10px; font-size: 14px; color: #C9CED6; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.list-head h2 { font-size: 20px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--white); font-size: 13px; color: var(--ink); }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink-soft); font-weight: 500; }
.ncards { display: grid; gap: 16px; margin-top: 10px; }
.ncard { padding: 18px; }
.ncard-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ncard h3 { font-family: var(--text); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.ncard h3 a { color: var(--ink); text-decoration: none; }
.ncard h3 a:hover { color: var(--lacre-text); }
.ncard .addr { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.ncard .price { text-align: right; flex: none; }
.ncard .price b { display: block; font-family: var(--display); font-variation-settings: "wdth" 92; font-size: 26px; font-weight: 760; line-height: 1; }
.ncard .price b.pending { color: var(--faint); }
.ncard .best { display: inline-block; margin-top: 6px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--lacre-soft); color: var(--lacre-dark); }
.ncard .status { margin-top: 10px; font-size: 14px; }
.ncard .chips { margin-top: 10px; }
.ncard .acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ncard .acts .btn { min-height: 44px; font-size: 14px; padding: 0 8px; }
.empty { margin-top: 16px; padding: 20px; }
.empty p { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) { .ncards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page.wide { max-width: 1040px; }
.ncard .acts .btn-line:only-child, .ncard .acts:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- Blindaje frente al tema (Astra u otro): estados propios en botones ---- */
body.nc { background: var(--bone); color: var(--ink); }
body.nc button { text-transform: none; letter-spacing: normal; line-height: inherit; box-shadow: none; }
body.nc .zone-btn, body.nc .zone-btn:hover, body.nc .zone-btn:focus, body.nc .zone-btn:active,
body.nc .acc-btn, body.nc .acc-btn:hover, body.nc .acc-btn:focus, body.nc .acc-btn:active { background: transparent; color: var(--ink); border: 0; border-radius: 0; }
body.nc .zone-btn:hover, body.nc .acc-btn:hover { background: rgba(29,43,64,.035); }
/* Zona abierta: tono suave de la paleta, texto oscuro con buen contraste */
body.nc .zone.is-open > .zone-btn { background: #E6EAF0; color: var(--ink); }
body.nc .zone.is-open > .zone-btn b { font-weight: 700; color: var(--ink); }
body.nc .zone.is-open > .zone-btn span { color: var(--ink-2); }
body.nc .zone.is-open > .zone-btn .chev { color: var(--lacre); }
body.nc .zone-list { padding: 14px 16px 16px; }
body.nc .faq .zone-body { padding-top: 12px; }
/* Selector: abierto = borde lacre, nunca relleno azul */
body.nc .xsel-btn, body.nc .xsel-btn:hover, body.nc .xsel-btn:focus, body.nc .xsel-btn:active { background: var(--white); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; }
body.nc .xsel-btn:hover { border-color: #CFCBC2; }
body.nc .xsel.is-open .xsel-btn { border-color: var(--lacre); box-shadow: 0 0 0 3px var(--lacre-soft); }
body.nc .xsel-btn .ph { color: var(--faint); }
body.nc .report .xsel-btn, body.nc .report .xsel-btn:hover, body.nc .report .xsel-btn:focus { background: var(--ink-deep); color: var(--bone); border-color: var(--ink-line); }
body.nc .report .xsel.is-open .xsel-btn { border-color: #F6C3AC; box-shadow: 0 0 0 3px rgba(246,195,172,.18); }
body.nc .tab:hover, body.nc .filter:hover { background: var(--white); color: var(--ink); border-color: #CFCBC2; }
body.nc .tab[aria-pressed="true"], body.nc .tab[aria-pressed="true"]:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
body.nc .filter[aria-pressed="true"], body.nc .filter[aria-pressed="true"]:hover { background: var(--ink-soft); color: var(--ink); border-color: var(--ink); }
body.nc .btn-go, body.nc .btn-go:hover, body.nc .btn-go:focus { color: var(--bone); border: 0; }
body.nc .copy, body.nc .copy:hover { background: var(--white); color: var(--ink); }
body.nc .btn-lacre, body.nc .btn-lacre:focus { color: #fff; border: 0; }
body.nc .btn-ghost, body.nc .btn-ghost:hover { background: transparent; color: var(--bone); }
body.nc a:focus, body.nc button:focus { outline: none; }
body.nc a:focus-visible, body.nc button:focus-visible { outline: 2px solid var(--lacre); outline-offset: 2px; }

/* ---- Menú móvil ---- */
body.nc .topbar { position: sticky; }
body.nc .menu-mob { position: relative; }
body.nc .menu-mob, body.nc .menu-mob:hover, body.nc .menu-mob:focus { background: var(--white); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; }
.menu-mob .i-close { display: none; }
.menu-mob[aria-expanded="true"] .i-open { display: none; }
.menu-mob[aria-expanded="true"] .i-close { display: block; }
.mnav { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); padding: 8px; border-radius: 18px;
  background: rgba(251,250,247,.96); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(29,43,64,.10); box-shadow: 0 16px 40px rgba(29,43,64,.22), 0 2px 6px rgba(29,43,64,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .18s ease, transform .22s cubic-bezier(.22,1,.36,1), visibility 0s linear .22s; }
.mnav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mnav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border-radius: 12px; color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; }
.mnav a + a { border-top: 1px solid rgba(29,43,64,.07); }
.mnav a:hover, .mnav a:focus-visible { background: rgba(29,43,64,.05); }
.mnav a svg { color: var(--lacre); flex: none; }
.mnav-note { margin: 6px 14px 8px; font-size: 13px; color: var(--muted); }
@media (min-width: 720px) { .mnav { display: none; } }

/* ---- Volver arriba (reemplaza el del tema) ---- */
#ast-scroll-top, .ast-scroll-top-icon, .scroll-to-top, #scroll-top, .back-to-top { display: none !important; }
body.nc .totop { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid rgba(29,43,64,.10); background: rgba(251,250,247,.82); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(29,43,64,.18);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .25s cubic-bezier(.22,1,.36,1), visibility 0s linear .25s; }
body.nc .totop.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
body.nc .totop:hover { background: var(--white); color: var(--lacre-text); }
body.nc .totop svg { color: var(--lacre); }

/* ---- Selector en móvil: el panel se ajusta al espacio sobre el teclado ---- */
@media (max-width: 719px) { .xsel-scroll { max-height: var(--xsel-max, 300px); } }
.chip.chip-test { background: #FFF4C2; color: #6B5200; border-color: #F0DE8C; }

/* ---- Cifras de confianza centradas ---- */
body.nc .trust div { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ---- Título de la ficha: pluma + «Notaría» arriba, apellidos abajo en móvil ---- */
.ficha-title { position: relative; }
.ficha-title .pluma { display: inline-block; width: auto; height: 1.12em; margin-right: .14em; vertical-align: -.16em; color: var(--lacre); }
@media (max-width: 719px) {
  .ficha-title .t-pre { display: inline; }
  .ficha-title .t-ap { display: block; margin-top: .04em; }
}

/* ---- Trámite abierto en «Precios por trámite»: más color ---- */
body.nc .acc-item.is-open { background: var(--lacre-soft); box-shadow: inset 3px 0 0 var(--lacre); }
body.nc .acc-item.is-open > .acc-btn .acc-name { color: var(--lacre-dark); font-weight: 700; }
body.nc .acc-item.is-open > .acc-btn .acc-price { color: var(--lacre-dark); }
body.nc .acc-item.is-open .chev { color: var(--lacre); }
body.nc .acc-item.is-open .acc-body b { color: var(--ink); }
