/* INMOPV · Obra nueva. Mismos colores y tipografías que la web principal. */
:root {
  --ink: #13201c; --ink-2: #33423d; --muted: #66736e;
  --green-950: #0b241f; --green-900: #0f2e28; --green-800: #163d35;
  --teal: #2e8c7c; --teal-soft: #dcebe6; --sun: #e3a33b; --sun-soft: #f8ead0;
  --sand: #f3eee6; --sand-2: #ebe4d8; --paper: #fbf9f5; --line: #e5ded2;
  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 44px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 16.5px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--f-display); font-weight: 350; font-variation-settings: "SOFT" 60, "opsz" 96; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .45em; color: var(--green-950); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.3rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34em; }
.small { font-size: .88rem; } .muted { color: var(--muted); }
.kick { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .8em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--green-900); color: #fff; font-weight: 700; text-decoration: none; border: 1.5px solid var(--green-900); transition: background .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--green-800); transform: translateY(-1px); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn.ghost { background: transparent; color: var(--green-900); }
.btn.ghost:hover { background: var(--teal-soft); }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost.light:hover { background: rgba(255,255,255,.1); }

/* cabecera */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top)); transition: background .3s, box-shadow .3s; }
.bar.solid { background: rgba(251, 249, 245, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand img { width: 136px; height: auto; background: #fff; border-radius: 8px; padding: 4px 8px; }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.bar nav a:not(.btn):hover { color: var(--teal); }
@media (max-width: 820px) { .bar nav a:not(.btn) { display: none; } .brand img { width: 112px; } }

/* recorrido 3D */
.story { position: relative; height: 900vh; height: 900svh; background: linear-gradient(180deg, #b9d3e6 0%, #dfe6e8 45%, #efe6da 75%, #eee5d8 100%); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; }
.ready3d #scene { opacity: 1; }
.fallback { display: none; }

.act { position: absolute; z-index: 5; max-width: 30rem; visibility: hidden; will-change: opacity, transform; }
.act h1, .act h2 { color: var(--green-950); }
.act p { color: var(--ink-2); font-size: 1.08rem; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(243, 238, 230, .55) 0%, rgba(243, 238, 230, 0) 42%); opacity: var(--scrim, 1); transition: opacity .4s; }
.a-hero { left: var(--gutter); bottom: clamp(40px, 9vh, 96px); max-width: 36rem; }
.a-right { right: var(--gutter); top: 22vh; text-align: right; }
.a-left { left: var(--gutter); bottom: 14vh; }
.a-top { left: 50%; top: 12vh; translate: -50% 0; text-align: center; max-width: 26rem; }
.a-hint { left: 50%; bottom: 7vh; translate: -50% 0; max-width: none; }
.a-hint p { margin: 0; font-weight: 700; font-size: .95rem; background: var(--green-900); color: #fff; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.a-price { right: var(--gutter); bottom: 12vh; max-width: 26rem; background: rgba(251, 249, 245, .95); padding: 28px 30px; border-radius: 22px; box-shadow: 0 8px 20px rgba(19,32,28,.08), 0 30px 70px rgba(19,32,28,.16); }
.a-price h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.legal3d { position: absolute; left: var(--gutter); bottom: 10px; margin: 0; font-size: .72rem; color: rgba(19, 32, 28, .55); z-index: 4; }

.labels { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.room { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(19, 32, 28, .16); font: 700 .82rem/1 var(--f-body); color: var(--green-950); white-space: nowrap; transition: opacity .35s var(--ease), background .2s, color .2s; }
.room .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(227, 163, 59, .25); }
.room.in { opacity: 1; pointer-events: auto; cursor: pointer; }
.room:hover, .room.active { background: var(--green-900); color: #fff; }
@media (pointer: coarse) { .room { padding: 10px 15px 10px 11px; font-size: .86rem; } }

.roomcard { position: fixed; z-index: 40; right: var(--gutter); top: 50%; width: min(380px, 42vw); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 20px rgba(19,32,28,.1), 0 30px 70px rgba(19,32,28,.22); opacity: 0; transform: translateY(-46%) scale(.97); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.roomcard.in { opacity: 1; transform: translateY(-50%); }
.roomcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rc-body { padding: 14px 18px 16px; }
.rc-title { font-family: var(--f-display); font-size: 1.4rem; margin: 0; color: var(--green-950); }
.rc-sub { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.rc-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
@media (max-width: 700px) {
  .roomcard { left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; transform: translateY(12px); }
  .roomcard.in { transform: none; }
  .roomcard img { aspect-ratio: 16 / 10; }
}

@media (max-width: 700px) {
  .act { max-width: none; left: var(--gutter) !important; right: var(--gutter) !important; translate: none !important; text-align: left !important; }
  .a-hero { bottom: 9vh; }
  .a-right { top: 13vh; }
  .a-left { bottom: 10vh; }
  .a-top { top: 12vh; }
  .a-hint { bottom: 5vh; text-align: center !important; }
  .a-hint p { white-space: normal; text-align: center; }
  .a-price { bottom: 7vh; padding: 22px; }
  .act p { font-size: 1rem; }
}

/* sin 3D (navegador sin WebGL): versión estática */
.no3d .story { height: auto; }
.no3d .stage { position: relative; height: auto; overflow: visible; padding: 110px var(--gutter) 40px; display: grid; gap: 28px; }
.no3d #scene, .no3d .labels, .no3d .a-hint, .no3d .legal3d { display: none; }
.no3d .fallback { display: block; width: 100%; max-width: 1100px; border-radius: 18px; order: 1; }
.no3d .act { position: static; visibility: visible !important; opacity: 1 !important; transform: none !important; translate: none; text-align: left; max-width: 40rem; }
.no3d .a-hero { order: 0; }
.no3d .act:not(.a-hero) { order: 2; }

/* piso piloto */
.piloto { padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 100px); background: var(--paper); }
.piloto .head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.piloto .head p { color: var(--muted); margin: 0 0 .6em; }
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 0 var(--gutter) 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; cursor: grab; -webkit-overflow-scrolling: touch; }
.strip.drag { cursor: grabbing; scroll-snap-type: none; }
.strip figure { margin: 0; flex: 0 0 auto; width: min(42vw, 620px); scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; user-select: none; -webkit-user-drag: none; }
@media (max-width: 700px) { .strip figure { width: 80vw; } }

/* calidades */
.calidades { background: var(--green-900); color: #fff; padding: clamp(72px, 10vw, 130px) 0; }
.calidades h2 { color: #fff; }
.calidades .lead { color: rgba(255,255,255,.72); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.split.rev { grid-template-columns: 1.2fr 1fr; align-items: center; }
.q { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.q li { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16); }
.q b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.q span { color: rgba(255,255,255,.7); font-size: .95rem; }
@media (max-width: 820px) { .split, .split.rev { grid-template-columns: 1fr; } .q { grid-template-columns: 1fr; } }

/* ubicación */
.ubicacion { padding: clamp(72px, 10vw, 130px) 0; background: var(--sand); }
.map { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-2); box-shadow: 0 2px 6px rgba(19,32,28,.05), 0 12px 32px rgba(19,32,28,.08); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* calle Pilar */
.pilar { padding: clamp(72px, 10vw, 130px) 0; }
.pilar-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px); margin-top: 28px; align-items: start; }
.plan { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 26px; }
.facts li { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 820px) { .pilar-grid { grid-template-columns: 1fr; } }

/* cierre */
.contacto { background: var(--green-950); color: #fff; padding: clamp(90px, 13vw, 170px) 0; }
.contacto h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 5rem); }
.contacto .lead { color: rgba(255,255,255,.75); margin-bottom: 32px; }
.contacto .btn:not(.ghost) { background: var(--sun); border-color: var(--sun); color: var(--green-950); }
.contacto .btn:not(.ghost):hover { background: #edb553; }
.row.big .btn { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.addr { margin-top: 44px; color: rgba(255,255,255,.6); font-size: .92rem; }
.foot { background: var(--green-950); color: rgba(255,255,255,.55); padding: 0 0 40px; font-size: .82rem; }
.foot .wrap { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; }
.foot a { color: #fff; font-weight: 700; }
.foot p { margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
