/* =============================================================
   Casa Norte · inmobiliaria de barrio (demo ficticia)
   Dirección: editorial arquitectónica. Papel cálido, tinta azul
   marino, latón. Planos, fachadas dibujadas, cifras en mono.
   ============================================================= */

:root {
  --paper: #F6F3EC;
  --paper-2: #EEE9DE;
  --card: #FFFDF9;
  --ink: #14213D;
  --ink-2: #26345A;
  --ink-3: #1B2B4D;
  --mute: #565F73;
  --line: rgba(20, 33, 61, .13);
  --line-2: rgba(20, 33, 61, .26);
  --brass: #C9A227;
  --brass-2: #E2C873;
  --brass-soft: #F3E8C6;
  --brass-text: #86660A;
  --sky: #DCE4EF;
  --sea: #3D5A80;
  --on-dark: #F6F3EC;
  --on-dark-2: #B3BCD0;
  --dark-line: rgba(246, 243, 236, .16);
  --map-land: #F2EEE5;
  --map-sea: #D5DFEC;
  --ok: #2E6B4F;
  --bad: #A23B2A;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gut: clamp(16px, 4.5vw, 56px);
  --wrap: 1280px;
  --nav-h: 66px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 18px 44px -20px rgba(20, 33, 61, .28);
  --shadow-lg: 0 2px 6px rgba(20, 33, 61, .05), 0 40px 80px -30px rgba(20, 33, 61, .38);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sec-dark :focus-visible, .footer :focus-visible, .demo-bar :focus-visible { outline-color: var(--brass-2); }
::selection { background: var(--brass-2); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
svg use { pointer-events: none; }

/* ---------- Tipografía ---------- */
.kicker { display: flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 1.1rem; }
.kicker-num { color: var(--brass-text); font-weight: 500; }
.kicker-num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: .7rem; }
.h2 { font-family: var(--serif); font-variation-settings: "opsz" 120; font-weight: 360; font-size: clamp(2.05rem, 4.3vw, 3.5rem); line-height: 1.04; letter-spacing: -.022em; text-wrap: balance; }
.h2 em, .hero-title em { color: var(--brass-text); font-weight: 340; }
.sec-intro { color: var(--mute); font-size: 1.06rem; max-width: 46ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.3rem; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 560; font-size: .98rem; line-height: 1.15; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 10px 24px -12px rgba(20, 33, 61, .6); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-2); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: var(--card); }
.btn-ghost-light { border-color: var(--dark-line); color: var(--on-dark); }
.btn-ghost-light:hover { border-color: var(--on-dark); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn-lg { min-height: 56px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-text { background: none; border: 0; padding: .2rem 0; color: var(--ink); font-weight: 560; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.btn-text:hover { text-decoration-color: var(--ink); }

/* ---------- Aviso de demo ---------- */
.demo-bar { background: var(--ink); color: var(--on-dark); font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; text-align: center; padding: .5rem var(--gut); line-height: 1.5; }
.demo-bar a { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.demo-bar a:hover { color: var(--brass-2); }
.demo-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); margin-right: .55rem; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(201, 162, 39, .6); animation: dot 2.4s infinite; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(201, 162, 39, 0); } }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 236, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 243, 236, .94); }
.nav-in { display: flex; align-items: center; gap: 1rem; height: var(--nav-h); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; color: var(--ink); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-family: var(--serif); font-variation-settings: "opsz" 60; font-size: 1.32rem; font-weight: 450; letter-spacing: -.01em; line-height: 1; }
.brand-name small { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-top: .3rem; white-space: nowrap; }
.nav-links { display: none; }
.nav-lang { display: none; }
.nav-cta { display: none; }
.burger { width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 20px; height: 1.8px; background: var(--ink); transition: transform .3s var(--ease); }
.nav.is-open .burger span:first-child { transform: translateY(3.9px) rotate(45deg); }
.nav.is-open .burger span:last-child { transform: translateY(-3.9px) rotate(-45deg); }
.sheet { border-top: 1px solid var(--line); background: var(--paper); padding: .5rem var(--gut) 1.4rem; max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; }
.sheet a { display: flex; justify-content: space-between; align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.sheet a small { font-family: var(--mono); font-size: .7rem; color: var(--mute); }
.sheet-note { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; color: var(--mute); font-size: .92rem; }
.sheet-note svg { width: 18px; height: 18px; }
@media (min-width: 720px) {
  .nav-cta { display: inline-flex; }
}
@media (min-width: 1080px) {
  :root { --nav-h: 76px; }
  .burger, .sheet { display: none !important; }
  .nav-links { display: flex; gap: .2rem; }
  .nav-links a { padding: .5rem .75rem; border-radius: 8px; text-decoration: none; font-size: .95rem; color: var(--ink-2); position: relative; }
  .nav-links a::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .25rem; height: 1.5px; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
  .nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
  .nav-lang { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--mono); font-size: .72rem; color: var(--mute); padding: 0 .4rem; }
  .nav-lang svg { width: 16px; height: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 0; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 75% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 75% 35%, #000 20%, transparent 75%);
}
.hero-in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); }
.hero-in > * { min-width: 0; }
.hero-kicker { color: var(--ink-2); }
.kicker-rule { display: inline-block; width: 36px; height: 1.5px; background: var(--brass); }
.hero-title { font-family: var(--serif); font-variation-settings: "opsz" 144; font-weight: 340; font-size: clamp(2.85rem, 6.4vw, 5.5rem); line-height: 1.01; letter-spacing: -.035em; text-wrap: balance; max-width: 14ch; }
.hero-title em { display: inline; }
.hero-sub { margin-top: 1.4rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--mute); max-width: 52ch; }

