/* ==========================================================================
   Kiwi Estates — Demo D "Esencial"
   Misma identidad que la web actual (blanco/negro, IvyOra + Montserrat),
   elevada con retícula editorial, escala tipográfica y motion contenido.
   ========================================================================== */

@font-face { font-family: 'Ivy'; src: url('/assets/fonts/IvyOraDisplay-Thin.woff2') format('woff2'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Ivy'; src: url('/assets/fonts/IvyOraDisplay-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Ivy'; src: url('/assets/fonts/IvyOraDisplay-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mont'; src: url('/assets/fonts/Montserrat-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Mont'; src: url('/assets/fonts/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mont'; src: url('/assets/fonts/Montserrat-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --ink: #111;
  --paper: #fff;
  --bone: #f5f4f1;
  --line: #e3e1dc;
  --line-2: #cfccc5;
  --mute: #74716b;
  --night: #151515;
  --pad: clamp(20px, 5vw, 80px);
  --header: 88px;
  --gap: clamp(16px, 2vw, 32px);
  --ease: cubic-bezier(.65, 0, .2, 1);
  --serif: 'Ivy', 'Times New Roman', serif;
  --sans: 'Mont', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
b, strong { font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1.15em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico svg { width: 100%; height: 100%; }

/* ---------- Tipografía ---------- */
.display, .t-title { font-family: var(--serif); font-weight: 200; text-transform: uppercase; letter-spacing: .02em; line-height: .96; margin: 0; }
.display b, .t-title b { font-weight: 400; }
.t-title { font-size: clamp(42px, 6vw, 96px); }
.t-title.sm { font-size: clamp(34px, 4.2vw, 64px); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(20px, 2.4vw, 32px); font-size: 11px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.eyebrow .n { color: var(--ink); font-weight: 600; }
.lead { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.32; letter-spacing: .005em; margin: 0 0 1.2em; }
.prose { max-width: 60ch; }
.prose p { color: #2b2a28; }
.small-caps { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; }
.mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mask > span { display: block; }

/* ---------- Botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 32px; border-radius: 60px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s var(--ease); white-space: nowrap; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper); transform: translateY(101%); transition: transform .55s var(--ease); border-radius: inherit; }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: none; }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost::before { background: var(--ink); }
.btn.ghost:hover { color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light::before { background: var(--ink); }
.btn.light:hover { color: var(--paper); border-color: var(--paper); }
.btn.ghost-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.6); }
.btn.ghost-light::before { background: var(--paper); }
.btn.ghost-light:hover { color: var(--ink); }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link-line { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding-bottom: 6px; }
.link-line::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link-line:hover::after { transform: scaleX(0); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); color: var(--ink); transition: background .5s var(--ease), color .5s var(--ease), height .5s var(--ease), transform .6s var(--ease); }
.header::after { content: ''; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .5s; }
.header.solid { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); height: 72px; }
.header.solid::after { opacity: 1; }
.header.hide { transform: translateY(-100%); }
.header .logo img { height: 30px; width: auto; transition: filter .5s; }
.header .actions { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); font-size: 11.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.header .contact-link { position: relative; padding: 6px 0; text-transform: uppercase; letter-spacing: .2em; }
.header .contact-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.header .contact-link:hover::after { transform: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .2em; }
.menu-btn i { position: relative; width: 28px; height: 8px; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn i::before { top: 0; }
.menu-btn i::after { bottom: 0; left: 8px; }
.menu-btn:hover i::after { transform: translateX(-8px); }
body.has-hero .header:not(.solid) { color: var(--paper); }
body.has-hero .header:not(.solid) .logo img { filter: invert(1); }

/* ---------- Secciones / retícula ---------- */
.section { padding: clamp(88px, 9.5vw, 150px) var(--pad); position: relative; }
.section.bone { background: var(--bone); }
.section.tight { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.wrap { max-width: 1520px; margin: 0 auto; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 6vw, 88px); flex-wrap: wrap; }
.sec-head .aside { max-width: 380px; color: var(--mute); margin: 0; }

.reveal-img { position: relative; overflow: hidden; background: var(--bone); }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; }
.caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }

/* ---------- Hero portada ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; color: var(--paper); overflow: hidden; background: #1b1d1f; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.18) 62%, rgba(0,0,0,.55) 100%); }
.hero-inner { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: var(--header) var(--pad) 0; }
.brand { align-self: center; justify-self: center; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px); }
.brand h1 { margin: 0; font-family: var(--serif); font-weight: 200; font-size: clamp(40px, 7.4vw, 124px); letter-spacing: .1em; line-height: 1; white-space: nowrap; }
.brand h1 b { font-weight: 400; letter-spacing: .02em; }
.brand h1 .ch { display: inline-block; }
.brand h1 .word { display: inline-block; overflow: hidden; padding: .06em 0; vertical-align: bottom; }
.brand h1 .word + .word { margin-left: .16em; }
.brand .sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.85); transform-origin: top; }
.brand .by { font-size: clamp(16px, 2vw, 30px); font-weight: 300; line-height: 1.15; letter-spacing: .02em; }
.brand .by span { display: block; }
.hero-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding-bottom: clamp(24px, 4vh, 44px); font-size: 12px; letter-spacing: .08em; }
.hero-foot .tag { margin: 0; max-width: 420px; line-height: 1.7; font-size: 13px; font-weight: 300; letter-spacing: .03em; }
.hero-foot .tag strong { display: block; font-weight: 400; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 6px; opacity: .85; }
.scroll-cue { display: grid; justify-items: center; gap: 12px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 1px; height: 56px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 45%; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(230%); } }
.hero-foot .loc { justify-self: end; text-align: right; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }

/* ---------- Villa cards ---------- */
.villas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.villa-card { display: flex; flex-direction: column; color: var(--ink); }
.villa-card .img { aspect-ratio: 4 / 5; }
.villa-card .img img { transition: transform 1.4s var(--ease); object-position: 50% 50%; }
.villa-card:hover .img img { transform: scale(1.05); }
.villa-card .badge { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 7px 14px; border-radius: 40px; background: rgba(255,255,255,.94); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.villa-card .badge.muted { background: rgba(17,17,17,.82); color: #fff; }
.villa-card .body { padding-top: 28px; display: grid; gap: 22px; }
.villa-card .head { display: flex; align-items: center; gap: 18px; }
.villa-card .head .ico { width: 54px; height: 54px; flex: none; stroke-width: 1; }
.villa-card h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3vw, 46px); line-height: 1; letter-spacing: .03em; }
.villa-card .code { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }
.villa-card .price { margin-left: auto; text-align: right; font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.1; }
.villa-card .price small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.facts-mini { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-mini li { display: grid; justify-items: start; gap: 8px; font-size: 12px; line-height: 1.3; padding-right: 8px; }
.facts-mini .ico { width: 24px; height: 24px; }
.facts-mini b { font-weight: 400; }
.villa-card .go { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.villa-card .go .arr { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; transition: background .5s var(--ease), color .5s var(--ease), border-color .5s; }
.villa-card:hover .go .arr { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Split editorial ---------- */
.split { align-items: start; row-gap: 56px; }
.split .txt { grid-column: 1 / span 5; }
.split .media { grid-column: 7 / span 6; position: relative; }
.split.rev .txt { grid-column: 8 / span 5; grid-row: 1; }
.split.rev .media { grid-column: 1 / span 6; grid-row: 1; }
.stack { position: relative; padding-bottom: 22%; }
.stack .a { aspect-ratio: 4 / 5; width: 82%; }
.stack .b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border: 10px solid var(--paper); }
.bone .stack .b { border-color: var(--bone); }
.split.rev .stack .a { margin-left: auto; }
.split.rev .stack .b { right: auto; left: 0; }
.sticky-txt { position: sticky; top: calc(var(--header) + 40px); }

/* ---------- Distribución (pin) ---------- */
.dist { background: var(--paper); padding: clamp(72px, 8vw, 120px) var(--pad); }
.dist-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: center; max-width: 1520px; margin: 0 auto; min-height: calc(100vh - 2 * clamp(72px, 8vw, 120px)); }
.floors { list-style: none; margin: 0; padding: 0; counter-reset: fl; }
.floor { position: relative; padding: 22px 0 22px 0; border-top: 1px solid var(--line); cursor: pointer; transition: color .5s; color: #b2afa8; }
.floor:last-child { border-bottom: 1px solid var(--line); }
.floor::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.floor.on { color: var(--ink); }
.floor.on::before { transform: none; }
.floor .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.floor h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.2vw, 34px); text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.floor .m2 { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.8vw, 28px); white-space: nowrap; }
.floor p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; max-width: 44ch; display: grid; grid-template-rows: 0fr; }
.floor .desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease), opacity .6s; opacity: 0; }
.floor .desc > div { overflow: hidden; }
.floor.on .desc { grid-template-rows: 1fr; opacity: 1; }
.floor .desc p { display: block; color: #3a3935; }
.dist-total { display: flex; align-items: baseline; gap: 14px; margin-top: 28px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.dist-total b { font-family: var(--serif); font-weight: 300; font-size: 40px; letter-spacing: 0; color: var(--ink); text-transform: none; }
.section-fig { position: relative; aspect-ratio: 1500 / 824; }
.section-fig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.section-fig .ghost { filter: grayscale(1) contrast(.9); opacity: .28; }
.section-fig .lit { clip-path: inset(0 0 0 0); will-change: clip-path; }
.section-fig .frame { position: absolute; border: 1px solid var(--ink); pointer-events: none; will-change: top, left, width, height; }
.section-fig .frame span { position: absolute; left: -1px; bottom: 100%; padding: 6px 10px; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.dist .progress { display: flex; gap: 8px; margin-top: 28px; }
.dist .progress i { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.dist .progress i b { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* ---------- Galería ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--line-2); border-radius: 60px; }
.tabs button { height: 40px; padding: 0 22px; border-radius: 40px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); transition: background .45s var(--ease), color .45s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs button .c { font-weight: 300; margin-left: 6px; opacity: .7; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 11vw, 190px); gap: 10px; grid-auto-flow: dense; }
.mosaic[hidden] { display: none; }
.mosaic .thumb { position: relative; overflow: hidden; background: var(--line); grid-column: span 4; grid-row: span 2; cursor: zoom-in; }
.mosaic .thumb:nth-child(8n+1) { grid-column: span 8; grid-row: span 4; }
.mosaic .thumb:nth-child(8n+4), .mosaic .thumb:nth-child(8n+5) { grid-column: span 6; grid-row: span 3; }
.mosaic .thumb:nth-child(8n+1):last-child { grid-column: span 12; }
.mosaic .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.mosaic .thumb::after { content: '+'; position: absolute; right: 14px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 20px; font-weight: 300; line-height: 1; opacity: 0; transform: scale(.7); transition: opacity .4s, transform .5s var(--ease); }
.mosaic .thumb:hover img { transform: scale(1.045); }
.mosaic .thumb:hover::after { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto; background: rgba(12,12,12,.97); color: #fff; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; height: 76px; padding: 0 var(--pad); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 clamp(16px, 7vw, 120px); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 180px); max-height: calc(100svh - 180px); object-fit: contain; user-select: none; }
.lightbox.plan .lb-stage { overflow: auto; place-items: start center; }
.lightbox.plan .lb-stage img { background: #fff; cursor: zoom-in; }
.lightbox.plan.zoomed .lb-stage img { max-width: none; max-height: none; width: min(2600px, 220vw); cursor: zoom-out; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transition: background .4s, border-color .4s; z-index: 2; }
.lb-nav:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lb-nav.prev { left: clamp(12px, 2vw, 32px); }
.lb-nav.next { right: clamp(12px, 2vw, 32px); }
.lightbox.single .lb-nav { display: none; }
.lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 76px; padding: 0 var(--pad); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #aaa; }
.lb-foot a { color: #fff; }
.lb-close { display: inline-flex; align-items: center; gap: 12px; letter-spacing: .24em; text-transform: uppercase; }

/* ---------- Localización ---------- */
.loc-grid { align-items: start; row-gap: 56px; }
.loc-grid .txt { grid-column: 1 / span 6; }
.loc-grid .txt .prose { color: var(--mute); max-width: 50ch; hyphens: none; }
.loc-grid .media { grid-column: 8 / span 5; }
.loc-grid .media .reveal-img { aspect-ratio: 4 / 5; }
.loc-grid .media .reveal-img img { object-position: center bottom; }
.near { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 2vw, 32px); }
.near li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.near li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.near span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.near b { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.4vw, 40px); letter-spacing: 0; line-height: 1; white-space: nowrap; }
.near small { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.map { display: block; margin-top: clamp(56px, 7vw, 104px); position: relative; }
.map .reveal-img { display: block; background: #f3f3f3; }
.map-inner { position: relative; aspect-ratio: 2000 / 800; }
.map-inner img { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 35.15%; top: 41%; transform: translate(-50%, calc(-100% - 26px)); display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: var(--ink); color: #fff; border-radius: 50px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.map-pin img { width: 34px; height: 24px; object-fit: contain; filter: invert(1); }
.map-pin::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 26px; background: var(--ink); }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; font-size: 13px; }
.map-foot .addr { display: inline-flex; align-items: center; gap: 12px; }
.map-foot .ico { width: 22px; height: 22px; }

/* ---------- Calidades teaser ---------- */
.spec-teaser { align-items: start; }
.spec-teaser .l { grid-column: 1 / span 5; }
.spec-teaser .r { grid-column: 7 / span 6; }
.spec-teaser .t-title { font-size: clamp(42px, 5vw, 84px); }

.spec-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); border-top: 1px solid var(--ink); }
.spec-pair article { padding: clamp(28px, 3.2vw, 48px) 0; }
.spec-pair h3 { margin: 0 0 16px; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.spec-pair p { margin: 0 0 22px; max-width: 42ch; color: #3a3935; }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); counter-reset: s; }
.spec-list li { display: flex; align-items: baseline; gap: 14px; padding: 22px 12px 22px 0; border-bottom: 1px solid var(--line-2); font-family: var(--serif); font-weight: 200; font-size: clamp(18px, 1.5vw, 23px); text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.spec-list li b { font-weight: 400; }
.spec-list li small { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; color: var(--mute); font-weight: 400; min-width: 20px; }

/* ---------- Contacto (bloque) ---------- */
.contact-block { background: var(--paper); }
.contact-grid { align-items: end; row-gap: 48px; }
.contact-grid .l { grid-column: 1 / span 8; }
.contact-grid .r { grid-column: 9 / span 4; font-size: 14px; }
.contact-grid .r h4 { margin: 0 0 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.contact-grid .r p { margin: 0 0 26px; }
.contact-grid .big { font-size: clamp(52px, 8.4vw, 136px); }
.contact-grid .btn-row { margin-top: clamp(32px, 4vw, 56px); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #d9d8d4; padding: clamp(72px, 8vw, 120px) var(--pad) 36px; font-size: 13.5px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer .flogo img { height: 40px; width: auto; filter: invert(1); }
.footer .flogo p { margin: 22px 0 0; max-width: 300px; color: #9c9a95; font-size: 13px; line-height: 1.7; }
.footer h4 { margin: 0 0 14px; font-size: 10.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #fff; }
.footer p { margin: 0; line-height: 1.8; }
.footer a:hover { color: #fff; }
.footer a[href*="share.google"], .contact-grid .r a[href*="share.google"], .panel .direct a[href*="share.google"] { text-decoration: underline; text-underline-offset: 3px; }
.footer .flinks { display: grid; gap: 6px; }
.footer .bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid #2e2e2e; font-size: 12px; color: #8d8b86; letter-spacing: .04em; }
.footer .bottom nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.langs { display: flex; gap: 4px; align-items: center; }
.langs a { padding: 4px 8px; letter-spacing: .16em; font-size: 11px; opacity: .6; transition: opacity .3s; }
.langs a.active { opacity: 1; font-weight: 600; }
.langs a:hover { opacity: 1; }
.footer-word { margin-top: clamp(40px, 6vw, 80px); font-family: var(--serif); font-weight: 200; font-size: clamp(48px, 13.6vw, 250px); line-height: .82; letter-spacing: .06em; color: #fff; white-space: nowrap; text-align: center; opacity: .95; }
.footer-word b { font-weight: 400; letter-spacing: 0; }

/* ---------- Menú overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.overlay.open { visibility: visible; }
.menu { background: var(--night); color: #fff; display: grid; grid-template-rows: auto 1fr auto; clip-path: inset(0 0 100% 0); }
.menu-bar, .panel-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header); padding: 0 var(--pad); flex: none; }
.menu-bar img { height: 30px; width: auto; filter: invert(1); }
.close-btn { display: inline-flex; align-items: center; gap: 14px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.close-btn i { position: relative; width: 22px; height: 22px; }
.close-btn i::before, .close-btn i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); transition: transform .5s var(--ease); }
.close-btn i::after { transform: rotate(-45deg); }
.close-btn:hover i::before { transform: rotate(135deg); }
.close-btn:hover i::after { transform: rotate(45deg); }
.menu-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); padding: clamp(16px, 3vh, 40px) var(--pad); min-height: 0; overflow-y: auto; }
.menu-nav { display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 5vh, 56px); }
.menu .label { display: block; margin-bottom: 14px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: #8c8a86; }
.menu-villas { list-style: none; margin: 0; padding: 0; border-top: 1px solid #333; }
.menu-villas a { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: clamp(16px, 2vw, 28px); padding: clamp(14px, 2.2vh, 22px) 0; border-bottom: 1px solid #333; transition: padding .6s var(--ease); }
.menu-villas a:hover { padding-left: 16px; }
.menu-villas .ico { width: 56px; height: 56px; }
.menu-villas strong { display: block; font-family: var(--serif); font-weight: 200; font-size: clamp(40px, 5vw, 76px); line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.menu-villas span.meta { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #a9a7a2; text-align: right; }
.menu-links { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; }
.menu-links a, .menu-links button { font-family: var(--serif); font-weight: 200; font-size: clamp(26px, 2.6vw, 38px); text-transform: uppercase; letter-spacing: .03em; }
.menu-links a b, .menu-links button b { font-weight: 400; }
.menu-links a:hover, .menu-links button:hover { opacity: .6; }
.menu-aside { position: relative; align-self: stretch; min-height: 320px; overflow: hidden; }
.menu-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease), transform 1.4s var(--ease); transform: scale(1.06); }
.menu-aside img.on { opacity: 1; transform: none; }
.menu-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px var(--pad) 28px; border-top: 1px solid #2c2c2c; font-size: 12px; color: #a9a7a2; }
.menu-foot .langs a { color: #fff; }
.menu [data-stagger] { will-change: transform, opacity; }

/* ---------- Contacto overlay ---------- */
.contact-overlay .scrim { position: absolute; inset: 0; background: rgba(17,17,17,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; }
.panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.panel-bar { padding: 0 clamp(20px, 4vw, 56px); }
.panel-body { padding: 8px clamp(20px, 4vw, 56px) 48px; }
.panel h2 { font-size: clamp(44px, 5vw, 68px); }
.panel .subject { margin: 14px 0 34px; font-size: 13px; letter-spacing: .06em; color: var(--mute); }
.panel .subject b { color: var(--ink); font-weight: 600; }
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea { width: 100%; padding: 26px 0 10px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 300; color: var(--ink); resize: vertical; transition: border-color .4s; }
.field textarea { min-height: 110px; }
.field label { position: absolute; left: 0; top: 24px; font-size: 14px; color: var(--mute); pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease), color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.78); color: var(--ink); letter-spacing: .04em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.6; margin: 16px 0 30px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--ink); border-radius: 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); }
.check input:checked::after { content: ''; width: 8px; height: 4px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form-msg { margin: 20px 0 0; font-size: 14px; min-height: 1px; }
.form-msg.ok { display: grid; gap: 8px; padding: 28px 24px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 300; line-height: 1.55; letter-spacing: .02em; }
.form-msg.ok strong { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .02em; line-height: 1.2; }
.form-msg.error { color: #9b1c1c; }
form.sent .field-row, form.sent .field, form.sent .check, form.sent .btn-row { display: none; }
form.sent .form-msg.ok { margin: 8px 0 12px; }
.panel .direct { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.75; }
.panel .direct h4 { margin: 0 0 6px; font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.panel .direct p { margin: 0; color: #3a3935; }

/* ---------- Transición de página ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: grid; place-items: center; pointer-events: none; }
.curtain img { width: 84px; height: auto; opacity: .9; }
html.no-js .curtain, html.reduced .curtain { display: none; }

/* ---------- Toast idioma ---------- */
.toast { position: fixed; left: 50%; top: calc(var(--header) + 12px); z-index: 95; transform: translate(-50%, 20px); padding: 12px 20px; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-radius: 40px; opacity: 0; transition: opacity .5s, transform .5s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Ficha de villa ---------- */
.v-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; min-height: 100svh; }
.v-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header) + 48px) var(--pad) clamp(40px, 6vw, 88px); container-type: inline-size; }
.v-copy .v-ico { width: clamp(80px, 8vw, 116px); height: clamp(80px, 8vw, 116px); margin-bottom: clamp(28px, 4vh, 48px); }
.v-copy .code { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #2b2a28; display: flex; gap: 14px; align-items: center; }
.v-copy .code::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.v-copy h1 { margin: 18px 0 0; font-family: var(--serif); font-weight: 200; font-size: clamp(56px, 22cqi, 168px); line-height: .88; letter-spacing: .02em; text-transform: uppercase; }
.v-status { display: flex; align-items: center; gap: 22px; margin: clamp(26px, 3.4vh, 40px) 0 clamp(28px, 4vh, 44px); padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v-status .price { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; white-space: nowrap; }
.v-status .pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 40px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.v-status .pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.v-status .pill.reserved { color: var(--mute); border-color: var(--line-2); }
.v-status .note { margin-left: auto; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.v-media { position: relative; overflow: hidden; background: var(--bone); }
.v-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-media .tagline { position: absolute; left: 28px; bottom: 26px; z-index: 2; color: #fff; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0,0,0,.35); }

.facts-band { padding: 0 var(--pad); }
.facts { list-style: none; margin: 0 auto; padding: 0; max-width: 1520px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3vw, 44px) clamp(12px, 1.4vw, 22px); border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts .ico { width: 34px; height: 34px; }
.facts .energy { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1; }
.facts strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2vw, 32px); line-height: 1; letter-spacing: 0; }
.facts span.lbl { display: block; margin-top: 8px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); line-height: 1.4; overflow-wrap: anywhere; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.level { border-top: 1px solid var(--ink); padding-top: 22px; }
.level .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.level h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 26px; text-transform: uppercase; letter-spacing: .03em; }
.level .m2 { font-family: var(--serif); font-weight: 300; font-size: 24px; }
.level p { margin: 12px 0 0; font-size: 14px; color: #3a3935; line-height: 1.7; }

.plan-fig { display: block; position: relative; border: 1px solid var(--line); background: #fff; cursor: zoom-in; overflow: hidden; }
.plan-fig img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.plan-fig:hover img { transform: scale(1.02); }
.plan-fig .zoom { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 40px; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; letter-spacing: .08em; color: var(--mute); }

.others { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.other { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 260px; background: var(--paper); overflow: hidden; }
.other .img { position: relative; overflow: hidden; }
.other .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.other:hover .img img { transform: scale(1.06); }
.other .b { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: clamp(22px, 2.4vw, 36px); }
.other .ico { width: 48px; height: 48px; }
.other h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3vw, 48px); line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.other .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.other .meta .arr { transition: transform .6s var(--ease); }
.other:hover .meta .arr { transform: translateX(6px); }

.cta-band { background: var(--bone); border-top: 1px solid var(--line); }
.cta-band .inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta-band .t-title { font-size: clamp(40px, 5.6vw, 88px); }
.cta-band p { color: var(--mute); margin: 18px 0 0; }

/* ---------- Calidades ---------- */
.page-head { padding: calc(var(--header) + clamp(64px, 9vw, 140px)) var(--pad) clamp(48px, 6vw, 88px); }
.page-head .wrap { container-type: inline-size; }
.page-head .t-title { font-size: clamp(28px, 11.2cqi, 196px); }
.page-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.page-head .row p { margin: 0; max-width: 460px; color: var(--mute); }
.anchor-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.anchor-nav a { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.anchor-nav a span { color: var(--mute); font-weight: 400; margin-right: 8px; }
.materials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) var(--gap); }
.material { container-type: inline-size; }
.material .img { aspect-ratio: 285 / 327; }
.material .img img { transition: transform 1.4s var(--ease); }
.material:hover .img img { transform: scale(1.05); }
.material .n { display: block; margin: 22px 0 10px; font-size: 10.5px; letter-spacing: .24em; color: var(--mute); }
.material h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 200; font-size: clamp(16px, 9cqi, 30px); text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.material h3 b { font-weight: 400; }
.material p { margin: 0; font-size: 13.5px; line-height: 1.75; color: #3a3935; }
.palette { background: var(--paper); padding: clamp(24px, 3vw, 48px); }
.palette img { width: 100%; height: auto; }
.features { border-top: 1px solid var(--ink); }
.feature { display: grid; grid-template-columns: 80px minmax(0, 5fr) minmax(0, 4fr); gap: var(--gap); align-items: center; padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line-2); }
.feature .n { font-size: 11px; letter-spacing: .24em; color: var(--mute); align-self: start; padding-top: 10px; }
.feature h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 200; font-size: clamp(30px, 3.2vw, 52px); text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.feature h3 b { font-weight: 400; }
.feature p { margin: 0; max-width: 52ch; color: #3a3935; }
.feature .img { aspect-ratio: 16 / 10; }
.villa-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.villa-pick a { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--line-2); transition: background .5s var(--ease), color .5s, border-color .5s; }
.villa-pick a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.villa-pick .ico { width: 44px; height: 44px; flex: none; }
.villa-pick strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.villa-pick span.m { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.villa-pick .arr { margin-left: auto; }

/* ---------- Privacidad ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin: 48px 0 14px; font-family: var(--serif); font-weight: 300; font-size: 28px; text-transform: uppercase; letter-spacing: .03em; }
.legal p, .legal li { color: #3a3935; }
.legal ul { margin: 0 0 1.15em; padding-left: 1.2em; }
.legal li { margin: 0 0 .55em; }
.legal code { font-size: .92em; background: var(--bone); padding: 1px 6px; }
.legal .ph { background: var(--bone); padding: 1px 6px; font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .v-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
}
@media (max-width: 1180px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li:nth-child(5) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+5) { border-top: 1px solid var(--line); }
  .materials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer .top { grid-template-columns: 1fr 1fr; }
  .spec-teaser .l { grid-column: 1 / -1; margin-bottom: 40px; }
  .spec-teaser .r { grid-column: 1 / -1; }
  .other { grid-template-columns: 1fr; }
  .other .img { aspect-ratio: 16 / 9; }
}
@media (max-width: 960px) {
  :root { --header: 68px; }
  .header.solid { height: 64px; }
  .villas { grid-template-columns: 1fr; gap: 64px; }
  .villa-card .img { aspect-ratio: 4 / 3; }
  .split .txt, .split .media, .split.rev .txt, .split.rev .media, .loc-grid .txt, .contact-grid .l, .contact-grid .r { grid-column: 1 / -1; grid-row: auto; }
  .loc-grid .media { display: none; }
  .near { grid-template-columns: 1fr; }
  .near li:nth-last-child(-n+2) { border-bottom: 0; }
  .near li:last-child { border-bottom: 1px solid var(--line); }
  .sticky-txt { position: static; }
  .dist-inner { grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; min-height: 0; }
  .dist-copy { display: contents; }
  .dist-copy > * { order: 1; }
  .dist-inner { row-gap: 0; }
  .dist-inner .fig-col { order: 2; margin: 8px 0 40px; min-width: 0; max-width: 100%; }
  .dist-copy > .floors, .dist-copy > .dist-total { order: 3; }
  .fig-crop { position: relative; overflow: hidden; width: 100%; max-width: 100%; aspect-ratio: 5 / 4; }
  .fig-crop .section-fig { position: absolute; width: 168%; height: auto; aspect-ratio: 1500 / 824; margin: 0; left: -50%; bottom: 0; top: auto; }
  .section-fig .frame span { font-size: 9px; padding: 5px 8px; max-width: 70vw; white-space: normal; }
  .menu-body { grid-template-columns: 1fr; }
  .menu-aside { display: none; }
  .v-hero { grid-template-columns: 1fr; min-height: 0; }
  .v-media { aspect-ratio: 4 / 3; order: -1; margin-top: var(--header); }
  .v-copy { padding-top: 40px; }
  .levels { grid-template-columns: 1fr; }
  .others { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 48px 1fr; }
  .feature .img { grid-column: 2; }
  .villa-pick { grid-template-columns: 1fr; }
  .spec-pair { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 26vw; }
  .mosaic .thumb, .mosaic .thumb:nth-child(8n+4), .mosaic .thumb:nth-child(8n+5) { grid-column: span 3; grid-row: span 1; }
  .mosaic .thumb:nth-child(8n+1), .mosaic .thumb:nth-child(8n+1):last-child { grid-column: span 6; grid-row: span 2; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .header .actions .contact-link { display: none; }
  .header .logo img { height: 24px; }
  .hero-foot { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-foot .loc { display: none; }
  .hero-foot .tag { order: -1; }
  .brand { flex-direction: column; gap: 16px; }
  .brand .sep { width: 56px; height: 1px; align-self: center; }
  .brand .by { text-align: center; }
  .brand .by span { display: inline; }
  .facts-mini { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stack .a { width: 88%; }
  .stack .b { border-width: 6px; }
  .loc-grid .txt .cols { columns: 1; }
  .spec-list { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .facts li:nth-child(even) { border-left: 1px solid var(--line) !important; padding-left: 18px !important; }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .material p { font-size: 13px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .panel .direct { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr; }
  .menu-villas a { grid-template-columns: 44px 1fr; }
  .menu-villas .ico { width: 44px; height: 44px; }
  .menu-villas span.meta { grid-column: 2; text-align: left; margin-top: -6px; }
  .v-status { flex-wrap: wrap; gap: 14px; }
  .v-status .note { margin-left: 0; width: 100%; }
  .map-pin { font-size: 9px; padding: 6px 10px 6px 6px; gap: 8px; }
  .map-pin img { width: 24px; height: 18px; }
  .map { overflow: hidden; max-width: 100%; }
  .map-inner { width: 190%; margin-left: -16.8%; }
  .btn { height: 50px; padding: 0 24px; }
  .btn-row .btn { flex: 1 1 auto; }
  .sec-head { margin-bottom: 40px; }
  .lb-nav { top: auto; bottom: -64px; transform: none; width: 46px; height: 46px; }
  .lb-stage { overflow: visible; }
  .feature { grid-template-columns: 1fr; }
  .feature .img { grid-column: 1; }
  .feature .n { padding-top: 0; }
}
@media (max-width: 420px) {
  .materials { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
}

/* ---------- Entrada con el scroll (sin GSAP: no bloquea la primera pintura) ---------- */
html.motion .hero-media { transform: scale(1.12); will-change: transform; }
html.motion .brand h1 .ch { animation: chRise 1.2s cubic-bezier(.16, 1, .3, 1) both; }
html.motion .brand .word:nth-child(1) .ch:nth-child(1) { animation-delay: .12s; }
html.motion .brand .word:nth-child(1) .ch:nth-child(2) { animation-delay: .17s; }
html.motion .brand .word:nth-child(1) .ch:nth-child(3) { animation-delay: .22s; }
html.motion .brand .word:nth-child(1) .ch:nth-child(4) { animation-delay: .27s; }
html.motion .brand .word:nth-child(2) .ch:nth-child(1) { animation-delay: .36s; }
html.motion .brand .word:nth-child(2) .ch:nth-child(2) { animation-delay: .41s; }
html.motion .brand .word:nth-child(2) .ch:nth-child(3) { animation-delay: .46s; }
html.motion .brand .word:nth-child(2) .ch:nth-child(4) { animation-delay: .51s; }
html.motion .brand .word:nth-child(2) .ch:nth-child(5) { animation-delay: .56s; }
html.motion .brand .word:nth-child(2) .ch:nth-child(6) { animation-delay: .61s; }
html.motion .brand .word:nth-child(2) .ch:nth-child(7) { animation-delay: .66s; }
html.motion .brand .sep { animation: sepIn 1.05s cubic-bezier(.77, 0, .18, 1) .42s both; }
html.motion .brand .by span { animation: riseFade .9s cubic-bezier(.16, 1, .3, 1) both; }
html.motion .brand .by span:first-child { animation-delay: .78s; }
html.motion .brand .by span:last-child { animation-delay: .9s; }
html.motion .hero-foot > * { animation: riseFade .95s cubic-bezier(.16, 1, .3, 1) both; }
html.motion .hero-foot > *:nth-child(1) { animation-delay: .95s; }
html.motion .hero-foot > *:nth-child(2) { animation-delay: 1.08s; }
html.motion .hero-foot > *:nth-child(3) { animation-delay: 1.2s; }
html.motion body.has-hero .header .logo,
html.motion body.has-hero .header .actions { animation: fadeIn 1s ease .85s both; }
html.motion .v-media { animation: wipeRight 1.45s cubic-bezier(.77, 0, .18, 1) both; }
html.motion .v-media img { animation: settle 1.9s cubic-bezier(.16, 1, .3, 1) .12s both; }
html.motion .v-copy > * { animation: riseFade 1s cubic-bezier(.16, 1, .3, 1) both; }
html.motion .v-copy > *:nth-child(1) { animation-delay: .28s; }
html.motion .v-copy > *:nth-child(2) { animation-delay: .38s; }
html.motion .v-copy > *:nth-child(3) { animation-delay: .5s; }
html.motion .v-copy > *:nth-child(4) { animation-delay: .62s; }
html.motion .v-copy > *:nth-child(5) { animation-delay: .74s; }
html.motion .page-head .eyebrow { animation: riseFade .9s cubic-bezier(.16, 1, .3, 1) .15s both; }
html.motion .page-head .row { animation: riseFade .95s cubic-bezier(.16, 1, .3, 1) .32s both; }
html.motion main .t-title[data-split] .mask > span { transform: translateY(108%); }
html.motion main .t-title[data-split].is-in .mask > span { transform: none; transition: transform 1.25s cubic-bezier(.16, 1, .3, 1); }
html.motion [data-reveal]:not([data-reveal="stagger"]) { opacity: 0; transform: translateY(28px); }
html.motion [data-reveal]:not([data-reveal="stagger"]).is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.05s cubic-bezier(.16, 1, .3, 1); }
html.motion [data-reveal="stagger"] > * { opacity: 0; transform: translateY(24px); }
html.motion [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; transition: opacity .85s var(--ease), transform 1s cubic-bezier(.16, 1, .3, 1); }
html.motion [data-clip] { clip-path: inset(100% 0 0 0); }
html.motion [data-clip="left"] { clip-path: inset(0 100% 0 0); }
html.motion [data-clip="right"] { clip-path: inset(0 0 0 100%); }
html.motion [data-clip].is-in { clip-path: inset(0); transition: clip-path 1.4s cubic-bezier(.77, 0, .18, 1); }
html.motion .reveal-img[data-clip] img { transform: scale(1.16); }
html.motion .reveal-img[data-clip].is-in img { transform: none; transition: transform 1.75s cubic-bezier(.16, 1, .3, 1); }
html.motion .villa-card:hover .reveal-img.is-in img { transform: scale(1.05); }
html.motion .plan-fig.is-in:hover img { transform: scale(1.02); }
html.motion .fig-crop[data-clip] { overflow: hidden; }
html.motion .mosaic .thumb { clip-path: inset(100% 0 0 0); }
html.motion .mosaic .thumb img { transform: scale(1.12); }
html.motion .mosaic .thumb.is-in { clip-path: inset(0); transition: clip-path 1.15s cubic-bezier(.77, 0, .18, 1); }
html.motion .mosaic .thumb.is-in img { transform: none; transition: transform 1.35s cubic-bezier(.16, 1, .3, 1); }
html.motion .mosaic .thumb.is-in:hover img { transform: scale(1.045); }
html.motion .section-fig .lit { transition: clip-path .55s cubic-bezier(.77, 0, .18, 1); }
html.motion .section-fig .frame { transition: top .55s cubic-bezier(.77, 0, .18, 1), left .55s cubic-bezier(.77, 0, .18, 1), width .55s cubic-bezier(.77, 0, .18, 1), height .55s cubic-bezier(.77, 0, .18, 1); }
html.motion .dist.is-pinned { height: 240vh; padding-top: 0; padding-bottom: 0; }
html.motion .dist.is-pinned .dist-inner { position: sticky; top: 0; height: 100vh; min-height: 100vh; box-sizing: border-box; align-content: center; padding: clamp(48px, 6vh, 96px) 0; background: var(--paper); }
.loc-grid .media .px { position: absolute; left: 0; width: 100%; height: 116%; bottom: 0; }
@keyframes chRise { from { transform: translateY(115%); } to { transform: none; } }
@keyframes sepIn { from { transform: scaleY(0); } to { transform: none; } }
@keyframes riseFade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipeRight { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.16); } to { transform: none; } }

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

/* Flechas tipográficas */
.arr { font-style: normal; font-size: 1.4em; line-height: 1; display: inline-block; }
.btn .arr { font-size: 1.5em; margin-top: -2px; }
.villa-card .go .arr, .villa-pick .arr { font-size: 18px; }

/* Interacción sin librerías: el menú y el panel se abren con CSS. */
.menu { transition: clip-path .7s var(--ease); }
.overlay.open.menu { clip-path: inset(0); }
.contact-overlay .panel { transform: translateX(105%); transition: transform .65s var(--ease); }
.contact-overlay.open .panel { transform: none; }
.contact-overlay .scrim { transition: opacity .35s; }
.contact-overlay.open .scrim { opacity: 1; }
body:not(.has-hero) .header { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); height: 72px; color: var(--ink); }
body:not(.has-hero) .header::after { opacity: 1; }
body:not(.has-hero) .header .logo img { filter: none; }
.hp { position: absolute; left: -9999px; }
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.docs a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.docs a span { font-weight: 300; letter-spacing: .04em; text-transform: none; color: var(--mute); }
.docs a:hover { padding-left: 8px; }
.ico svg { width: 100%; height: 100%; }

/* WhatsApp fijo: blanco sobre el vídeo, negro al salir de él. */
.wa-float { position: fixed; z-index: 55; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), bottom .45s var(--ease); }
.wa-float .ico { width: 24px; height: 24px; }
.wa-float:hover { background: #fff; color: var(--ink); }
body.has-hero:not(:has(.header.solid)) .wa-float { background: #fff; color: var(--ink); border-color: #fff; }
body.has-hero:not(:has(.header.solid)) .wa-float:hover { background: transparent; color: #fff; border-color: #fff; }
body.cookies-open .wa-float { bottom: calc(clamp(16px, 3vw, 28px) + 140px); }

/* Banner cookies: barra inferior, sin card. */
.cookie-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: var(--night); color: #d9d8d4; border-top: 1px solid #2e2e2e; padding: 20px var(--pad); transform: translateY(0); }
.cookie-bar[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1280px; margin: 0 auto; }
.cookie-copy { max-width: 62ch; }
.cookie-copy .small-caps { margin: 0 0 8px; color: #fff; }
.cookie-copy p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #b7b5b0; }
.cookie-copy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { height: 46px; padding: 0 24px; font-size: 11px; }
.cookie-actions .btn.ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.cookie-actions .btn.ghost:hover { color: var(--ink); }
.cookie-actions .btn.ghost::before { background: #fff; }
.footer .bottom nav button { color: inherit; letter-spacing: .04em; opacity: 1; }
.footer .bottom nav button:hover { color: #fff; }

@media (max-width: 720px) {
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .cookie-actions { flex-direction: column-reverse; }
  .cookie-actions .btn { width: 100%; }
  body.cookies-open .wa-float { bottom: calc(clamp(16px, 3vw, 28px) + 220px); }
}
