:root {
  --bg: #ffffff;
  --bg2: #f4f4f4;
  --card: #ffffff;
  --line: rgba(0, 0, 0, .1);
  --text: #222222;
  --muted: #6b6b6b;
  --gold: #fb6a19;
  --gold2: #fb6a19;
  --ok: #16a34a;
  --danger: #dc2626;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.logo { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .02em; }
.logo b { color: var(--gold); font-weight: 600; }
.nav a.link { font-size: .9rem; color: var(--muted); margin-left: 20px; }
.nav a.link:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 500; transition: .25s; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn.gold:hover { background: #e85c0f; border-color: #e85c0f; color: #fff; }
.btn.wa { background: #25d366; color: #052e14; border-color: #25d366; }
.btn.sm { padding: 8px 16px; font-size: .88rem; }

.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.tag { position: absolute; top: 12px; left: 12px; background: #222c; color: #fff; backdrop-filter: blur(6px); padding: 4px 12px; border-radius: 999px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.tag.sold { background: var(--danger); color: #fff; }

/* Listado */
.hero-list { padding: 130px 0 40px; text-align: center; position: relative; }
.hero-list h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); }
.hero-list h1 em { color: var(--gold); font-style: italic; }
.hero-list p { color: var(--muted); max-width: 560px; margin: 16px auto 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 32px auto 0; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); max-width: 900px; }
.filters input, .filters select { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: .92rem; min-width: 0; flex: 1 1 130px; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--gold); }
.view-toggle { display: flex; justify-content: center; gap: 8px; margin: 22px 0; }
.view-toggle button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); }
.view-toggle button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; padding-bottom: 80px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .35s, border-color .35s, box-shadow .35s; position: relative; display: block; }
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 14px 40px #0001; }
.card .ph { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--bg2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.card:hover .ph img { transform: scale(1.07); }
.card .body { padding: 18px 20px 20px; }
.card .price { font-family: var(--serif); font-size: 1.7rem; color: var(--gold); }
.card h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 500; margin: 4px 0 2px; }
.card .loc { color: var(--muted); font-size: .88rem; }
.card .specs { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); flex-wrap: wrap; }
.card .specs b { color: var(--text); font-weight: 500; }
.empty { text-align: center; color: var(--muted); padding: 80px 0; }
#bigmap { height: 70vh; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 80px; display: none; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 40px 0 100px; border-top: 1px solid var(--line); }

/* Ficha: hero */
.p-hero { color: #fff; height: 100svh; min-height: 560px; position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.p-hero .bg { position: absolute; inset: -6% 0; background-size: cover; background-position: center; will-change: transform; }
.p-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #00000066 0%, transparent 35%, #000000cc 100%); }
.p-hero .in { position: relative; z-index: 2; padding-bottom: 9vh; }
.p-hero .kicker { color: #ffb383; letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; }
.p-hero h1 { font-size: clamp(2.4rem, 7vw, 5.6rem); margin: 10px 0 6px; max-width: 14ch; }
.p-hero .meta { display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap; }
.p-hero .price { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); color: #ffb383; }
.p-hero .where { color: #eee; }
.scrollhint { position: absolute; z-index: 3; right: 28px; bottom: 9vh; writing-mode: vertical-rl; letter-spacing: .3em; font-size: .72rem; color: #ddd; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.scrollhint::after { content: ''; width: 1px; height: 60px; background: linear-gradient(var(--gold), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Recorrido (pasillo 3D) */
.walk { position: relative; color: #fff; --muted: #bdbdbd; background: radial-gradient(ellipse at center, #3a3a3a 0%, #222 70%); }
.walk .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1100px; perspective-origin: 50% 46%; }
.walk .world { position: absolute; inset: 0; transform-style: preserve-3d; }
.room { position: absolute; left: 50%; top: 50%; width: min(64vw, 1000px); aspect-ratio: 16/10; margin: calc(min(64vw, 1000px) * -.31) 0 0 calc(min(64vw, 1000px) * -.5); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 120px #000a, 0 0 0 1px #ffffff22; will-change: transform, opacity; backface-visibility: hidden; opacity: 0; }
.room img { width: 100%; height: 100%; object-fit: cover; }
.walk .hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.walk .label { position: absolute; left: 6vw; bottom: 12vh; max-width: 80vw; }
.walk .label small { color: var(--gold); letter-spacing: .25em; text-transform: uppercase; font-size: .72rem; display: block; }
.walk .label h2 { font-size: clamp(2rem, 6vw, 4.4rem); text-shadow: 0 4px 40px #000; transition: opacity .35s, transform .35s; }
.walk .label h2.sw { opacity: 0; transform: translateY(14px); }
.walk .dots { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.walk .dots i { width: 6px; height: 6px; border-radius: 50%; background: #ffffff40; transition: .3s; }
.walk .dots i.on { background: var(--gold); transform: scale(1.8); }
.walk .bar { position: absolute; left: 6vw; right: 6vw; bottom: 6vh; height: 2px; background: #ffffff1f; }
.walk .bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.walk .intro { position: absolute; top: 14vh; left: 6vw; right: 6vw; z-index: 5; pointer-events: none; }
.walk .intro small { color: var(--muted); letter-spacing: .25em; text-transform: uppercase; font-size: .72rem; }

/* Secciones */
section.s { padding: 110px 0; }
.eyebrow { color: var(--gold); letter-spacing: .25em; text-transform: uppercase; font-size: .75rem; margin-bottom: 14px; display: block; }
.s h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); margin-bottom: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 56px; }
.stats div { background: var(--bg); padding: 28px 16px; text-align: center; }
.stats b { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: var(--gold2); line-height: 1; }
.stats span { color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; }
.desc { color: #444; font-size: 1.08rem; white-space: pre-line; }
.feats { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000; }
.frame video, .frame iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.frame.tall iframe { aspect-ratio: 16/10; }
#map { height: 420px; border-radius: var(--r); border: 1px solid var(--line); }
.mosaic { columns: 3 260px; column-gap: 14px; }
.mosaic img { width: 100%; margin-bottom: 14px; border-radius: 12px; cursor: zoom-in; transition: opacity .3s; }
.mosaic img:hover { opacity: .8; }
.lb { position: fixed; inset: 0; z-index: 100; background: #000e; display: none; align-items: center; justify-content: center; cursor: zoom-out; }
.lb.on { display: flex; }
.lb img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }
.cta-bar { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 14px; background: #fffffff2; backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 10px 40px #0003; max-width: calc(100vw - 24px); }
.cta-bar.on { transform: translate(-50%, 0); }
.cta-bar span { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.cta-bar strong { color: var(--text); font-weight: 500; }

.reveal { opacity: 0; transform: translateY(40px); }

@media (max-width: 800px) {
  .two { grid-template-columns: 1fr; gap: 32px; }
  .room { width: 88vw; margin: calc(88vw * -.31) 0 0 -44vw; }
  .walk .label { bottom: 14vh; }
  .scrollhint { display: none; }
  section.s { padding: 70px 0; }
  .cta-bar span { display: none; }
  .cta-bar { padding: 8px; }
  .nav a.link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .scrollhint::after { animation: none; }
}