.finder { margin-top: 2rem; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 1rem 1rem 1.05rem; box-shadow: var(--shadow-lg); max-width: 680px; }
.finder-label { display: flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-text); margin: .1rem .25rem .6rem; }
.finder-label svg { width: 14px; height: 14px; color: var(--brass); }
.finder-box { display: flex; gap: .6rem; align-items: stretch; }
.finder-box textarea {
  flex: 1; min-width: 0; resize: none; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  padding: .8rem .95rem; font-size: 1.06rem; line-height: 1.45; color: var(--ink); min-height: 56px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.finder-box textarea::placeholder { color: #7A8193; }
.finder-box textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(201, 162, 39, .28); }
.finder-go { align-self: stretch; border-radius: 12px; padding: 0 1.25rem; }
.finder-go svg { width: 20px; height: 20px; }
.finder-examples { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: .85rem; }
.finder-ex-label { font-size: .82rem; color: var(--mute); margin-right: .15rem; }
.ex-chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .38rem .8rem; font-size: .84rem; color: var(--ink-2); text-align: left; transition: border-color .2s, background-color .2s; }
.ex-chip:hover { border-color: var(--ink); background: var(--paper); }

.hero-visual { position: relative; padding: 0 0 40px; }
.plan-card { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 1rem 1.1rem .8rem; box-shadow: var(--shadow); color: var(--ink); }
.plan-head { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .72rem; color: var(--mute); padding-bottom: .7rem; border-bottom: 1px dashed var(--line-2); margin-bottom: .7rem; }
.plan { width: 100%; height: auto; }
.plan-terr { fill: var(--brass-text); }
.plan-foot { font-family: var(--mono); font-size: .66rem; color: var(--mute); text-align: right; margin-top: .3rem; }
.float-card { position: absolute; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .75rem .95rem; }
.fc-match { left: -4px; bottom: 6px; display: flex; gap: .7rem; align-items: center; max-width: 250px; }
.fc-match b { display: block; font-size: .88rem; }
.fc-match small { display: block; font-size: .76rem; color: var(--mute); line-height: 1.35; }
.fc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 4px rgba(46, 107, 79, .15); }
.fc-quota { right: -4px; top: -22px; background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.fc-quota small { display: block; font-family: var(--mono); font-size: .64rem; color: var(--on-dark-2); letter-spacing: .04em; }
.fc-quota b { display: block; font-family: var(--serif); font-weight: 380; font-size: 1.9rem; line-height: 1.1; color: var(--brass-2); }
.fc-quota b span { font-size: .9rem; color: var(--on-dark); font-family: var(--sans); }

.hero-proof { position: relative; max-width: var(--wrap); margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.hero-proof li { display: flex; gap: .6rem; align-items: center; padding: 1.1rem .5rem 1.2rem 0; font-size: .9rem; color: var(--ink-2); line-height: 1.35; }
.hero-proof svg { width: 20px; height: 20px; flex: none; color: var(--brass-text); }

@media (min-width: 1024px) {
  .hero-in { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; }
  .hero-visual { padding: 34px 0 44px 10px; }
  .fc-match { left: -38px; bottom: 0; }
  .fc-quota { right: -18px; top: 0; }
  .hero-proof { grid-template-columns: repeat(4, 1fr); }
  .hero-proof li { padding-right: 1rem; }
}
@media (max-width: 560px) {
  .finder { padding: .8rem; border-radius: 18px; }
  .finder-box { flex-direction: column; }
  .finder-go { min-height: 50px; }
  .finder-examples { flex-wrap: nowrap; overflow-x: auto; margin-right: -.8rem; padding-right: .8rem; padding-bottom: .2rem; scrollbar-width: none; }
  .finder-examples::-webkit-scrollbar { display: none; }
  .ex-chip, .finder-ex-label { flex: none; white-space: nowrap; }
  .fc-quota { top: -18px; right: 6px; padding: .55rem .75rem; }
  .fc-quota b { font-size: 1.5rem; }
  .fc-match { left: 6px; bottom: 4px; }
  .plan-head span:last-child { display: none; }
}

/* ---------- Secciones ---------- */
.sec { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.sec-paper2 { background: var(--paper-2); }
.sec-homes { padding-bottom: clamp(56px, 7vw, 96px); }
.sec-head { display: grid; gap: 1.2rem; margin-bottom: clamp(32px, 4.5vw, 56px); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: 3rem; }
  .sec-head .sec-intro { justify-self: end; }
}

/* ---------- Filtros ---------- */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.1rem .9rem; box-shadow: var(--shadow); margin-bottom: 28px; }
.filters-top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.filters-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; flex: 1 1 320px; min-width: 0; }
.chips-empty { font-size: .9rem; color: var(--mute); }
.chip-f { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 999px; padding: .34rem .5rem .34rem .8rem; font-size: .86rem; font-weight: 500; }
.chip-f svg { width: 15px; height: 15px; opacity: .75; }
.chip-f:hover svg { opacity: 1; }
.chip-f:hover { background: var(--ink-2); }
.chip-f.is-new { animation: chipIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes chipIn { from { opacity: 0; transform: translateY(6px) scale(.96); } }

.refine { margin-top: .9rem; border-top: 1px solid var(--line); }
.refine summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 0 .3rem; font-weight: 560; font-size: .95rem; cursor: pointer; }
.refine summary::-webkit-details-marker { display: none; }
.refine summary svg { width: 18px; height: 18px; color: var(--brass-text); }
.refine summary::after { content: "+"; font-family: var(--mono); color: var(--mute); margin-left: .25rem; }
.refine[open] summary::after { content: "–"; }
.refine-grid { display: grid; gap: 1.1rem 1.6rem; padding: .8rem 0 .6rem; }
@media (min-width: 900px) { .refine-grid { grid-template-columns: auto auto 1fr; } .rf-row, .rf-wide { grid-column: 1 / -1; } }
.rf { border: 0; padding: 0; margin: 0; min-width: 0; }
.rf legend, .field label, .field legend { display: block; font-size: .8rem; font-weight: 560; color: var(--ink-2); margin-bottom: .45rem; padding: 0; }
.field label small, .field legend small { font-weight: 400; color: var(--mute); }
.rf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem 1.2rem; }
.toggles { display: flex; flex-wrap: wrap; gap: .4rem; }
.toggles button { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: .4rem .85rem; font-size: .86rem; color: var(--ink-2); transition: background-color .2s, border-color .2s, color .2s; }
.toggles button:hover { border-color: var(--ink); }
.toggles button[aria-pressed="true"] { background: var(--brass-soft); border-color: var(--brass-text); color: var(--ink); font-weight: 560; }
.toggles button[aria-pressed="true"]::before { content: "✓ "; color: var(--brass-text); }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: .4rem .9rem; border-radius: 8px; font-size: .88rem; color: var(--ink-2); transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2.5px solid var(--brass-text); outline-offset: 1px; }

