/* =============================================================================
   Conecta Costa Promotions — hoja de estilos
   ============================================================================= */
@font-face { font-family: 'Inter Tight'; src: url('../fonts/inter-tight.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0f1e2b;
  --ink-2: #1a2d3c;
  --ink-3: #344756;
  --text: #1c2830;
  --muted: #4d5961;
  --paper: #ffffff;
  --white: #ffffff;
  --sand: #f3f5f6;
  --sand-2: #e5e9ec;
  --line: #e0e5e8;
  --line-2: #c7cfd5;
  --accent: #0f5f86;
  --accent-ink: #0b4a69;
  --accent-soft: #e3eff5;
  --accent-light: #8cc7e2;
  --sun: #f0a63a;
  --sea: #2d5866;
  --ok: #2e7a58;
  --ok-soft: #e3f0e9;
  --warn: #a8701c;
  --warn-soft: #f8edd9;
  --sold: #a3483c;
  --sold-soft: #f6e4e0;
  --sans: 'Inter Tight', 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 43, .06);
  --shadow: 0 1px 2px rgba(15, 30, 43, .04), 0 10px 28px -6px rgba(15, 30, 43, .12);
  --shadow-lg: 0 2px 6px rgba(15, 30, 43, .05), 0 28px 56px -12px rgba(15, 30, 43, .22);
  --hdr-h: 76px;
  --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 64px); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'ss01', 'cv11'; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