.field { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 0; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; padding: .6rem .8rem; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2314213D' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px; padding-right: 2.2rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(201, 162, 39, .28); }
.field textarea { resize: vertical; min-height: 88px; }
.field .is-bad, .is-bad { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(162, 59, 42, .15) !important; }
.field-inline { flex-direction: row; align-items: center; gap: .6rem; }
.field-inline label { margin: 0; white-space: nowrap; }
.field-inline select { min-height: 40px; width: auto; font-size: .9rem; }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.results-count { font-size: .95rem; color: var(--ink-2); }
.results-count b { font-family: var(--serif); font-size: 1.25rem; font-weight: 450; }

/* ---------- Fichas ---------- */
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(16px, 2vw, 26px); }
.results-note { grid-column: 1 / -1; display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--brass-soft); color: var(--ink); font-size: .95rem; }
.results-note svg { width: 20px; height: 20px; flex: none; color: var(--brass-text); margin-top: .1rem; }
.noscript-note { grid-column: 1 / -1; padding: 1rem; border: 1px dashed var(--line-2); border-radius: var(--r); }
.home { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s; }
.home:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); transform: translateY(-3px); }
.home.is-near { border-style: dashed; border-color: var(--line-2); }
.home.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px var(--brass); } }
.home-art { position: relative; aspect-ratio: 40 / 25; background: var(--sky); border-bottom: 1px solid var(--line); overflow: hidden; }
.home-art svg { width: 100%; height: 100%; }
.home-badges { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; gap: .4rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .55rem; border-radius: 6px; background: rgba(255, 253, 249, .92); color: var(--ink); border: 1px solid var(--line); }
.badge-op { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge-near { background: var(--brass-soft); border-color: var(--brass-text); }
.home-body { display: flex; flex-direction: column; gap: .7rem; padding: 1.15rem 1.2rem 1.25rem; flex: 1; }
.home-meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.home-title { font-family: var(--serif); font-variation-settings: "opsz" 36; font-size: 1.28rem; line-height: 1.2; font-weight: 450; letter-spacing: -.01em; }
.home-price { font-family: var(--serif); font-variation-settings: "opsz" 72; font-size: 1.8rem; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.home-price small { font-family: var(--sans); font-size: .9rem; color: var(--mute); letter-spacing: 0; }
.home-facts { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .88rem; color: var(--ink-2); padding: .65rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-facts li { display: inline-flex; align-items: center; gap: .35rem; }
.home-facts svg { width: 17px; height: 17px; color: var(--brass-text); }
.home-desc { font-size: .92rem; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-desc.is-open { display: block; }
.home-more { align-self: flex-start; font-size: .84rem; margin-top: -.35rem; }
.home-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.home-tags li { font-size: .76rem; padding: .2rem .55rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.home-tags li.is-hit { background: var(--brass-soft); border-color: rgba(134, 102, 10, .45); color: var(--ink); }
.home-why { display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .82rem; color: var(--ok); }
.home-why li { display: inline-flex; align-items: center; gap: .25rem; }
.home-why svg { width: 15px; height: 15px; }
.home-why .miss { color: var(--bad); }
.home-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.home-actions .btn { flex: 1 1 auto; }
.results-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.results-empty h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .5rem; }
.results-empty p { color: var(--mute); max-width: 48ch; margin: 0 auto 1.2rem; }

/* ---------- Por qué ---------- */
.sec-why { padding-top: 0; }
.why-in { display: grid; gap: 2.5rem; border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.why-copy p:not(.kicker) { color: var(--mute); margin-top: 1.2rem; max-width: 48ch; font-size: 1.05rem; }
.why-list li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.why-list li:first-child { border-top: 1px solid var(--line); }
.why-n { font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--brass-text); }
.why-list h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 450; margin-bottom: .3rem; }
.why-list p { color: var(--mute); }
@media (min-width: 900px) { .why-in { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* ---------- Hipoteca (oscuro) ---------- */
.sec-dark { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.sec-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 15% 20%, #000, transparent 70%); mask-image: radial-gradient(ellipse 60% 60% at 15% 20%, #000, transparent 70%); }
.sec-dark .wrap { position: relative; }
.sec-dark .kicker { color: var(--on-dark-2); }
.sec-dark .kicker-num { color: var(--brass); }
.sec-dark .h2 em { color: var(--brass-2); }
.sec-dark .sec-intro { color: var(--on-dark-2); }
.mort { display: grid; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 980px) { .mort { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } }
.mort-form { display: grid; gap: 1.6rem; }
.mort-from { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 10px; background: rgba(201, 162, 39, .14); border: 1px solid rgba(226, 200, 115, .35); font-size: .9rem; }
.mort-from button { margin-left: auto; background: none; border: 0; color: var(--on-dark-2); text-decoration: underline; font-size: .84rem; }
.mf { border: 0; padding: 0; margin: 0; min-width: 0; }
.mf-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.mf-top label, .mf legend { font-size: .92rem; color: var(--on-dark-2); padding: 0; }
.mf legend { margin-bottom: .6rem; }
.mf output { font-family: var(--mono); font-size: 1.02rem; color: var(--on-dark); white-space: nowrap; }
.mf-hint { font-size: .8rem; color: var(--on-dark-2); margin-top: .45rem; }
.mf-num { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; max-width: 220px; }
.mf-num input { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--dark-line); background: rgba(255, 255, 255, .05); color: var(--on-dark); padding: .5rem .75rem; font-family: var(--mono); font-size: 1rem; }
.mf-num input:focus { outline: none; border-color: var(--brass-2); box-shadow: 0 0 0 3px rgba(201, 162, 39, .3); }
.mf-num span { color: var(--on-dark-2); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; --fill: 50%; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brass) var(--fill), rgba(246, 243, 236, .2) var(--fill)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(246, 243, 236, .2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--brass); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 5px solid var(--brass); margin-top: -9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 5px solid var(--brass); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 4px; }
.seg-dark { background: rgba(255, 255, 255, .06); border-color: var(--dark-line); }
.seg-dark span { color: var(--on-dark-2); }
.seg-dark input:checked + span { background: var(--brass); color: var(--ink); font-weight: 560; }

.mort-out { background: var(--ink-3); border: 1px solid var(--dark-line); border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2.2rem); }
.mo-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.mo-quota { font-family: var(--serif); font-variation-settings: "opsz" 144; font-weight: 330; font-size: clamp(3.6rem, 9vw, 6rem); line-height: 1; letter-spacing: -.04em; color: var(--brass-2); margin: .4rem 0 .5rem; font-variant-numeric: tabular-nums; }
.mo-quota small { font-family: var(--sans); font-size: 1.1rem; letter-spacing: 0; color: var(--on-dark); }
.mo-sub { color: var(--on-dark-2); }
.mo-sub b { color: var(--on-dark); font-weight: 560; }
.mo-list { margin: 1.4rem 0 0; display: grid; }
.mo-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--dark-line); }
.mo-list dt { color: var(--on-dark-2); font-size: .93rem; }
.mo-list dd { margin: 0; font-family: var(--mono); font-size: .98rem; white-space: nowrap; }
.mo-list dd small { color: var(--on-dark-2); }
.mo-upfront { margin-top: 1.2rem; padding: 1.1rem; border-radius: var(--r); background: rgba(246, 243, 236, .05); border: 1px solid var(--dark-line); }
.mo-up-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; margin-bottom: .8rem; }
.mo-up-top p:first-child { font-weight: 560; }
.mo-up-total { white-space: nowrap; font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.st { display: block; height: 100%; transition: flex-basis .5s var(--ease); flex: 0 0 33%; }
.st-a { background: var(--brass); }
.st-b { background: #7F9CC2; }
.st-c { background: var(--on-dark-2); }
.stack-legend { display: grid; gap: .45rem; margin-top: .9rem; font-size: .88rem; color: var(--on-dark-2); }
.stack-legend li { display: flex; align-items: baseline; gap: .55rem; }
.stack-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; transform: translateY(1px); }
.stack-legend b { margin-left: auto; font-family: var(--mono); font-weight: 400; color: var(--on-dark); white-space: nowrap; padding-left: .5rem; }
.mo-warn { display: flex; gap: .6rem; margin-top: 1rem; padding: .8rem .9rem; border-radius: 10px; background: rgba(201, 162, 39, .12); border: 1px solid rgba(226, 200, 115, .35); font-size: .88rem; color: var(--on-dark); }
.mo-warn svg { width: 19px; height: 19px; flex: none; color: var(--brass-2); margin-top: .1rem; }
.mo-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.mo-legal { margin-top: 1.2rem; font-size: .8rem; color: var(--on-dark-2); line-height: 1.5; }
.mo-legal b { color: var(--on-dark); }
.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: translateY(-3px); } }

/* ---------- Vender ---------- */
.sell { display: grid; gap: clamp(40px, 5vw, 80px); }
@media (min-width: 980px) { .sell { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: start; } .valor { position: sticky; top: calc(var(--nav-h) + 24px); } }
.sell-copy .sec-intro { margin-top: 1.2rem; }
.sell-copy .sec-intro b { color: var(--ink); }
.steps { margin-top: 2.2rem; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.steps li > span { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; }
.steps h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 450; margin-bottom: .25rem; }
.steps p { color: var(--mute); }
.valor { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow-lg); }
.valor-tag { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-text); border: 1px solid rgba(134, 102, 10, .4); border-radius: 6px; padding: .2rem .5rem; }
.valor-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; line-height: 1.12; margin: .8rem 0 1.3rem; letter-spacing: -.015em; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.f-span { grid-column: 1 / -1; }
.valor-checks { border: 0; padding: 0; margin: 1.1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; }
.valor-checks label, .check { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; color: var(--ink-2); cursor: pointer; line-height: 1.4; }
input[type="checkbox"] { width: 19px; height: 19px; margin: .05rem 0 0; accent-color: var(--ink); flex: none; }
.valor-out { margin: 1.4rem 0 1.1rem; padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.vo-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.vo-range { font-family: var(--serif); font-variation-settings: "opsz" 96; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; margin: .25rem 0 .35rem; font-variant-numeric: tabular-nums; }
.vo-note { font-size: .85rem; color: var(--mute); }
.valor-legal { font-size: .78rem; color: var(--mute); margin-top: .8rem; }
@media (max-width: 420px) { .valor-checks { grid-template-columns: 1fr; } }

/* ---------- Barrios ---------- */
.zones { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 1000px) { .zones { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .zmap { position: sticky; top: calc(var(--nav-h) + 24px); } }
.zmap { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .7rem; box-shadow: var(--shadow); }
.zmap svg { width: 100%; height: auto; border-radius: 14px; }
.zmap figcaption { font-family: var(--mono); font-size: .68rem; color: var(--mute); text-align: right; padding: .5rem .3rem 0; }
.zpin { cursor: pointer; }
.zpin text { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; stroke-linejoin: round; }
.zp-halo { fill: rgba(201, 162, 39, .18); stroke: rgba(134, 102, 10, .35); stroke-width: 1; transition: fill .3s, r .3s; transform-box: fill-box; transform-origin: center; }
.zp-dot { fill: var(--ink); stroke: var(--card); stroke-width: 2.5; }
.zpin.is-on .zp-halo { fill: rgba(201, 162, 39, .45); stroke: var(--brass-text); }
.zpin.is-on .zp-dot { fill: var(--brass); stroke: var(--ink); }
.zlist { display: grid; gap: 14px; }
@media (max-width: 600px) { .zpin text { font-size: 24px; stroke-width: 6px; } .zp-dot { r: 10px; } }
@media (min-width: 640px) and (max-width: 999px) { .zlist { grid-template-columns: 1fr 1fr; } }
.zone { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem 1.25rem; transition: border-color .3s, box-shadow .3s; }
.zone.is-on { border-color: var(--brass-text); box-shadow: 0 0 0 3px rgba(201, 162, 39, .25); }
.zone-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.zone h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 420; letter-spacing: -.01em; }
.zone-price { font-family: var(--mono); font-size: .82rem; color: var(--mute); white-space: nowrap; }
.zone-price b { color: var(--ink); font-weight: 500; font-size: .95rem; }
.zone > p:not(.zone-tags) { color: var(--mute); font-size: .95rem; }
.zone-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .8rem 0; }
.zone-tags span { font-size: .76rem; padding: .18rem .55rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.zone-go { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 0; padding: .3rem 0; font-weight: 560; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.zone-go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.zone-go:hover svg { transform: translateX(4px); }

/* ---------- Visita ---------- */
.visit { display: grid; gap: clamp(32px, 4vw, 64px); }
@media (min-width: 980px) { .visit { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; } }
.visit-pick { margin-top: 2rem; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.vp-empty { padding: 1.2rem; color: var(--mute); font-size: .95rem; }
.vp { display: grid; grid-template-columns: 120px 1fr; }
.vp-art { background: var(--sky); border-right: 1px solid var(--line); min-height: 100%; }
.vp-art svg { width: 100%; height: 100%; object-fit: cover; }
.vp-body { padding: .9rem 1rem; display: grid; gap: .2rem; align-content: center; }
.vp-body small { font-family: var(--mono); font-size: .68rem; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.vp-body b { font-family: var(--serif); font-weight: 450; font-size: 1.08rem; line-height: 1.25; }
.vp-body span { font-size: .9rem; color: var(--ink-2); }
.vp-simple { padding: 1.1rem 1.2rem; display: flex; gap: .8rem; align-items: center; }
.vp-simple svg { width: 28px; height: 28px; color: var(--brass-text); flex: none; }
.visit-facts { margin-top: 1.8rem; display: grid; gap: 1rem; }
.visit-facts li { display: flex; gap: .8rem; font-size: .95rem; color: var(--ink-2); }
.visit-facts svg { width: 22px; height: 22px; flex: none; color: var(--brass-text); margin-top: .1rem; }
.book, .book-ok { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); }
.book { display: grid; gap: 1.2rem; }
.book.is-flash, .visit-pick.is-flash { animation: flash 1.6s var(--ease); }
.slots-wrap { border: 0; padding: 0; margin: 0; }
.slots-wrap legend small { font-weight: 400; color: var(--mute); margin-left: .3rem; }
.slots { display: grid; gap: .8rem; }
.slot-group p { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: .4rem; }
.slot-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot span { display: block; text-align: center; padding: .6rem .2rem; border-radius: 10px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .92rem; transition: background-color .2s, border-color .2s, color .2s; }
.slot input:hover + span { border-color: var(--ink); }
.slot input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slot input:focus-visible + span { outline: 2.5px solid var(--brass-text); outline-offset: 2px; }
.slot.is-off span { opacity: .4; text-decoration: line-through; background: var(--paper-2); }
.slot.is-off input { cursor: not-allowed; }
.slots-empty { color: var(--mute); font-size: .92rem; padding: .7rem .9rem; border: 1px dashed var(--line-2); border-radius: 10px; }
.form-error { padding: .7rem .9rem; border-radius: 10px; background: #F8E3DE; color: #7A2616; font-size: .92rem; border: 1px solid rgba(162, 59, 42, .3); }
.form-note { font-size: .8rem; color: var(--mute); text-align: center; }
.book-ok { display: grid; gap: .9rem; }
.bo-top { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.7rem; }
.bo-top svg { width: 30px; height: 30px; color: var(--paper); background: var(--ok); border-radius: 50%; padding: 5px; }
.bo-sum { font-size: 1.05rem; }
.bo-note { font-size: .92rem; color: var(--mute); padding: .8rem .9rem; border-radius: 10px; background: var(--paper); }
.bo-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.bo-links:empty { display: none; }

/* ---------- FAQ ---------- */
.faq-in { display: grid; gap: 2.4rem; }
@media (min-width: 980px) { .faq-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; } .faq-in > header { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; } }
.faq-more { margin-top: 1.4rem; color: var(--mute); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.2rem; align-items: center; padding: 1.25rem 0; font-family: var(--serif); font-variation-settings: "opsz" 36; font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 420; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform .35s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--brass-soft); }
.faq details > div { padding: 0 3rem 1.4rem 0; color: var(--mute); }
.faq details > div a { color: var(--ink); text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: end; } }
.contact .sec-intro { margin-top: 1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.contact-actions .btn { white-space: normal; text-align: left; }
.contact-card { margin: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: .4rem 1.4rem; }
.contact-card div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-card div:last-child { border-bottom: 0; }
.contact-card dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding-top: .15rem; }
.contact-card dd { margin: 0; }
.contact-card small { color: var(--mute); }
@media (max-width: 420px) { .contact-card div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--on-dark-2); padding: clamp(56px, 8vw, 96px) 0 96px; font-size: .93rem; }
.footer a { color: var(--on-dark); text-decoration-color: var(--brass); text-underline-offset: 3px; }
.footer-word { font-family: var(--serif); font-variation-settings: "opsz" 144; font-weight: 300; font-size: clamp(3.4rem, 13vw, 11rem); line-height: .9; letter-spacing: -.045em; color: var(--on-dark); margin-bottom: clamp(36px, 5vw, 64px); }
.footer-word em { color: var(--brass); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--dark-line); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr 1.3fr; } }
.f-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: .7rem; }
.footer ul { display: grid; gap: .35rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.4rem; padding-top: 1.4rem; font-size: .84rem; }