.sr { 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 { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tipografía ---------- */
.display { font-size: clamp(40px, 5.9vw, 86px); font-weight: 600; line-height: 1.02; letter-spacing: -.038em; }
.h1 { font-size: clamp(33px, 4vw, 56px); font-weight: 600; line-height: 1.06; letter-spacing: -.032em; }
.h2 { font-size: clamp(29px, 3.2vw, 46px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.h3 { font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -.012em; }
.h4 { font-family: var(--sans); font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; }
.eyebrow { display: block; margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--accent); }
.sec-head .eyebrow { display: none; }
.eyebrow-light { color: var(--accent-light); }
.lead { font-size: clamp(17.5px, 1.35vw, 19.5px); line-height: 1.6; color: var(--ink-3); max-width: 64ch; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.tiny { font-size: 13.5px; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }
.prose p, .prose li { max-width: 72ch; }
.prose h2 { font-size: clamp(22px, 2.1vw, 28px); font-weight: 600; letter-spacing: -.015em; margin: 1.6em 0 .5em; line-height: 1.2; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--gut); }
.wrap-md { max-width: 1120px; }
.wrap-sm { max-width: 860px; }
.sec { padding-block: clamp(56px, 7vw, 104px); }
.sec-sm { padding-block: clamp(48px, 6vw, 80px); }
.sec-sand { background: var(--sand); }
.sec-white { background: var(--white); }
.sec-ink { background: var(--ink); color: #e9edee; }
.sec-ink .lead, .sec-ink .muted { color: #b9c4c7; }
.sec-line { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 0; margin-bottom: clamp(28px, 3.5vw, 44px); max-width: 860px; }
.sec-head .lead { margin-top: 14px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }
.sec-head-row > div { max-width: 820px; }
.sec-head-c { text-align: center; margin-inline: auto; justify-items: center; }
.grid-2 { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mt-4 { margin-top: 64px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { justify-content: space-between; }

/* ---------- Botones ---------- */
.btn { --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--b); background: var(--b); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0; text-decoration: none; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-accent { --b: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-light { --b: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost-dark:hover { background: var(--sand); border-color: var(--line-2); color: var(--ink); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: var(--r-sm); }
.link { --ln: var(--line-2); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat, linear-gradient(var(--ln), var(--ln)) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease-out); }
.link:hover { background-size: 100% 1px, 100% 1px; }
.link .ic { width: 16px; height: 16px; }
.sec-ink .link { color: #fff; --ln: rgba(255, 255, 255, .3); }

/* ---------- Badges y chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; letter-spacing: 0; background: var(--sand-2); color: var(--ink); white-space: nowrap; }
.badge-available::before, .badge-reserved::before, .badge-sold::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-launch { background: var(--accent); color: #fff; }
.badge-soon { background: var(--ink); color: #fff; }
.badge-delivered { background: #e6ece9; color: #2d5b47; }
.badge-available { background: var(--ok-soft); color: var(--ok); }
.badge-reserved { background: var(--warn-soft); color: var(--warn); }
.badge-sold { background: var(--sold-soft); color: var(--sold); }
.badge-plain::before { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; transition: all .2s; user-select: none; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'], .chip.is-on, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-available { background: var(--ok); }
.dot-reserved { background: var(--warn); }
.dot-sold { background: var(--sold); }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 90; height: var(--hdr-h); background: #fff; border-bottom: 1px solid var(--line); transition: background .35s var(--ease), border-color .35s, transform .35s var(--ease), color .35s; color: var(--ink); }
.site-header.is-scrolled { background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: saturate(1.8) blur(16px); backdrop-filter: saturate(1.8) blur(16px); border-color: rgba(15, 30, 43, .08); }
.site-header.is-over:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.site-header.is-over:not(.is-scrolled) .logo { --logo-sun: #f6b54a; }
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { transform: none; }
.hdr-in { height: 100%; max-width: 1480px; margin: 0 auto; padding-inline: var(--gut); display: flex; align-items: center; gap: 28px; }
.hdr-logo { text-decoration: none; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.logo-mark { width: 40px; height: 40px; }
.logo-txt { display: grid; line-height: 1; }
.logo-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.logo-sub { font-size: 9.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; margin-top: 4px; opacity: .7; }
.logo-light { color: #fff; }
.hdr-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-nav > a, .nav-dd-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 13px; border-radius: var(--r-sm); font-size: 16px; font-weight: 500; text-decoration: none; background: none; border: 0; color: inherit; transition: background .2s; }
.hdr-nav > a:hover, .nav-dd-btn:hover, .nav-dd.is-open .nav-dd-btn { background: rgba(18, 34, 43, .06); }
.is-over:not(.is-scrolled) .hdr-nav > a:hover, .is-over:not(.is-scrolled) .nav-dd-btn:hover { background: rgba(255, 255, 255, .14); }
.hdr-nav > a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; font-weight: 600; }
.nav-dd-btn .ic { width: 16px; height: 16px; transition: transform .25s; }
.nav-dd.is-open .nav-dd-btn .ic { transform: rotate(180deg); }
.nav-dd { position: relative; }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0; width: 640px; padding: 14px; background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: grid; gap: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.nav-dd.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega::before { content: ''; position: absolute; inset: -16px 0 auto; height: 16px; }
.mega-item { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; padding: 10px; border-radius: var(--r); text-decoration: none; transition: background .2s; }
.mega-item:hover { background: var(--sand); }
.mega-img { aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; }
.mega-img img { width: 100%; height: 100%; object-fit: cover; }
.mega-txt { display: grid; gap: 4px; justify-items: start; }
.mega-txt strong { font-size: 17px; font-weight: 600; line-height: 1.25; }
.mega-txt > span:last-child { font-size: 14px; color: var(--muted); }
.mega-all { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 14px 12px 6px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; }
.mega-all .ic { width: 16px; height: 16px; }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.hdr-fav { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; text-decoration: none; transition: background .2s; }
.hdr-fav:hover { background: rgba(18, 34, 43, .06); }
.is-over:not(.is-scrolled) .hdr-fav:hover { background: rgba(255, 255, 255, .14); }
.fav-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; text-decoration: none; padding: 0 6px; white-space: nowrap; }
.hdr-phone .ic { width: 18px; height: 18px; }
.hdr-burger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid currentColor; background: none; align-items: center; justify-content: center; border-color: rgba(18, 34, 43, .2); }
.is-over:not(.is-scrolled) .hdr-burger { border-color: rgba(255, 255, 255, .5); }
.is-over:not(.is-scrolled) .hdr-cta { background: #fff; border-color: #fff; color: var(--ink); }
.is-over:not(.is-scrolled) .hdr-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
main { display: block; }
body:not(.has-hero) main { padding-top: var(--hdr-h); }

/* Menú móvil */
.mnav { position: fixed; inset: 0; z-index: 120; background: rgba(15, 30, 43, .5); }
.mnav-in { position: absolute; inset: 0 0 0 auto; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; overflow-y: auto; padding: 0 24px 28px; animation: mnav-in .35s var(--ease); }
@keyframes mnav-in { from { transform: translateX(40px); opacity: 0; } }
.mnav-top { display: flex; align-items: center; justify-content: space-between; height: var(--hdr-h); flex: none; }
.mnav-close { width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; }
.mnav nav { display: grid; padding: 8px 0 20px; }
.mnav-label { margin: 12px 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mnav-promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mnav-promo span:first-child { display: grid; font-size: 18px; font-weight: 600; line-height: 1.3; }
.mnav-promo small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.mnav-link { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 500; text-decoration: none; }
.mnav-link .ic { width: 22px; height: 22px; color: var(--accent); }
.mnav-foot { margin-top: auto; display: grid; gap: 10px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #c5cfd1; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.ftr-vip { background: var(--ink-2); padding-block: clamp(48px, 6vw, 80px); }
.ftr-vip-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.ftr-vip-title { color: #fff; font-size: clamp(24px, 2.4vw, 32px); }
.ftr-vip-text { margin: 14px 0 0; color: #b9c4c7; max-width: 52ch; }
.vip-row { display: flex; gap: 10px; }
.vip-row input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; }
.vip-row input::placeholder { color: #93a2a6; }
.vip-row input:focus { outline: none; border-color: var(--accent-light); background: rgba(255, 255, 255, .1); }
.vip-row .btn { min-height: 52px; }
.vip-form .check { margin-top: 14px; }
.vip-form .form-ok { color: #fff; margin-top: 14px; }
.ftr-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 40px; }
.ftr-brand p { margin: 22px 0 22px; max-width: 38ch; color: #a8b4b7; }
.ftr-social { display: flex; gap: 8px; }
.ftr-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.ftr-social a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.ftr-social .ic { width: 18px; height: 18px; }
.ftr-col { display: grid; align-content: start; gap: 11px; }
.ftr-col h3 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.ftr-col p { margin: 0; color: #a8b4b7; }
.ftr-hours { font-size: 14px; }
.ftr-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 26px 40px; display: grid; grid-template-columns: 1fr auto; gap: 14px 32px; font-size: 13.5px; color: #8f9ea2; }
.ftr-legal p { margin: 0; }
.ftr-legal nav { display: flex; gap: 22px; flex-wrap: wrap; }
.ftr-legal button { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.ftr-legal button:hover { color: #fff; }
.ftr-disclaimer { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.6; color: #7b8b90; max-width: 120ch; }

/* Barra fija móvil, WhatsApp, consentimiento y avisos */
.dock { display: none; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: #1f8f5f; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float .ic { width: 28px; height: 28px; stroke-width: 1.4; }
.consent { position: fixed; left: 22px; bottom: 22px; z-index: 110; width: min(440px, calc(100% - 44px)); padding: 22px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.55; }
.consent p { margin: 0 0 16px; }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 130; translate: -50% 0; padding: 14px 20px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); max-width: calc(100% - 40px); text-align: center; }
.toast.is-on { opacity: 1; transform: none; }

/* ---------- Migas ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.page-head .crumbs { margin-bottom: 28px; }
.page-head .lead { margin-top: 20px; }

/* ---------- Hero portada ---------- */
.hero { position: relative; min-height: min(92svh, 860px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 22, 29, .72) 0%, rgba(10, 22, 29, .42) 42%, rgba(10, 22, 29, .06) 78%), linear-gradient(180deg, rgba(10, 22, 29, .5) 0%, rgba(10, 22, 29, 0) 28%, rgba(10, 22, 29, 0) 55%, rgba(10, 22, 29, .82) 100%); }
.hero .display, .hero-sub { text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-in { width: 100%; padding-top: calc(var(--hdr-h) + 60px); padding-bottom: clamp(28px, 4vw, 48px); }
.hero-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-top .loc { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; opacity: .92; }
.hero-top .loc .ic { width: 17px; height: 17px; }
.hero .display { max-width: 18ch; text-wrap: balance; }
.hero-sub { margin: 18px 0 30px; max-width: 56ch; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, .9); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 24px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .25); }
.hero-fact { display: grid; gap: 2px; }
.hero-fact b { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.hero-fact span { font-size: 13.5px; color: rgba(255, 255, 255, .78); }


/* ---------- Tarjetas de promoción ---------- */
.promo-card { position: relative; display: grid; border-radius: var(--r-lg); overflow: hidden; background: #fff; text-decoration: none; border: 1px solid var(--line); transition: border-color .3s, box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.promo-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.promo-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.promo-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.promo-card:hover .promo-card-img img { transform: scale(1.05); }
.promo-card-img .badge { position: absolute; top: 18px; left: 18px; }
.promo-card-body { padding: 26px 28px 28px; display: grid; gap: 10px; }
.promo-card-body .h3 { font-size: 23px; }
.promo-card-loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.promo-card-loc .ic { width: 16px; height: 16px; }
.promo-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.promo-card-meta strong { font-weight: 600; }

/* ---------- Bloque destacado del lanzamiento ---------- */
.launch { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.launch-media { position: relative; }
.launch-media .m1 { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.launch-media .m1 img { width: 100%; height: 100%; object-fit: cover; }
.launch-media .m2 { display: none; position: absolute; right: -28px; bottom: -40px; width: 42%; border-radius: var(--r); overflow: hidden; border: 6px solid var(--paper); box-shadow: var(--shadow); aspect-ratio: 3 / 4; }
.launch-media .m2 img { width: 100%; height: 100%; object-fit: cover; }
.launch-tag { position: absolute; left: 0; bottom: 0; background: var(--accent); color: #fff; border-radius: 0 var(--r) 0 0; padding: 12px 18px; display: grid; gap: 1px; }
.launch-tag small { font-size: 12.5px; color: rgba(255, 255, 255, .82); font-weight: 500; }
.launch-tag b { font-size: 18px; font-weight: 600; line-height: 1.25; }

/* Rasgos destacados */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feat { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.feat:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.feat .ic { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.3; }
.feat h3 { font-size: 18px; font-weight: 600; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.sec-ink .feats, .sec-ink .feat { border-color: rgba(255, 255, 255, .12); }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.stat b { font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; color: var(--ink); }
.stat span { font-size: 14.5px; color: var(--muted); }
.sec-ink .stat { border-color: rgba(255, 255, 255, .2); }
.sec-ink .stat b { color: #fff; }

/* ---------- Tipologías ---------- */
.typo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.typo-card { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: border-color .3s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.typo-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.typo-plan { position: relative; aspect-ratio: 4 / 3.3; background: #fff; border-bottom: 1px solid var(--line); }
.typo-plan img, .ucard-plan img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; transition: transform .6s var(--ease); }
.typo-card:hover .typo-plan img, .ucard:hover .ucard-plan img { transform: scale(1.015); }
.typo-body { padding: 22px 24px 24px; display: grid; gap: 14px; align-content: start; }
.typo-body .h4 { font-size: 19px; }
.typo-specs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.typo-specs span { display: inline-flex; align-items: center; gap: 6px; }
.typo-specs .ic { width: 17px; height: 17px; }
.typo-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price-from small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.price-from b { font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.typo-avail { font-size: 13.5px; color: var(--ok); font-weight: 600; }
.typo-avail.none { color: var(--sold); }

/* Pestañas de tipología (página de promoción) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 42px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: all .2s; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs-line { gap: 0; border-bottom: 1px solid var(--line); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tabs-line::-webkit-scrollbar { display: none; }
.tabs-line .tab { border: 0; border-radius: 0; background: none; padding: 0 4px; margin-right: 26px; min-height: 52px; box-shadow: inset 0 -2px 0 transparent; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tabs-line .tab .ic { width: 18px; height: 18px; }
.tabs-line .tab:hover { color: var(--ink); }
.tabs-line .tab[aria-selected='true'] { background: none; color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.typo-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 36px; }
.typo-panel-plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2vw, 28px); display: flex; justify-content: center; }
.typo-panel-plan img { width: auto; max-width: 100%; height: auto; max-height: min(76vh, 760px); }
.typo-panel > div:last-child { position: sticky; top: calc(var(--hdr-h) + 90px); }

/* ---------- Tablas de datos ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts-1 { grid-template-columns: 1fr; }
.dtable { width: 100%; font-size: 15px; }
.dtable th, .dtable td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable thead th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom-color: var(--line-2); white-space: nowrap; }
.dtable td.r, .dtable th.r { text-align: right; }
.dtable tfoot td, .dtable tfoot th { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--line-2); }
.dtable .sub td { color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Galería ---------- */
.gal-filter { margin-bottom: 28px; }
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.gal-item { position: relative; border-radius: var(--r); overflow: hidden; padding: 0; border: 0; background: var(--sand-2); cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item.w2 { grid-column: span 2; }
.gal-item.h2 { grid-row: span 2; }
.gal-item figcaption, .gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(10, 22, 29, .7)); color: #fff; font-size: 13.5px; text-align: left; opacity: 0; transition: opacity .3s; }
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { opacity: 1; }

/* Mosaico cabecera de promoción */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: min(68vh, 640px); min-height: 420px; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.mosaic .gal-item { border-radius: 0; }
.mosaic .gal-item:first-child { grid-row: span 2; }
.mosaic-all { position: absolute; right: 18px; bottom: 18px; z-index: 2; }

/* Visor de imágenes */
.lb { position: fixed; inset: 0; z-index: 150; background: rgba(8, 15, 19, .96); display: grid; grid-template-rows: auto 1fr auto; color: #fff; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 14px; color: #c5cfd1; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lb-stage img { max-height: calc(100svh - 160px); max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; user-select: none; }
.lb-cap { padding: 16px 20px 22px; text-align: center; font-size: 15px; color: #dfe5e6; }
.lb-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-note { font-size: 12px; color: #8b9a9e; }

/* ---------- Subnavegación fija de promoción ---------- */
.subnav { position: sticky; top: var(--hdr-h); z-index: 60; background: #fff; border-bottom: 1px solid var(--line); transition: top .35s var(--ease); }
body.hdr-hidden .subnav { top: 0; }
.subnav-in { display: flex; align-items: center; gap: 24px; }
.subnav nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.subnav nav::-webkit-scrollbar { display: none; }
.subnav nav a { padding: 18px 10px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; transition: color .2s, box-shadow .2s; }
.subnav nav a:hover { color: var(--ink); }
.subnav nav a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.subnav-cta { display: flex; align-items: center; gap: 16px; flex: none; }
.subnav-price { font-size: 13px; color: var(--muted); line-height: 1.2; text-align: right; }
.subnav-price b { display: block; font-size: 17px; color: var(--ink); }

/* ---------- Cabecera de promoción ---------- */
.promo-head { padding-top: clamp(24px, 3vw, 40px); }
.promo-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin: 28px 0 28px; }
.promo-title .h1 { margin-top: 10px; }
.promo-title-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.promo-title-meta span { display: inline-flex; align-items: center; gap: 6px; }
.promo-title-meta .ic { width: 17px; height: 17px; }
.promo-price { text-align: right; }
.promo-price small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.promo-price b { font-size: clamp(28px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.promo-price span { display: block; font-size: 13.5px; color: var(--muted); }
.keyfacts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin-top: 24px; }
.keyfact { padding: 20px 22px; display: grid; gap: 4px; }
.keyfact + .keyfact { border-left: 1px solid var(--line); }
.keyfact small { font-size: 13px; color: var(--muted); font-weight: 500; }
.keyfact b { font-size: 17px; font-weight: 600; }

/* ---------- Selector de viviendas ---------- */
.selector { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.sel-visual { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 2.22fr); gap: 20px; }
.sel-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; position: relative; min-width: 0; }
.sel-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sel-panel-head h3 { font-size: 15px; font-weight: 600; }
.sel-panel-head p { margin: 0; font-size: 13px; color: var(--muted); }
.site-svg { width: 100%; height: auto; border-radius: var(--r); }
.sp-block { cursor: pointer; outline: none; }
.sp-block .sp-roof { transition: fill .25s, stroke .25s; }
.sp-block:hover .sp-roof, .sp-block:focus-visible .sp-roof { fill: #e6f0f5; }
.sp-block.is-active .sp-roof { fill: var(--accent-soft); stroke: var(--accent-ink); stroke-width: 4; }
.sp-block .sp-count { transition: fill .2s; }
.sp-block.is-active .sp-count { fill: var(--accent-ink); }
.sel-views { display: flex; gap: 6px; flex-wrap: wrap; }
.sel-views .tab { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.sel-stage { position: relative; }
.elev-svg, .fp-svg { width: 100%; height: auto; }
.el-unit { cursor: pointer; outline: none; }
.el-unit .el-hit { fill: rgba(255, 255, 255, 0); stroke: transparent; stroke-width: 6; transition: fill .2s, stroke .2s; }
.el-unit .el-sold { display: none; pointer-events: none; }
.el-unit .el-tag rect { fill: #fff; stroke: var(--line-2); stroke-width: 2; transition: fill .2s; }
.el-unit .el-tag text { font-family: var(--sans); font-size: 54px; font-weight: 700; letter-spacing: 2px; fill: var(--ink); }
.el-unit.is-available .el-hit { fill: rgba(46, 122, 88, .16); }
.el-unit.is-available .el-tag rect { fill: var(--ok); stroke: var(--ok); }
.el-unit.is-available .el-tag text { fill: #fff; }
.el-unit.is-reserved .el-hit { fill: rgba(168, 112, 28, .18); }
.el-unit.is-reserved .el-tag rect { fill: var(--warn); stroke: var(--warn); }
.el-unit.is-reserved .el-tag text { fill: #fff; }
.el-unit.is-sold .el-hit { fill: rgba(163, 72, 60, .12); }
.el-unit.is-sold .el-sold { display: block; }
.el-unit.is-sold .el-tag rect { fill: #fff; stroke: var(--sold); }
.el-unit.is-sold .el-tag text { fill: var(--sold); }
.el-unit:hover .el-hit, .el-unit:focus-visible .el-hit, .el-unit.is-hl .el-hit { stroke: var(--ink); fill: rgba(15, 95, 134, .28); }
.el-unit.is-out { opacity: .28; }
.el-unit.is-me .el-hit { fill: rgba(15, 95, 134, .42); stroke: var(--accent-ink); stroke-width: 10; }
.el-unit.is-me .el-tag rect { fill: var(--accent-ink); stroke: var(--accent-ink); }
.el-unit.is-me .el-tag text { fill: #fff; }
.fp-hit { cursor: pointer; stroke: transparent; stroke-width: 8; transition: fill .2s, stroke .2s; outline: none; }
.fp-wrap[data-mode='select'] .fp-hit.is-available { fill: rgba(46, 122, 88, .14); }
.fp-wrap[data-mode='select'] .fp-hit.is-reserved { fill: rgba(168, 112, 28, .16); }
.fp-wrap[data-mode='select'] .fp-hit.is-sold { fill: rgba(163, 72, 60, .16); }
.fp-hit:hover, .fp-hit:focus-visible, .fp-hit.is-hl { stroke: var(--ink); fill: rgba(15, 95, 134, .22) !important; }
.fp-hit.is-out { fill: rgba(255, 255, 255, .72) !important; }
.fp-hit.is-me { fill: rgba(15, 95, 134, .3) !important; stroke: var(--accent-ink); stroke-width: 14; }
.fp-tag circle { transition: fill .2s; }
.fp-wrap { min-height: 120px; }
.fp-loading { display: grid; place-items: center; min-height: 260px; color: var(--muted); font-size: 14px; }
.sel-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 12px; }
.sel-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sel-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 210px; padding: 14px 16px; border-radius: var(--r); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.sel-tip.is-on { opacity: 1; transform: none; }
.sel-tip b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.sel-tip .tp-price { margin-top: 6px; font-size: 16px; font-weight: 700; }
.sel-tip .tp-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; margin-top: 6px; }

/* Filtros */
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.fl { display: grid; gap: 6px; min-width: 0; }
.fl > label, .fl > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.fl select, .fl input[type='number'] { height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; padding: 0 36px 0 14px; font-size: 15px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312222b' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; min-width: 0; }
.fl select:focus { outline: none; border-color: var(--ink); }
.fl-range output { font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13px; }
.fl-range { align-self: stretch; }
.fl-range .range-row { height: 46px; display: flex; align-items: center; }
.fl-actions { display: flex; gap: 8px; align-items: center; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--ink) var(--p, 50%), var(--line-2) var(--p, 50%)); outline: none; cursor: pointer; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); cursor: grab; }
input[type='range']::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); cursor: grab; }
input[type='range']:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.res-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 0 12px; }
.res-bar p { margin: 0; font-size: 15px; }
.res-bar p b { font-size: 17px; }
.res-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.res-tools .fl select { height: 40px; font-size: 14px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 3px; background: #fff; }
.view-toggle button { width: 38px; height: 34px; border-radius: 2px; border: 0; background: none; display: grid; place-items: center; color: var(--muted); }
.view-toggle button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.view-toggle .ic { width: 18px; height: 18px; }

/* Listado de viviendas (tabla) */
.units { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.units table { font-size: 14.5px; }
.units th, .units td { padding: 14px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.units thead th { position: sticky; top: 0; background: var(--sand); font-size: 13px; font-weight: 600; color: var(--muted); }
.units thead th button { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.units thead th button:hover { color: var(--ink); }
.units thead th button[data-dir]::after { content: '↓'; font-size: 12px; }
.units thead th button[data-dir='asc']::after { content: '↑'; }
.units tbody tr { cursor: pointer; transition: background .15s; }
.units tbody tr:hover, .units tbody tr.is-hl { background: #f1f7fa; }
.units tbody tr:last-child td { border-bottom: 0; }
.units td.r, .units th.r { text-align: right; }
.u-name { display: flex; align-items: center; gap: 12px; }
.u-name a { font-weight: 700; text-decoration: none; font-size: 15.5px; }
.u-name a::after { content: ''; position: absolute; inset: 0; }
.units tr { position: relative; }
.u-name small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.u-price { font-weight: 700; font-size: 15.5px; }
.u-price.is-sold { color: var(--muted); font-weight: 500; text-decoration: line-through; text-decoration-thickness: 1px; }
.u-fav { position: relative; z-index: 2; width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; color: var(--ink); transition: all .2s; }
.u-fav:hover { border-color: var(--ink); }
.u-fav.is-on, .act-fav.is-on { color: #fff; background: var(--accent); border-color: var(--accent); }
.u-fav.is-on .ic, .act-fav.is-on .ic { fill: currentColor; }
.u-fav .ic { width: 18px; height: 18px; }
.u-sold td { color: var(--muted); }
.units-empty { padding: 48px 24px; text-align: center; color: var(--muted); }

/* Tarjetas de vivienda */
.ucards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ucard { position: relative; display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.ucard:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.ucard-plan { position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); }
.ucard-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; pointer-events: none; }
.ucard-top > * { pointer-events: auto; }
.ucard-body { padding: 18px 20px 20px; display: grid; gap: 10px; }
.ucard-body h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.ucard-body h3 a { text-decoration: none; }
.ucard-body h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ucard-body .sub { font-size: 13.5px; color: var(--muted); }
.ucard-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--text); }
.ucard-specs span { display: inline-flex; align-items: center; gap: 5px; }
.ucard-specs .ic { width: 16px; height: 16px; color: var(--muted); }
.ucard-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.ucard-price { font-size: 20px; font-weight: 700; }
.ucard-price small { font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---------- Ficha de vivienda ---------- */
.unit-head { padding-block: 28px 8px; }
.unit-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
.unit-title .h1 { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.unit-title .badge { font-size: 13px; height: 28px; padding: 0 11px; }
.unit-nav { display: flex; gap: 8px; }
.unit-specs { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--line); font-size: 15px; }
.unit-specs span { display: inline-flex; align-items: center; gap: 8px; }
.unit-specs .ic { color: var(--accent-ink); width: 21px; height: 21px; }
.unit-specs b { font-weight: 600; }
.unit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: 28px; }
.unit-main > section { padding-block: 44px; border-bottom: 1px solid var(--line); }
.unit-main > section:first-child { padding-top: 0; }
.unit-main > section:last-child { border-bottom: 0; }
.unit-main .h3 { margin-bottom: 8px; }
.unit-main .sec-intro { color: var(--muted); margin-bottom: 26px; max-width: 70ch; }

/* Visor de planos */
.viewer { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.viewer-tabs { padding: 0 20px; }
.viewer-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 520px; }
.viewer-body.no-side { grid-template-columns: minmax(0, 1fr); }
.plan-stage { position: relative; overflow: hidden; background: #fff; touch-action: none; cursor: grab; min-height: 420px; }
.plan-stage.is-drag { cursor: grabbing; }
.plan-zoom { transform-origin: 0 0; will-change: transform; padding: 12px; }
.plan-svg { width: 100%; height: auto; }
.plan-stage.no-furn .pl-furn { display: none; }
.rm-hit { cursor: pointer; stroke: transparent; stroke-width: 10; transition: fill .2s, stroke .2s; outline: none; }
.rm-hit:hover, .rm-hit:focus-visible { fill: rgba(15, 95, 134, .1); }
.rm-hit.is-on { fill: rgba(15, 95, 134, .16); stroke: var(--accent-ink); }
.plan-tools { position: absolute; right: 14px; top: 14px; display: grid; gap: 6px; z-index: 3; }
.plan-tools button, .plan-tools a { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--ink); transition: background .2s; }
.plan-tools button:hover, .plan-tools a:hover { background: var(--sand); }
.plan-tools .ic { width: 18px; height: 18px; }
.plan-tools [aria-pressed='false'] { color: var(--muted); }
.plan-hint { position: absolute; left: 16px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm); background: rgba(15, 30, 43, .84); color: #fff; font-size: 12.5px; pointer-events: none; transition: opacity .4s; }
.plan-hint .ic { width: 16px; height: 16px; }
.plan-hint.is-gone { opacity: 0; }
.room-side { border-left: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 14px; background: #fafbfc; overflow-y: auto; max-height: 720px; }
.room-side h4 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.room-side .room-m2 { font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.room-side p { font-size: 14.5px; color: var(--muted); margin: 0; }
.room-side .room-img { position: relative; border-radius: var(--r); overflow: hidden; cursor: zoom-in; border: 0; padding: 0; background: var(--sand-2); }
.room-side .room-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.room-side .room-img:hover img { transform: scale(1.04); }
.room-side .room-img span { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .94); font-size: 12px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.room-side .room-img span .ic { width: 14px; height: 14px; }
.room-list { display: grid; gap: 0; margin-top: 4px; }
.room-list button { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 14px; color: var(--text); }
.room-list button:hover, .room-list button.is-on { color: var(--accent-ink); }
.room-list button b { font-weight: 600; font-variant-numeric: tabular-nums; }
.room-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.room-back .ic { width: 15px; height: 15px; }
.viewer-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); background: #fafbfc; }
.viewer-foot .row { gap: 8px; }
.viewer:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.viewer:fullscreen .viewer-body { flex: 1; }
.viewer:fullscreen .room-side { max-height: none; }

/* Así será */
.render-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 20px; }
.render-grid .gal-item { aspect-ratio: 4 / 3; height: auto; }
.render-grid .gal-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.render-grid .gal-cap { opacity: 1; }
.situ { display: grid; gap: 16px; padding: 20px; }
.situ-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.situ figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: #fff; }
.situ figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.situ .site-svg .sp-block { pointer-events: none; }

/* Caja de precio */
.price-box { position: sticky; top: calc(var(--hdr-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; transition: top .35s var(--ease); }
body.hdr-hidden .price-box { top: 24px; }
.pb-top { padding: 24px 26px 20px; }
.pb-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.pb-ref { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.pb-price { font-size: 40px; line-height: 1.05; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.pb-price.is-sold { font-size: 28px; color: var(--muted); }
.pb-tax { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.pb-incl { display: grid; gap: 7px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; }
.pb-incl li { display: flex; align-items: center; gap: 9px; }
.pb-incl .ic { width: 17px; height: 17px; color: var(--ok); }
.pb-month { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--sand); text-decoration: none; font-size: 14px; }
.pb-month b { font-size: 18px; }
.pb-month small { display: block; font-size: 12px; color: var(--muted); }
.pb-month .ic { width: 18px; height: 18px; }
.pb-ctas { display: grid; gap: 10px; padding: 0 26px 22px; }
.pb-acts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pb-acts button { display: grid; justify-items: center; gap: 4px; padding: 14px 4px; border: 0; background: none; font-size: 12px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.pb-acts button + button { border-left: 1px solid var(--line); }
.pb-acts button:hover { color: var(--ink); background: #fafbfc; }
.pb-acts .ic { width: 20px; height: 20px; }
.pb-acts .is-on { color: var(--accent-ink); }
.pb-acts .is-on .ic { fill: currentColor; }
.pb-agent { display: flex; align-items: center; gap: 14px; padding: 18px 26px; background: #fafbfc; border-top: 1px solid var(--line); font-size: 13.5px; }
.pb-agent-av { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 600; flex: none; }
.pb-agent b { display: block; font-size: 14.5px; }
.pb-agent a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }

/* Pagos */
.paysteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.paystep { padding: 24px 22px; display: grid; gap: 6px; align-content: start; position: relative; }
.paystep + .paystep { border-left: 1px solid var(--line); }
.paystep .pct { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--accent); }
.paystep h4 { font-size: 16px; font-weight: 600; margin-top: 6px; }
.paystep p { margin: 0; font-size: 14px; color: var(--muted); }
.paystep .amt { margin-top: 10px; font-size: 18px; font-weight: 700; }
.paystep .amt small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.paybar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 22px 0 6px; background: var(--line); }
.paybar span:nth-child(1) { background: var(--accent-light); }
.paybar span:nth-child(2) { background: var(--accent); }
.paybar span:nth-child(3) { background: var(--ink); }

/* ---------- Calculadora hipotecaria ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.calc-in { padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; align-content: start; }
.calc-out { padding: clamp(22px, 3vw, 36px); background: var(--ink); color: #dfe6e8; display: grid; gap: 22px; align-content: start; }
.cf { display: grid; gap: 10px; }
.cf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cf-head label, .cf-head span { font-size: 14px; font-weight: 600; color: var(--ink); }
.cf-val { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.cf-val input { width: 110px; height: 36px; border: 0; padding: 0 10px; text-align: right; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield; }
.cf-val input::-webkit-outer-spin-button, .cf-val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cf-val input:focus { outline: none; }
.cf-val:focus-within { border-color: var(--ink); }
.cf-val i { font-style: normal; padding: 0 10px 0 0; font-size: 14px; color: var(--muted); }
.cf-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 3px; background: var(--sand); }
.seg label { position: relative; text-align: center; padding: 9px 8px; border-radius: 2px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muted); transition: background .2s, color .2s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); }
.calc-main { display: grid; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.calc-main small { font-size: 13px; color: #a3b3bd; font-weight: 500; }
.calc-main b { font-size: clamp(38px, 3.8vw, 50px); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; color: #fff; }
.calc-main span { font-size: 14px; color: #b7c3c6; }
.calc-rows { display: grid; gap: 0; }
.calc-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); font-size: 14.5px; }
.calc-rows > div b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-rows .tot { border-bottom: 0; padding-top: 14px; font-size: 16px; }
.calc-rows .tot b { color: var(--accent-light); font-size: 18px; }
.calc-chart { display: grid; gap: 8px; }
.calc-chart svg { width: 100%; height: auto; }
.calc-legend { display: flex; gap: 16px; font-size: 12.5px; color: #b7c3c6; }
.calc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calc-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.afford { padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, .06); font-size: 14px; }
.afford-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; margin: 10px 0 8px; }
.afford-bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--ok); transition: width .4s var(--ease), background .3s; }
.afford.is-warn .afford-bar span { background: #e0a24a; }
.afford.is-bad .afford-bar span { background: #e0705f; }
.afford b { color: #fff; }
.calc-warn { padding: 12px 14px; border-radius: var(--r-sm); background: rgba(224, 162, 74, .14); color: #f1d3a6; font-size: 13.5px; }
.calc-gastos { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.calc-gastos summary, .acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.calc-gastos summary::-webkit-details-marker, .acc summary::-webkit-details-marker { display: none; }
.calc-gastos summary { padding: 18px clamp(22px, 3vw, 36px); font-weight: 600; font-size: 15px; }
.calc-gastos summary .ic, .acc summary .ic { transition: transform .3s var(--ease); }
.calc-gastos[open] summary .ic, .acc[open] summary .ic { transform: rotate(45deg); }
.calc-gastos .calc-detail { padding: 0 clamp(22px, 3vw, 36px) 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; }
.amort { max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); }
.amort table { font-size: 13.5px; }
.amort th, .amort td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.amort th:first-child, .amort td:first-child { text-align: left; }
.amort thead th { position: sticky; top: 0; background: var(--sand); font-size: 12.5px; color: var(--muted); }
.calc-disc { grid-column: 1 / -1; padding: 16px clamp(22px, 3vw, 36px); background: var(--sand); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- Personalización ---------- */
.amb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.amb { position: relative; display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.amb:hover { border-color: var(--line-2); }
.amb input { position: absolute; opacity: 0; }
.amb:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.amb:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.amb-sw { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; }
.amb-sw img { width: 100%; height: 100%; object-fit: cover; }
.amb-sw img:first-child { grid-row: span 2; }
.amb-sw img:nth-child(4) { display: none; }
.amb h4 { font-size: 19px; font-weight: 600; line-height: 1.2; display: flex; justify-content: space-between; align-items: center; }
.amb h4 small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.amb p { margin: 0; font-size: 14px; color: var(--muted); }
.amb .amb-check { position: absolute; top: 28px; right: 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: none; place-items: center; }
.amb:has(input:checked) .amb-check { display: grid; }
.amb-check .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.amb-list { list-style: none; display: grid; gap: 6px; font-size: 13px; }
.amb-list li { display: flex; align-items: center; gap: 10px; }
.amb-list img { width: 26px; height: 26px; border-radius: 2px; object-fit: cover; flex: none; }
.amb-list span { color: var(--muted); }
.upg { display: grid; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.upg label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14.5px; transition: background .15s; }
.upg label:hover { background: #fafbfc; }
.upg label:last-of-type { border-bottom: 0; }
.upg label b { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.cbx { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 3px; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; margin: 0; cursor: pointer; transition: all .15s; flex: none; }
.cbx::after { content: ''; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.cbx:checked { background: var(--ink); border-color: var(--ink); }
.cbx:checked::after { opacity: 1; }
.upg-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: var(--sand); font-size: 15px; flex-wrap: wrap; }
.upg-total b { font-size: 22px; font-variant-numeric: tabular-nums; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 15.5px; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312222b' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 95, 134, .14); }
.field.is-err input, .field.is-err select, .field.is-err textarea { border-color: var(--sold); }
.field-err { font-size: 12.5px; color: var(--sold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); }
.check-light { color: #a8b4b7; }
.check-light a { color: #fff; }
.check-light input { accent-color: var(--accent); }
.check.is-err span { color: var(--sold); }
.hp { position: absolute; left: -9999px; }
.form-ok { padding: 18px 20px; border-radius: var(--r); background: var(--ok-soft); color: #22563f; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.form-ok .ic { color: var(--ok); width: 22px; height: 22px; }
.form-info { padding: 16px 18px; border-radius: var(--r); background: var(--sand); color: var(--ink); font-size: 14.5px; display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.form-info .ic { width: 22px; height: 22px; color: var(--accent-ink); }
.form-fail {padding: 14px 18px; border-radius: var(--r); background: var(--sold-soft); color: var(--sold); font-size: 14px; }
.form-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); }
.form-tabs { margin-bottom: 22px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slots .chip { justify-content: center; padding: 0 8px; font-size: 13.5px; position: relative; }
.contact-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 24px; align-content: start; }
.cinfo { display: flex; gap: 14px; align-items: flex-start; }
.cinfo .ic { width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.cinfo b { display: block; font-size: 15px; }
.cinfo span, .cinfo a { font-size: 15px; color: var(--muted); text-decoration: none; }
.cinfo a:hover { color: var(--ink); }
.sec-ink .cinfo span, .sec-ink .cinfo a { color: #b9c4c7; }
.sec-ink .cinfo b { color: #fff; }
.sec-ink .cinfo .ic { color: var(--accent-light); }

/* ---------- Acordeones ---------- */
.accs { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { padding: 22px 0; font-size: 17px; font-weight: 600; }
.acc summary > span { display: flex; align-items: center; gap: 14px; }
.acc summary > span .ic { color: var(--accent-ink); transform: none !important; width: 24px; height: 24px; }
.acc summary > .ic { width: 22px; height: 22px; flex: none; }
.acc-body { padding: 0 0 24px; color: var(--muted); font-size: 15.5px; }
.acc-body ul { list-style: none; display: grid; gap: 10px; }
.acc-body li { position: relative; padding-left: 26px; }
.acc-body li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 12px; height: 1.5px; background: var(--accent); }
.acc-body p:last-child { margin: 0; }
.qual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }

/* ---------- Pasos, garantías, cronograma ---------- */
.steps { counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { counter-increment: st; padding: 28px 26px 28px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--line); }
.step::before { content: counter(st); justify-self: start; display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 4px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.step h3 { font-size: 17px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sec-ink .steps, .sec-ink .step { border-color: rgba(255, 255, 255, .14); }
.sec-ink .step p { color: #a8b4b7; }
.sec-ink .step::before { background: #fff; color: var(--ink); }
.guar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.guar-item { padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.guar-item .ic { width: 32px; height: 32px; color: var(--accent-ink); stroke-width: 1.3; }
.guar-item h3 { font-size: 17px; font-weight: 600; }
.guar-item p { margin: 0; font-size: 14.5px; color: var(--muted); }
.sec-ink .guar-item { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.sec-ink .guar-item h3 { color: #fff; }
.sec-ink .guar-item p { color: #a8b4b7; }
.sec-ink .guar-item .ic { color: var(--accent-light); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line-2); }
.tl { position: relative; padding: 38px 18px 0 0; display: grid; gap: 4px; align-content: start; }
.tl::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); }
.tl.is-done::before { background: var(--accent); border-color: var(--accent); }
.tl.is-current::before { background: #fff; border: 5px solid var(--accent); box-shadow: 0 0 0 6px rgba(15, 95, 134, .16); }
.tl.is-done::after { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--accent); }
.tl.is-current::after { right: 50%; }
.tl small { font-size: 13px; color: var(--accent); font-weight: 600; }
.tl h3 { font-size: 16px; font-weight: 600; }
.tl p { margin: 0; font-size: 13.5px; color: var(--muted); }
.progress { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; padding: 20px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); flex-wrap: wrap; }
.progress-bar { flex: 1; min-width: 200px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* ---------- Ubicación ---------- */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.map { position: relative; min-height: 520px; border-radius: var(--r-lg); overflow: hidden; background: #e4e9ec; border: 1px solid var(--line); }
.map-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; background: var(--sand); }
.map-ph-in { max-width: 380px; display: grid; gap: 14px; justify-items: center; }
.map-ph .ic { width: 36px; height: 36px; color: var(--accent-ink); }
.map-ph p { margin: 0; font-size: 14.5px; color: var(--muted); }
.map .leaflet-container { position: absolute; inset: 0; font-family: var(--sans); }
.pois { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 22px; display: grid; align-content: start; }
.poi-cat { padding: 14px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.poi { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.poi:last-child { border-bottom: 0; }
.poi b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.poi small { color: var(--muted); font-weight: 500; }
.mk { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); display: grid; place-items: center; }
.mk span { transform: rotate(45deg); color: #fff; font-size: 13px; font-weight: 700; }
.mk-main { width: 46px; height: 46px; background: var(--accent); }
.mk-main span { font-size: 18px; }
.mk-poi { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transform: none; }
.zone-imgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.zone-imgs figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; }
.zone-imgs img { width: 100%; height: 100%; object-fit: cover; }
.zone-imgs figcaption { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 13.5px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* ---------- Bandas de imagen ---------- */
.band { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.band-media { position: absolute; inset: 0; z-index: -2; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 22, 29, .78) 0%, rgba(10, 22, 29, .35) 55%, rgba(10, 22, 29, .1) 100%); }
.band-in { padding-block: clamp(56px, 7vw, 96px); }
.band .h2 { max-width: 20ch; }
.band p { max-width: 52ch; color: rgba(255, 255, 255, .88); margin: 16px 0 28px; font-size: 17px; }

/* Ventajas comprar sobre plano / empresa */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar { padding: 32px 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.pillar .ic { width: 34px; height: 34px; color: var(--accent-ink); stroke-width: 1.3; }
.pillar h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }
.media-r { border-radius: var(--r-lg); overflow: hidden; }
.media-r img { width: 100%; height: 100%; object-fit: cover; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-32 { aspect-ratio: 3 / 2; }

/* Promoción próxima / entregada */
.soon-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.soon-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 22, 29, .5), rgba(10, 22, 29, .1) 40%, rgba(10, 22, 29, .78)); }
.soon-hero .hero-media img { animation: none; }

/* Mi selección / comparador */
.cmp { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; }
.cmp table { min-width: 640px; font-size: 14.5px; }
.cmp th, .cmp td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { vertical-align: bottom; }
.cmp tbody th { font-weight: 500; color: var(--muted); width: 200px; white-space: nowrap; }
.cmp td b { font-weight: 600; }
.cmp-head { display: grid; gap: 8px; }
.cmp-head img { width: 100%; max-width: 220px; aspect-ratio: 4 / 3; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; background: #fff; }
.cmp-head a { font-size: 18px; font-weight: 600; text-decoration: none; }
.cmp .best { color: var(--ok); }
.empty { padding: 64px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: #fff; display: grid; gap: 16px; justify-items: center; }
.empty .ic { width: 40px; height: 40px; color: var(--accent); }

/* Lista de precios imprimible */
.pl-table { font-size: 14px; }
.pl-table th, .pl-table td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.pl-table thead th { font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.pl-table td.r, .pl-table th.r { text-align: right; }
.pl-table .blk td { background: var(--sand); font-weight: 700; font-size: 14px; }
.pl-table a { text-decoration: none; font-weight: 600; }
.print-only { display: none; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.nf .display { color: var(--accent); }

/* =============================================================================
   Interacción y movimiento
   Todo lo que se mueve respeta «reducir movimiento» del sistema.
   ============================================================================= */

/* Barra de progreso de lectura bajo la cabecera */
.hdr-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; transition: opacity .3s; }
.site-header.is-over:not(.is-scrolled) .hdr-prog { opacity: 0; }

/* Indicador que se desliza entre pestañas */
.has-ind { position: relative; }
.tab-ind { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px; background: var(--accent); pointer-events: none; transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .2s; }
.tabs-line.has-ind .tab[aria-selected='true'], .subnav nav.has-ind a.is-active { box-shadow: none; }

/* Flechas que avanzan, tarjetas que se elevan */
.btn .ic-arrow, .link .ic-arrow, .mega-all .ic-arrow { transition: transform .35s var(--ease-out); }
.btn:hover .ic-arrow, .link:hover .ic-arrow, .mega-all:hover .ic-arrow, .promo-card:hover .ic-arrow { transform: translateX(4px); }
.btn .ic-arrow-l { transition: transform .35s var(--ease-out); }
.btn:hover .ic-arrow-l { transform: translateX(-4px); }
.promo-card:hover, .typo-card:hover, .ucard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.guar-item, .pillar { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
a.guar-item:hover, .pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-accent:hover { box-shadow: 0 10px 24px -8px rgba(15, 95, 134, .55); }

/* Favoritos: corazón y contador con rebote */
.u-fav.is-on .ic, .act-fav-btn.is-on .ic { animation: heart-pop .5s var(--ease-spring); }
@keyframes heart-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } }
.fav-count.bump { animation: bump .55s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* Distintivo de lanzamiento con pulso */
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Buscador visual ---------- */
.finder { overflow-x: clip; }
.finder-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.finder-ctl .lead { margin: 16px 0 34px; }
.fd { display: grid; gap: 28px; }
.fd-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.fd-group legend, .fd-range-head label { display: block; padding: 0; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 12px; background: var(--sand); border: 1px solid var(--line); isolation: isolate; }
.seg::before { content: ''; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(15, 30, 43, .12), 0 0 0 1px rgba(15, 30, 43, .04); transition: transform .5s var(--ease-out); }
.seg:has(label:nth-child(2) input:checked)::before { transform: translateX(100%); }
.seg:has(label:nth-child(3) input:checked)::before { transform: translateX(200%); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 42px; padding: 0 6px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-align: center; line-height: 1.15; transition: color .3s; }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { color: var(--ink); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 9px; }
.fd-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fd-type { position: relative; cursor: pointer; }
.fd-type input { position: absolute; opacity: 0; pointer-events: none; }
.fd-type > span { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; height: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .25s, box-shadow .3s var(--ease-out), background-color .25s; }
.fd-type .ic { grid-row: span 2; width: 26px; height: 26px; color: var(--muted); stroke-width: 1.4; transition: color .25s, transform .5s var(--ease-spring); }
.fd-type b { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.fd-type small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.fd-type:hover > span { border-color: var(--ink-3); }
.fd-type input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.fd-type input:checked + span .ic { color: var(--accent); transform: scale(1.12); }
.fd-type input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fd-range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fd-range-head output { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.fd input[type='range'] { display: block; margin: 12px 0 0; }
.fd-range-scale { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.finder-out { position: relative; padding: clamp(20px, 3vw, 40px); border-radius: var(--r-lg); background: var(--sand); border: 1px solid var(--line); }
.bmap { --cell-h: clamp(40px, 4.4vw, 62px); display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); align-items: end; }
.bmap-floors { display: grid; grid-template-rows: repeat(3, var(--cell-h)); gap: 6px; padding-bottom: 35px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.bmap-floors span { display: flex; align-items: center; }
.bmap-blk { display: grid; min-width: 0; }
.bmap-roof { height: 8px; margin: 0 10px 0; border-radius: 6px 6px 0 0; background: var(--line-2); }
.bmap-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, var(--cell-h)); gap: 6px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.bmap-name { display: flex; align-items: flex-end; justify-content: center; height: 28px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.bm-cell { position: relative; display: block; border-radius: 6px; background: var(--sand-2); transition: background-color .4s var(--ease), opacity .4s, transform .35s var(--ease-out), box-shadow .3s; }
.bm-cell.is-match { background: var(--accent); }
.bm-cell.is-match:hover, .bm-cell.is-match:focus-visible { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 8px 16px -4px rgba(15, 95, 134, .45); }
.bm-cell.is-taken { background: repeating-linear-gradient(-45deg, #d9dfe3 0 4px, #eef1f3 4px 8px); }
.bm-cell.is-off { opacity: .5; }
.bm-cell.pop { animation: cell-pop .55s var(--ease-spring); }
@keyframes cell-pop { 40% { transform: scale(1.14); } }
.bm-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; translate: -50% 0; width: max-content; max-width: 220px; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.45; text-align: left; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease-out), visibility .2s; }
.bm-tip b { display: block; font-size: 13.5px; font-weight: 600; }
.bm-cell:hover .bm-tip, .bm-cell:focus-visible .bm-tip { opacity: 1; visibility: visible; transform: none; }
.bmap-blk:nth-child(2) .bm-cell:nth-child(4n+1) .bm-tip { left: 0; translate: 0 0; }
.bmap-blk:last-child .bm-cell:nth-child(4n) .bm-tip { left: auto; right: 0; translate: 0 0; }
.bmap-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.bmap-legend span { display: inline-flex; align-items: center; gap: 8px; }
.bmap-legend i { width: 14px; height: 14px; border-radius: 4px; }
.lg-match { background: var(--accent); }
.lg-off { background: var(--sand-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.lg-taken { background: repeating-linear-gradient(-45deg, #cfd7dc 0 3px, #eef1f3 3px 6px); }
.finder-res { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.finder-res p { margin: 0; display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: center; }
.fr-count { grid-row: span 2; min-width: 1.15em; font-size: clamp(44px, 4.4vw, 62px); font-weight: 600; line-height: .9; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
[data-fd-label] { align-self: end; font-size: 17px; font-weight: 600; color: var(--ink); }
.finder-res small { align-self: start; font-size: 14px; color: var(--muted); }
.finder-res .btn:disabled { opacity: .45; pointer-events: none; }

/* ---------- Carrusel arrastrable ---------- */
.car-sec { overflow: hidden; }
.car-nav { display: flex; gap: 10px; flex: none; }
.car-btn { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); transition: background-color .25s, color .25s, border-color .25s, opacity .25s, transform .4s var(--ease-out); }
.car-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.car-btn:active:not(:disabled) { transform: scale(.94); }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-track { --pad: max(var(--gut), calc((100vw - 1360px) / 2 + var(--gut))); display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding-inline: var(--pad); scrollbar-width: none; cursor: grab; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline-offset: -2px; }
.car-track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.car-item { flex: none; width: clamp(240px, 25vw, 380px); margin: 0; scroll-snap-align: start; }
.car-wide { width: clamp(300px, 43vw, 660px); }
.car-item .gal-item { display: block; width: 100%; height: clamp(320px, 34vw, 520px); border-radius: var(--r-lg); cursor: inherit; }
.car-item .gal-cap { display: none; }
.car-item figcaption { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; padding-top: 14px; }
.car-item figcaption b { font-size: 15.5px; font-weight: 600; }
.car-item figcaption small { grid-column: 2; font-size: 13.5px; color: var(--muted); }
.car-n { font-size: 12px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.car-foot { display: flex; align-items: center; gap: 28px; margin-top: 30px; }
.car-foot p { flex: 1; margin: 0; }
.car-bar { position: relative; flex: 0 0 min(220px, 28%); height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.car-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(.08); transition: transform .25s var(--ease-out); }

/* ---------- Bandeja flotante del comparador ---------- */
.cmp-tray { position: fixed; left: 50%; bottom: 22px; z-index: 95; display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px); padding: 10px 10px 10px 20px; border-radius: 16px; background: rgba(15, 30, 43, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; box-shadow: 0 24px 48px -12px rgba(15, 30, 43, .45); translate: -50% 0; transform: translateY(calc(100% + 40px)); opacity: 0; transition: transform .6s var(--ease-out), opacity .3s; }
.cmp-tray.is-on { transform: none; opacity: 1; }
.ct-label { display: grid; flex: none; line-height: 1.25; }
.ct-label b { font-size: 14px; font-weight: 600; }
.ct-label small { font-size: 12px; color: #a8b4b7; }
.ct-items { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ct-item { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 4px 0 12px; border-radius: 9px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 500; white-space: nowrap; }
.ct-item button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: #c5cfd1; font-size: 18px; line-height: 1; }
.ct-item button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ct-hint { padding-right: 10px; font-size: 13px; color: #a8b4b7; white-space: nowrap; }
body:has(.cmp-tray.is-on) .toast { bottom: 96px; }
body:has(.cmp-tray.is-on) .wa-float { bottom: 96px; }
.wa-float { transition: transform .25s var(--ease), bottom .5s var(--ease-out); }

/* ---------- Revelados, parallax y entradas (solo si el sistema permite movimiento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; }
  .rv.in { animation: rv-in 1s var(--ease-out) var(--d, 0ms) both; }
  @keyframes rv-in { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

  .rv-split .sw, .hero .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
  .rv-split .swi, .hero .swi { display: inline-block; }
  .rv-split .swi { translate: 0 110%; }
  .rv-split.in .swi { animation: word-up 1.05s var(--ease-out) calc(var(--i) * 45ms) both; }
  .hero .swi { animation: word-up 1.15s var(--ease-out) calc(var(--i) * 60ms + 200ms) both; }
  @keyframes word-up { from { translate: 0 110%; } to { translate: 0 0; } }

  .rv-img { clip-path: inset(14% 0 0 0); }
  .rv-img img { scale: 1.18; }
  .rv-img.in { animation: clip-up 1.4s var(--ease-out) both; }
  .rv-img.in img { animation: img-settle 1.8s var(--ease-out) both; }
  @keyframes clip-up { from { clip-path: inset(14% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes img-settle { from { scale: 1.18; } to { scale: 1; } }

  .img-wait { opacity: 0; }
  .img-in { animation: fade .8s var(--ease-out); }

  .px { will-change: transform; }
  .band-media.px { inset: -18% 0; }

  /* Entrada de la portada */
  .hero-media img { animation: hero-zoom 2.6s var(--ease-out) both; }
  @keyframes hero-zoom { from { scale: 1.14; } to { scale: 1; } }
  .hero-top { animation: fade-up 1s var(--ease-out) .1s both; }
  .hero-sub { animation: fade-up 1s var(--ease-out) .8s both; }
  .hero-ctas { animation: fade-up 1s var(--ease-out) .95s both; }
  .hero-facts { animation: fade-up 1s var(--ease-out) 1.1s both; }
  @keyframes fade-up { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

  /* Entrada de cabeceras de página */
  :is(.page-head, .unit-head, .promo-head) :is(.crumbs, .h1, .display, .lead, .promo-title, .unit-title, .unit-specs, .keyfacts) { animation: fade-up .9s var(--ease-out) both; }
  :is(.page-head, .unit-head, .promo-head) :is(.h1, .display, .promo-title, .unit-title) { animation-delay: .06s; }
  :is(.page-head, .unit-head, .promo-head) :is(.lead, .unit-specs) { animation-delay: .14s; }
  .promo-head .keyfacts { animation-delay: .22s; }
  .unit-title .h1, .promo-title .h1 { animation: none; }

  /* Transiciones entre páginas */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 14px; } }
  ::view-transition-group(unit-plan), ::view-transition-group(promo-hero) { animation-duration: .65s; animation-timing-function: var(--ease-out); }
  ::view-transition-old(unit-plan), ::view-transition-new(unit-plan), ::view-transition-old(promo-hero), ::view-transition-new(promo-hero) { height: 100%; object-fit: cover; }
  #vp-plano .plan-stage { view-transition-name: unit-plan; }
  .mosaic .gal-item:first-child, .soon-hero .hero-media { view-transition-name: promo-hero; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pulse::after { display: none; }
}


/* ---------- Leaflet (ajustes) ---------- */
.leaflet-div-icon { background: none !important; border: 0 !important; }
.leaflet-popup-content-wrapper { border-radius: var(--r) !important; font-family: var(--sans); }
.leaflet-popup-content { margin: 12px 16px !important; font-size: 14px; line-height: 1.45; }
.leaflet-popup-content b { font-size: 15px; font-weight: 600; display: block; }

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 1280px) {
  .hdr-phone span { display: none; }
  .hdr-nav > a, .nav-dd-btn { padding: 0 9px; font-size: 15px; }
  .keyfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .keyfact:nth-child(4) { border-left: 0; }
  .keyfact:nth-child(n+4) { border-top: 1px solid var(--line); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .unit-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .viewer-body { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 1100px) {
  :root { --hdr-h: 68px; }
  .hdr-nav, .hdr-phone { display: none; }
  .hdr-burger { display: inline-flex; }
  .hdr-actions { margin-left: auto; }
  .ftr-main { grid-template-columns: 1fr 1fr; }
  .ftr-vip-in { grid-template-columns: 1fr; gap: 28px; }
  .grid-4, .guar, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .typo-grid, .ucards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch { grid-template-columns: 1fr; }
  .launch-media .m2 { right: 16px; }
  .hero-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px 48px; }
  .qsearch-in { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .qs-title { display: none; }
  .sel-visual { grid-template-columns: 1fr; }
  .sel-site { display: grid; grid-template-columns: minmax(0, 1fr); }
  .unit-layout { grid-template-columns: minmax(0, 1fr); }
  .price-box { position: static; }
  .unit-aside { order: -1; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tl { padding: 0 0 28px 40px; }
  .tl::before { top: 2px; }
  .tl.is-done::after { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tl.is-current::after { bottom: 50%; right: auto; }
  .loc-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .zone-imgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; }
  .calc-gastos .calc-detail { grid-template-columns: 1fr; }
  .subnav-price { display: none; }
}
@media (max-width: 860px) {
  .split, .split-7-5, .split-5-7, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .pillars { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
  .feat, .feat:not(:nth-child(3n+1)) { padding: 26px 20px 26px 0; border-left: 0; }
  .feat:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .sec-ink .feat:nth-child(2n) { border-color: rgba(255, 255, 255, .12); }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 70vh; min-height: 380px; }
  .mosaic .gal-item:first-child { grid-column: span 2; grid-row: auto; }
  .mosaic .gal-item:nth-child(n+4) { display: none; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .viewer-body { grid-template-columns: 1fr; }
  .room-side { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .plan-stage { min-height: 300px; }
  .paysteps { grid-template-columns: 1fr 1fr; }
  .paystep:nth-child(3) { border-left: 0; }
  .paystep:nth-child(n+3) { border-top: 1px solid var(--line); }
  .amb-grid { grid-template-columns: 1fr; }
  .situ-grid { grid-template-columns: 1fr; }
  .render-grid { grid-template-columns: 1fr 1fr; }
  .qual-grid { grid-template-columns: 1fr; }
  .typo-panel { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .fl-actions { grid-column: 1 / -1; justify-content: space-between; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .dock { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: var(--r-sm); text-decoration: none; font-size: 14px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink); }
  .dock a .ic { width: 18px; height: 18px; }
  .dock .dock-main { background: var(--accent); border-color: var(--accent); color: #fff; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .wa-float { display: none; }
  .consent { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .hdr-cta { display: none; }
  .logo-name { font-size: 18.5px; }
  .logo-mark { width: 36px; height: 36px; }
  .hero { min-height: 100svh; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .qsearch-in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; }
  .qs-field { border-bottom: 1px solid var(--line); padding: 14px var(--gut); }
  .qs-field:nth-child(odd) { border-right: 0; }
  .qs-go { grid-column: 1 / -1; padding: 14px var(--gut); }
  .qs-go .btn { width: 100%; }
  .typo-grid, .ucards, .guar, .stats, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: 1fr; }
  .feat:nth-child(2n), .feat { padding: 22px 0; border-left: 0; }
  .ftr-main { grid-template-columns: 1fr; gap: 32px; }
  .ftr-legal { grid-template-columns: 1fr; }
  .vip-row { flex-direction: column; }
  .keyfacts { grid-template-columns: 1fr 1fr; }
  .keyfact:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .keyfact:nth-child(2n) { border-left: 1px solid var(--line); }
  .keyfact:nth-child(-n+2) { border-top: 0; }
  .promo-price { text-align: left; }
  .subnav-cta .btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
  .subnav nav a { padding: 15px 9px; font-size: 14px; }
  .filters { grid-template-columns: 1fr 1fr; padding: 14px; }
  .units-tbl { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-specs { gap: 10px 18px; font-size: 14.5px; }
  .pb-price { font-size: 36px; }
  .paysteps { grid-template-columns: 1fr; }
  .paystep + .paystep { border-left: 0; border-top: 1px solid var(--line); }
  .render-grid { grid-template-columns: 1fr; padding: 12px; }
  .render-grid .gal-item:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .viewer-tabs .tab { margin-right: 18px; font-size: 14px; }
  .plan-tools { right: 8px; top: 8px; }
  .plan-tools button, .plan-tools a { width: 36px; height: 36px; }
  .zone-imgs { grid-template-columns: 1fr 1fr; }
  .map { min-height: 380px; }
  .band { min-height: 480px; }
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -62px; translate: none; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
  .lb-cap { padding-inline: 80px; }
  .pillars { grid-template-columns: 1fr; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
  .gal-cap { opacity: 1 !important; font-size: 12.5px; padding: 24px 10px 8px; }
  .situ { padding: 12px; }
}
@media (min-width: 721px) {
  .units-cards-m { display: none; }
}

/* ---------- ¿Qué quieres hacer? ---------- */
.quick { padding-block: clamp(36px, 5vw, 56px); background: var(--sand); border-bottom: 1px solid var(--line); }
.quick-title { margin-bottom: 20px; font-size: clamp(23px, 2.1vw, 29px); font-weight: 600; letter-spacing: -.02em; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.quick-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: center; min-height: 104px; padding: 22px 50px 22px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .25s, box-shadow .4s var(--ease-out), transform .4s var(--ease-out); }
.quick-card > .ic:first-child { grid-row: span 2; width: 32px; height: 32px; color: var(--accent); stroke-width: 1.5; }
.quick-card b { font-size: 18.5px; font-weight: 600; line-height: 1.25; }
.quick-card span { font-size: 15px; line-height: 1.4; color: var(--muted); }
.quick-card > .ic-arrow { position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--accent); transition: transform .35s var(--ease-out); }
.quick-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.quick-card:hover > .ic-arrow { transform: translateX(4px); }
.quick-call { background: var(--ink); border-color: var(--ink); color: #fff; }
.quick-call span { color: #c3cdd0; }
.quick-call > .ic, .quick-call > .ic-arrow { color: var(--accent-light); }
.quick-call:hover { border-color: var(--ink); }

/* ---------- Cómo va mi casa ---------- */
.mh-head { padding-bottom: clamp(20px, 3vw, 32px); }
.mh-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.mh-updated { display: inline-flex; align-items: baseline; gap: 10px; margin: 18px 0 0; font-size: 15px; font-weight: 500; color: var(--ink-3); }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: pulse 2.2s var(--ease-out) infinite; }
.mh-code { padding: 22px 24px; border-radius: var(--r-lg); background: var(--sand); border: 1px solid var(--line); }
.mh-code label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.mh-code-row { display: flex; gap: 10px; }
.mh-code-row input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 17px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.mh-code-row input::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; color: #7c878e; }
.mh-code-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mh-code-row .btn { min-height: 52px; }
.mh-code-msg { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
.mh-code.is-error input { border-color: var(--sold); box-shadow: 0 0 0 3px var(--sold-soft); }
.mh-code.is-error .mh-code-msg { color: var(--sold); font-weight: 600; }
.mh-demo { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 15.5px; }
.mh-demo .ic { width: 22px; height: 22px; flex: none; }
.mh-demo-own { background: var(--ok-soft); color: var(--ok); }

.mh-sec { scroll-margin-top: 140px; }
.mh-sec-head { margin-bottom: 26px; max-width: 760px; }
.mh-sec-head .lead { margin-top: 10px; }
.mh-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 32px); }
.mh-kicker { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--accent); }
.mh-sub { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.mh-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 16px; }
.mh-bar { position: relative; display: block; height: 10px; border-radius: 6px; background: var(--sand-2); overflow: hidden; }
.mh-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--accent); }
.mh-bar-sm { height: 7px; }
.mh-bar-lg { height: 14px; border-radius: 8px; }

/* Resumen y cámara */
.mh-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.mh-home-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.mh-plan { flex: none; width: 128px; aspect-ratio: 4 / 3.3; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .25s, transform .4s var(--ease-out); }
.mh-plan:hover { border-color: var(--accent); transform: translateY(-2px); }
.mh-plan img { width: 100%; height: 100%; object-fit: contain; }
.mh-ring-row { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); margin-top: 26px; }
.mh-ring { position: relative; flex: none; width: 160px; height: 160px; }
.mh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mh-ring circle { fill: none; stroke-width: 11; }
.mh-ring-bg { stroke: var(--sand-2); }
.mh-ring-fg { stroke: var(--accent); stroke-linecap: round; }
.mh-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mh-ring b { font-size: 38px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.mh-ring small { font-size: 14px; color: var(--muted); margin-top: 4px; }
.mh-facts { display: grid; gap: 14px; margin: 0; }
.mh-facts dt { font-size: 14px; color: var(--muted); }
.mh-facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mh-facts dd small { font-size: 14px; font-weight: 500; color: var(--accent); }

.mh-cam { padding: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--ink); border-color: var(--ink); }
.mh-cam-view { position: relative; flex: 1; min-height: 320px; background: #0b1620; }
.mh-cam-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, filter .35s; }
.mh-cam-view img.is-switch { opacity: .15; filter: blur(4px); }
.mh-cam-view::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 22%, transparent 75%, rgba(0, 0, 0, .55)); }
.mh-live, .mh-clock, .mh-cam-name { position: absolute; z-index: 1; color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.mh-live { left: 16px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 9px; border-radius: 6px; background: rgba(197, 37, 37, .92); text-shadow: none; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.mh-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.mh-clock { right: 16px; top: 16px; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: pre; }
.mh-cam-name { left: 16px; bottom: 14px; }
.mh-cam-bar { display: grid; gap: 12px; padding: 14px 16px 16px; }
.mh-cam-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mh-cam-btns button { min-height: 42px; padding: 0 14px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #dfe6e8; font-size: 15px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.mh-cam-btns button:hover { border-color: rgba(255, 255, 255, .5); }
.mh-cam-btns button[aria-pressed='true'] { background: #fff; border-color: #fff; color: var(--ink); font-weight: 600; }
.mh-cam-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; color: #b9c4c7; }
.mh-cam-status .ic { width: 18px; height: 18px; }
.mh-cam-status.is-on { color: #8fe0b4; }

.mh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 20px 0 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.mh-stats > div { padding: 18px 22px; }
.mh-stats > div + div { border-left: 1px solid var(--line); }
.mh-stats dt { font-size: 14px; color: var(--muted); }
.mh-stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }

/* Etapas */
.mh-steps-bar { height: 12px; border-radius: 7px; background: var(--sand-2); overflow: hidden; margin-bottom: 26px; }
.mh-steps-bar span { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--accent-ink), var(--accent)); }
.mh-steps { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.mh-step { display: grid; gap: 6px; align-content: start; padding: 18px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.mh-step-dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sand-2); color: var(--muted); font-size: 15px; font-weight: 700; }
.mh-step-dot .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.mh-step b { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.mh-step small { font-size: 14px; color: var(--muted); }
.mh-step.is-done .mh-step-dot { background: var(--accent); color: #fff; }
.mh-step.is-now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.mh-step.is-now .mh-step-dot { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.mh-step.is-now small { color: var(--accent-ink); font-weight: 600; }
.mh-step.is-todo { background: transparent; }

/* Edificio */
.mh-bld-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.mh-bld { padding: 26px 26px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.mh-bld-roof { height: 12px; margin: 0 64px 8px 168px; border-radius: 8px 8px 0 0; background: var(--line-2); }
.mh-floor { display: grid; grid-template-columns: 160px minmax(0, 1fr) 56px; align-items: center; gap: 8px; padding: 6px 0; }
.mh-floor-name { display: grid; font-size: 15.5px; font-weight: 600; color: var(--ink-3); line-height: 1.25; }
.mh-floor-name em { justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: var(--sun); color: var(--ink); font-size: 12.5px; font-style: normal; font-weight: 700; }
.mh-floor-bar { position: relative; height: 54px; border-radius: 8px; background: repeating-linear-gradient(-45deg, #eef1f3 0 6px, #f6f8f9 6px 12px); border: 1px dashed var(--line-2); overflow: hidden; }
.mh-floor-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #a9b6be, #8c9ba5); }
.mh-floor.is-mine .mh-floor-bar { border: 2px solid var(--sun); }
.mh-floor.is-mine .mh-floor-bar i { background: linear-gradient(180deg, #1a77a3, var(--accent)); }
.mh-floor > b { white-space: nowrap; font-size: 16px; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.mh-floor-base { margin-top: 8px; padding-top: 14px; border-top: 3px solid var(--ink-3); }
.mh-floor-base .mh-floor-bar { height: 34px; }
.mh-blocks .h4 { margin-bottom: 14px; }
.mh-blk { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mh-blk-top { display: flex; justify-content: space-between; font-size: 16px; }
.mh-blk-top span { font-weight: 700; font-variant-numeric: tabular-nums; }
.mh-blk small { font-size: 14px; color: var(--muted); }
.mh-blk:not(.is-mine) .mh-bar i { background: #8c9ba5; }
.mh-phases { list-style: none; display: grid; gap: 10px; }
.mh-phases li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 46px; align-items: center; gap: 12px; font-size: 15px; }
.mh-phases b { text-align: right; font-variant-numeric: tabular-nums; }

/* Diario */
.mh-diary { list-style: none; position: relative; display: grid; gap: 22px; }
.mh-diary::before { content: ''; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.mh-entry { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 40px; }
.mh-entry::before { content: ''; position: absolute; left: 144px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.mh-entry time { padding-top: 2px; font-size: 15px; font-weight: 600; color: var(--ink-3); line-height: 1.35; }
.mh-entry-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.mh-entry-card .gal-item { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 12px; }
.mh-entry-card .gal-cap { display: none; }
.mh-entry-txt { padding-right: 12px; }
.mh-entry-txt .badge { margin-bottom: 8px; }
.mh-entry-txt h3 { font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.mh-entry-txt p { margin: 8px 0 0; color: var(--ink-3); font-size: 16px; }

/* Pagos */
.mh-pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.mh-paid p { margin: 0 0 14px; font-size: 18px; }
.mh-paid b { font-size: 26px; letter-spacing: -.02em; }
.mh-paid small { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.mh-next { display: flex; gap: 18px; align-items: flex-start; margin-top: 16px; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mh-next p { margin: 0; font-size: 15.5px; color: var(--ink-3); }
.mh-next-amt { font-size: 30px !important; font-weight: 600; letter-spacing: -.02em; color: var(--ink) !important; margin: 2px 0 4px !important; }
.mh-next-ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.mh-next-ic .ic { width: 26px; height: 26px; }
.mh-pay-list { padding: 8px 18px; }
.mh-pay-list .dtable { font-size: 15.5px; }
.mh-pay-list .dtable td:last-child, .mh-pay-list .dtable th:last-child { white-space: nowrap; }
.mh-pay-list td small { display: block; font-size: 13px; font-weight: 600; color: var(--ok); }
.mh-pay-list tr.is-next td small { color: var(--accent); }
.mh-pay-list tr.is-next td { background: var(--accent-soft); }
.mh-pay-list tr.is-todo td { color: var(--muted); }
.mh-pay-st { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; vertical-align: -5px; border-radius: 50%; }
.mh-pay-st:empty { display: none; }
tr.is-paid .mh-pay-st { background: var(--ok); color: #fff; }
.mh-pay-st .ic { width: 14px; height: 14px; stroke-width: 2.6; }

/* Acabados y documentos */
.mh-doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.mh-amb .h3 small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.mh-amb ul { list-style: none; margin-top: 12px; }
.mh-amb li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.mh-amb li span { color: var(--muted); }
.mh-amb li b { font-weight: 600; text-align: right; }
.mh-docs { list-style: none; padding: 6px 22px; }
.mh-docs li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mh-docs li:last-child { border-bottom: 0; }
.mh-docs .ic { width: 26px; height: 26px; color: var(--accent-ink); stroke-width: 1.4; }
.mh-docs b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.mh-docs small { font-size: 14px; color: var(--muted); }

/* Visita y contacto */
.mh-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mh-visit, .mh-person { display: flex; gap: 20px; align-items: flex-start; }
.mh-visit p, .mh-person p { color: var(--ink-3); font-size: 16px; }
.mh-visit .mh-sub, .mh-person .mh-sub { margin: 2px 0 12px; }
.mh-av { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .02em; }

@media (prefers-reduced-motion: no-preference) {
  .mh-ring-fg { animation: ring-in 1.8s var(--ease-out) .3s both; }
  @keyframes ring-in { from { stroke-dashoffset: var(--c); } }
  .mh-steps-bar span, .mh-bar i, .mh-floor-bar i { animation: bar-in 1.4s var(--ease-out) .2s both; transform-origin: 0 50%; }
  @keyframes bar-in { from { transform: scaleX(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot::after { display: none; }
  .mh-live i { animation: none; }
}
@media (max-width: 1100px) {
  .mh-top, .mh-hero, .mh-bld-grid, .mh-pay-grid, .mh-doc-grid { grid-template-columns: minmax(0, 1fr); }
  .mh-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mh-cam-view { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .mh-code { padding: 18px; }
  .mh-code-row { flex-direction: column; }
  .mh-code-row input { flex: none; }
  .mh-home-top { flex-direction: column-reverse; }
  .mh-plan { width: 110px; }
  .mh-ring-row { flex-direction: column; align-items: flex-start; }
  .mh-ring { width: 140px; height: 140px; }
  .mh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-stats > div:nth-child(3) { border-left: 0; }
  .mh-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mh-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mh-step { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; padding: 12px 14px; }
  .mh-step-dot { grid-row: span 2; }
  .mh-bld { padding: 18px 14px; }
  .mh-bld-roof { margin-left: 96px; margin-right: 58px; }
  .mh-floor { grid-template-columns: 88px minmax(0, 1fr) 50px; }
  .mh-floor > b { font-size: 15px; }
  .mh-floor-name { font-size: 14px; }
  .mh-floor-bar { height: 44px; }
  .mh-phases li { grid-template-columns: minmax(0, 1fr) 70px 40px; font-size: 14.5px; }
  .mh-diary::before { left: 6px; }
  .mh-entry { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-left: 28px; }
  .mh-entry::before { left: 0; }
  .mh-entry-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mh-entry-txt { padding: 0 4px 6px; }
  .mh-pay-list { padding: 4px 10px; overflow-x: auto; }
  /* En móvil cada pago ocupa dos líneas: concepto y fecha a la izquierda, importe a la derecha */
  .mh-pay-list .dtable thead { display: none; }
  .mh-pay-list .dtable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .mh-pay-list .dtable tbody tr:last-child { border-bottom: 0; }
  .mh-pay-list .dtable th, .mh-pay-list .dtable td { padding: 0; border: 0; }
  .mh-pay-list .dtable tbody td:nth-child(1) { grid-area: 1 / 1; }
  .mh-pay-list .dtable tbody td:nth-child(2) { grid-area: 2 / 1; margin-top: 2px; font-size: 14px; color: var(--muted); }
  .mh-pay-list .dtable tbody td:nth-child(3) { grid-area: 1 / 2 / 3 / 3; }
  .mh-pay-list tr.is-next { margin: 0 -10px; padding-inline: 18px; background: var(--accent-soft); }
  .mh-pay-list tr.is-next td { background: none; }
  .mh-pay-list .dtable tfoot tr { padding-top: 14px; border-top: 1px solid var(--line-2); border-bottom: 0; }
  .mh-docs { padding: 4px 16px; }
  .mh-docs li { grid-template-columns: auto minmax(0, 1fr); }
  .mh-docs li > :last-child { grid-column: 2; justify-self: start; }
  .mh-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .mh-visit, .mh-person { flex-direction: column; }
}

/* Componentes interactivos en tableta y móvil */
@media (max-width: 1100px) {
  .finder-in { grid-template-columns: minmax(0, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-wide { width: clamp(300px, 60vw, 600px); }
  .car-item { width: clamp(240px, 38vw, 380px); }
}
@media (max-width: 720px) {
  .fd-types { grid-template-columns: minmax(0, 1fr); }
  .quick-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .quick-card { min-height: 0; padding: 16px 46px 16px 16px; }
  .seg span { padding: 0 2px; font-size: 13.5px; }
  .fd-type > span { padding: 12px 14px; }
  .bmap { --cell-h: 38px; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bmap-floors { display: none; }
  .bmap-cells { gap: 4px; padding: 4px; border-radius: 9px; }
  .bm-cell { border-radius: 4px; }
  .finder-res .btn { width: 100%; }
  .car-nav { display: none; }
  .car-item { width: 70vw; }
  .car-wide { width: 86vw; }
  .car-item .gal-item { height: 92vw; max-height: 440px; }
  .car-foot { flex-wrap: wrap; gap: 14px 20px; }
  .car-bar { flex-basis: 100%; }
  .cmp-tray { bottom: calc(74px + env(safe-area-inset-bottom)); width: calc(100% - 20px); max-width: none; padding: 8px 8px 8px 14px; gap: 10px; }
  .ct-label small { display: none; }
  body:has(.cmp-tray.is-on) .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
}
@media (hover: none) { .bm-tip { display: none; } }

/* =============================================================================
   Impresión (fichas, lista de precios y memoria de calidades)
   ============================================================================= */
@media print {
  @page { margin: 14mm 12mm; size: A4; }
  :root { --hdr-h: 0px; }
  body { background: #fff; font-size: 10.5pt; padding: 0 !important; color: #000; }
  body:not(.has-hero) main { padding-top: 0; }
  .site-header, .site-footer, .dock, .wa-float, .consent, .toast, .subnav, .mnav, .no-print, .plan-tools, .plan-hint, .pb-ctas, .pb-acts, .pb-agent, .crumbs, .unit-nav, .viewer-tabs, .viewer-foot, .room-side, form, .calc, .upg, .amb-grid, .similar, .lb { display: none !important; }
  .print-only { display: block !important; }
  .wrap { max-width: none; padding: 0; }
  .sec, .sec-sm { padding-block: 16px; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .unit-layout { grid-template-columns: 1fr; padding-top: 8px; }
  .unit-main > section { padding-block: 14px; break-inside: avoid; }
  .unit-main > section.print-skip { display: none; }
  .price-box { position: static; box-shadow: none; border: 1px solid #ccc; }
  .viewer { border: 0; }
  .viewer-body { grid-template-columns: 1fr; min-height: 0; }
  .plan-stage { min-height: 0; overflow: visible; }
  .plan-zoom { transform: none !important; }
  [role='tabpanel'][hidden] { display: none !important; }
  .h1 { font-size: 28pt; }
  .h3 { font-size: 16pt; }
  .print-head { display: flex !important; justify-content: space-between; align-items: center; border-bottom: 1px solid #000; padding-bottom: 8px; margin-bottom: 14px; }
  .pl-table, .dtable { font-size: 9pt; }
  .pl-table th, .pl-table td { padding: 5px 6px; }
  a { text-decoration: none; }
  .acc-body { display: block !important; }
  details > *:not(summary) { display: block !important; }
  .badge { border: 1px solid currentColor; }
}

/* Ayudas según el tipo de puntero */
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