/* ---------- Asistente ---------- */
.chat-launch { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70; display: inline-flex; align-items: center; gap: .6rem; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: .55rem 1.2rem .55rem .55rem; box-shadow: 0 0 0 1px rgba(246, 243, 236, .22), 0 16px 34px -14px rgba(20, 33, 61, .7); transition: transform .35s var(--ease), opacity .3s; }
.chat-launch:hover { transform: translateY(-2px); }
.chat-launch.is-hidden { opacity: 0; transform: scale(.8); pointer-events: none; }
.chat-launch-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; }
.chat-launch-ico svg { width: 21px; height: 21px; }
.chat-launch-txt { font-weight: 560; font-size: .95rem; }
@media (max-width: 600px) { .chat-launch { padding: .45rem; } .chat-launch-txt { display: none; } }
.chat { position: fixed; z-index: 80; right: 16px; bottom: 16px; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 32px)); height: min(620px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 40px 90px -30px rgba(20, 33, 61, .55); overflow: hidden; animation: chatIn .45s var(--ease); }
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 600px) { .chat { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100dvh - 16px); max-height: calc(100vh - 16px); } }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: var(--ink); color: var(--paper); }
.chat-av { width: 38px; height: 38px; border-radius: 50%; background: rgba(246, 243, 236, .08); border: 1px solid var(--dark-line); display: grid; place-items: center; color: var(--paper); }
.chat-av svg { width: 26px; height: 26px; }
.chat-id { flex: 1; min-width: 0; line-height: 1.25; }
.chat-id b { display: block; font-weight: 600; }
.chat-id small { font-family: var(--mono); font-size: .66rem; color: var(--on-dark-2); letter-spacing: .06em; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--dark-line); background: transparent; color: var(--paper); display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--paper); overscroll-behavior: contain; }
.cmsg { max-width: 88%; padding: .7rem .9rem; border-radius: 14px; font-size: .93rem; line-height: 1.5; }
.cmsg-bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cmsg-user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.cmsg ul { padding-left: 1.1rem; list-style: disc; margin: .3rem 0; }
.cmsg a { color: var(--ink); text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 560; }
.cmsg-homes { align-self: stretch; display: grid; gap: .45rem; }
.cmsg-home { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; align-items: center; text-align: left; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: .6rem .75rem; }
.cmsg-home:hover { border-color: var(--ink); }
.cmsg-home small { grid-column: 1 / -1; font-family: var(--mono); font-size: .66rem; color: var(--mute); letter-spacing: .05em; text-transform: uppercase; }
.cmsg-home b { font-weight: 560; font-size: .9rem; line-height: 1.3; }
.cmsg-home span { font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; }
.cmsg-cta { display: flex; flex-wrap: wrap; gap: .4rem; }
.typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-sugs { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 1rem; background: var(--paper); border-top: 1px solid var(--line); scrollbar-width: none; }
.chat-sugs::-webkit-scrollbar { display: none; }
.chat-sugs[hidden] { display: none; }
.chat-sugs button { flex: none; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: .4rem .8rem; font-size: .82rem; white-space: nowrap; }
.chat-sugs button:hover { border-color: var(--ink); }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--card); }
.chat-form input { flex: 1; min-width: 0; min-height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: .5rem .8rem; background: #fff; font-size: 1rem; }
.chat-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 162, 39, .28); }
.chat-form button { width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-form button[disabled] { opacity: .5; }
.chat-legal { font-size: .7rem; color: var(--mute); text-align: center; padding: 0 1rem .6rem; background: var(--card); }

/* ---------- Revelado (solo si hay JS) ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
.home.is-enter { animation: homeIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes homeIn { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-dot, .typing i { animation: none; }
  .reveal-on .reveal { transform: none; transition: opacity .4s linear; }
  .home.is-enter, .chip-f.is-new, .chat { animation-duration: .01s; }
  .home:hover { transform: none; }
}
