/* ==========================================================================
   Constructora Rucatremo — rediseño 2026
   Paleta de marca: navy #0A122B · violeta #5846DF · gris #777E90
   ========================================================================== */
:root {
  --ink: #0A122B;
  --ink-2: #1A2240;
  --violet: #5846DF;
  --violet-deep: #4535C4;
  --violet-soft: #EEECFD;
  --slate: #6B7285;
  --line: #E4E5EE;
  --mist: #F6F6FA;
  --white: #FFFFFF;
  --wa: #25D366;
  --f-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--slate);
  font-family: var(--f-body); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: 64ch; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section--mist { background: var(--mist); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--slate); }
.kicker { font-family: var(--f-display); font-size: .95rem; font-weight: 500; color: var(--violet); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.muted-note { font-size: .82rem; line-height: 1.6; color: #9197A8; max-width: 90ch; margin-top: 40px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display);
  font-size: .95rem; font-weight: 500; padding: 15px 28px; border-radius: 999px;
  background: var(--violet); color: #fff; border: 1px solid var(--violet);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), border-color .35s;
}
.btn:hover { background: var(--violet-deep); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--line-light:hover { background: #fff; color: var(--ink); }
.link-arrow { font-family: var(--f-display); font-weight: 500; color: var(--ink); display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s, color .3s; }
.link-arrow:hover { color: var(--violet); border-color: var(--violet); }
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- Header: siempre fijo, blanco sólido, logo protagonista ---------- */
:root { --header-h: 104px; }
body { padding-top: var(--header-h); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; background: #fff; box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .35s var(--ease);
}
.site-header.is-solid { box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(10,18,43,.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { display: block; width: 236px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .has-sub > a {
  font-family: var(--f-display); font-size: .95rem; font-weight: 500; color: var(--ink);
  padding: 10px 16px; border-radius: 999px; transition: background .3s, color .3s; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav .has-sub > a:hover { background: var(--mist); color: var(--violet); }
.nav a.is-active { color: var(--violet); background: var(--violet-soft); }
.has-sub { position: relative; }
.has-sub svg { width: 10px; height: 10px; }
.sub {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px; background: #fff; border-radius: 16px; border: 1px solid var(--line);
  padding: 10px; box-shadow: 0 24px 60px -20px rgba(10,18,43,.3); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-family: var(--f-display); font-size: .92rem; }
.sub a:hover, .sub a[aria-current] { background: var(--violet-soft); color: var(--violet); }
.nav-wa { margin-left: 10px; background: var(--wa) !important; color: #fff !important; width: 44px; height: 44px; padding: 0 !important; justify-content: center; }
.nav-wa svg { width: 19px; height: 19px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; flex: 0 0 auto; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s, top .35s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 29px; }
body.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1080px) { .brand img { width: 200px; } .nav > a, .nav .has-sub > a { padding: 10px 12px; } }
@media (max-width: 960px) {
  :root { --header-h: 84px; }
  .brand img { width: 176px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 20px var(--gutter) 40px; gap: 0; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s, visibility .35s, transform .35s var(--ease); overflow-y: auto; border-top: 1px solid var(--line);
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > a, .nav .has-sub > a { font-size: 1.35rem; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; width: 100%; }
  .nav a.is-active { color: var(--violet); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 6px 0 12px 14px; min-width: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sub::before { display: none; }
  .sub a { font-size: 1.02rem; padding: 9px 0; color: var(--slate); }
  .sub a:hover, .sub a[aria-current] { background: none; }
  .has-sub > a { border-bottom: 0 !important; }
  .has-sub > a svg { display: none; }
  .nav-wa { margin: 26px 0 0; width: auto !important; height: auto; padding: 16px 22px !important; border-radius: 999px !important; font-size: 1rem !important; border: 0 !important; }
  .nav-wa::after { content: "Escríbenos por WhatsApp"; margin-left: 10px; }
}
@media (max-width: 400px) { :root { --header-h: 76px; } .brand img { width: 150px; } }

/* ---------- Hero principal (slides) ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-on { opacity: 1; }
.hero__slide img { width: 100%; height: 115%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; will-change: transform; }
.hero__slide.is-on img { transform: scale(1); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,43,.55) 0%, rgba(10,18,43,.15) 35%, rgba(10,18,43,.82) 100%); pointer-events: none; }
.hero__contour { position: absolute; inset: 0; z-index: 1; opacity: .35; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 72px; }
.hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.hero__copy { display: grid; }
.hero__text { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease), visibility .9s; }
.hero__text.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .25s; }
.hero__text .hero__title { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin-top: 0; color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.4rem); max-width: 14ch; margin-bottom: 24px; }
.hero__text p { color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 52ch; margin-bottom: 32px; }
.hero__index { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-top: 1px solid rgba(255,255,255,.2); }
.hero__index button {
  all: unset; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; width: 100%;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-family: var(--f-display); font-size: 1rem; color: rgba(255,255,255,.55);
  position: relative; transition: color .3s;
}
.hero__index button:hover, .hero__index button.is-on { color: #fff; }
.hero__index button small { font-family: var(--f-body); font-size: .85rem; opacity: .8; }
.hero__index button::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: #fff; }
.hero__index button.is-on::after { animation: slidebar 7s linear forwards; }
@keyframes slidebar { to { width: 100%; } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 1px; height: 46px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -46px; width: 1px; height: 46px; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 46px; } }

/* ---------- Hero de página interior ---------- */
.page-hero { position: relative; min-height: clamp(440px, 64vh, 660px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero--short { min-height: clamp(340px, 46vh, 460px); }
.page-hero__img { position: absolute; inset: -10% 0 0 0; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,43,.6), rgba(10,18,43,.25) 40%, rgba(10,18,43,.85)); }
.page-hero .hero__contour { opacity: .4; }
.page-hero__inner { position: relative; z-index: 2; padding-block: 96px clamp(48px, 7vw, 88px); width: 100%; }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero p { color: rgba(255,255,255,.82); margin-top: 22px; font-size: 1.1rem; }
.crumbs { display: flex; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 22px; font-family: var(--f-display); }
.crumbs a:hover { color: #fff; }
.price-tag { display: inline-flex; flex-direction: column; margin-top: 30px; padding: 16px 26px; border-radius: 18px; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); }
.price-tag small { font-size: .85rem; color: rgba(255,255,255,.75); }
.price-tag strong { font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; color: #fff; }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split--wide-img { grid-template-columns: 1.15fr .85fr; }
.split--rev > :first-child { order: 2; }
.split h2 { margin-bottom: 26px; }
.frame { display: block; position: relative; border-radius: 22px; overflow: hidden; background: var(--mist); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--land { aspect-ratio: 4 / 3; }
.frame--wide { aspect-ratio: 16 / 10; }
.parallax-img { height: 118% !important; margin-top: -9%; will-change: transform; }
.stack { position: relative; }
.stack .frame + .frame { position: absolute; width: 48%; right: -6%; bottom: -12%; border: 8px solid #fff; box-shadow: 0 30px 70px -30px rgba(10,18,43,.35); }
.section--mist .stack .frame + .frame { border-color: var(--mist); }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 34px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-display); font-weight: 500; color: var(--ink); font-size: clamp(2.4rem, 4.6vw, 3.8rem); letter-spacing: -0.03em; line-height: 1; }
.stat b sup { font-size: .4em; vertical-align: top; margin-left: 4px; color: var(--violet); }
.stat > span { display: block; margin-top: 14px; font-size: .95rem; }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 64px; }
.pillar { padding: 40px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar svg { width: 44px; height: 44px; color: var(--violet); margin-bottom: 26px; }
.pillar h3 { margin-bottom: 12px; font-size: 1.2rem; }
.pillar p { font-size: .98rem; }
.center-head { text-align: center; max-width: 760px; margin-inline: auto; }
.center-head p { margin-inline: auto; }

/* ---------- Banda oscura con curvas de nivel ---------- */
.band { position: relative; background: var(--ink); color: rgba(255,255,255,.75); overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band .hero__contour { opacity: .5; }
.band > .wrap { position: relative; z-index: 1; }
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo a { display: block; padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px); transition: background .4s; position: relative; }
.duo a + a { border-left: 1px solid rgba(255,255,255,.12); }
.duo a:hover { background: rgba(88,70,223,.18); }
.duo h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.duo h3 svg { width: 28px; height: 28px; transition: transform .4s var(--ease); }
.duo a:hover h3 svg { transform: translate(6px, -6px); }
.duo p { color: rgba(255,255,255,.7); margin: 0; }
.mission { text-align: center; padding-block: clamp(90px, 12vw, 160px); }
.mission h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 26px; }
.mission p { margin-inline: auto; font-size: 1.1rem; }
.mission .btn { margin-top: 18px; }

/* ---------- Proyectos (listado) ---------- */
.projects { display: grid; gap: clamp(80px, 10vw, 140px); }
.project { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.project:nth-child(even) > :first-child { order: 2; }
.project .frame { aspect-ratio: 16 / 11; }
.project .frame img { transition: transform 1.2s var(--ease); }
.project:hover .frame img { transform: scale(1.04); }
.project h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 20px; }
.project .tagline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font-size: .82rem; padding: 6px 14px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-family: var(--f-display); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pcard { display: block; }
.pcard .frame { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.pcard .frame img { transition: transform 1.2s var(--ease); }
.pcard:hover .frame img { transform: scale(1.05); }
.pcard h3 { margin-bottom: 8px; }
.pcard p { font-size: .98rem; }

/* ---------- Entorno (mosaico) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 14vw, 190px); gap: 14px; }
.mosaic .frame:nth-child(1) { grid-column: 1 / 8; grid-row: span 2; }
.mosaic .frame:nth-child(2) { grid-column: 8 / 13; grid-row: span 1; }
.mosaic .frame:nth-child(3) { grid-column: 8 / 11; grid-row: span 1; }
.mosaic .frame:nth-child(4) { grid-column: 11 / 13; grid-row: span 1; }
.near { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 34px; }
.near span { font-size: .9rem; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; }

/* ---------- Galería + lightbox ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery a { display: block; break-inside: avoid; margin-bottom: 14px; border-radius: 16px; overflow: hidden; position: relative; background: var(--mist); }
.gallery img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .6s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(10,18,43,0); transition: background .4s; }
.gallery a:hover::after { background: rgba(10,18,43,.12); }
.gallery--portrait { columns: 4 220px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,18,43,.94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.is-open { display: flex; animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lightbox img { max-height: 86vh; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .3s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox button svg { width: 20px; height: 20px; }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); } .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .9rem; font-family: var(--f-display); }

/* ---------- Tabs (planos) ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 28px; }
.tabs__list button { font: 500 .92rem var(--f-display); padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .3s; }
.tabs__list button:hover { border-color: var(--violet); color: var(--violet); }
.tabs__list button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs__panel { display: none; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(16px, 3vw, 40px); }
.tabs__panel.is-on { display: block; animation: lbIn .5s var(--ease); }
.tabs__panel img { display: block; margin-inline: auto; width: auto; max-width: 100%; height: auto; max-height: 78vh; object-fit: contain; cursor: zoom-in; }
.tabs__panel h3 { margin-bottom: 8px; }
.tabs__panel .dual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }

/* ---------- Listas de características ---------- */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.specs--3 { grid-template-columns: repeat(3, 1fr); }
.spec { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1rem; line-height: 1.55; }
.spec svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--violet); margin-top: 1px; }
.spec small { display: block; color: var(--slate); font-size: .92rem; margin-top: 4px; }
.feature-block h3 { margin-bottom: 10px; }
.feature-block + .feature-block { margin-top: 48px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); color: var(--ink); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 16px; height: 9px; border-left: 1.6px solid var(--violet); border-bottom: 1.6px solid var(--violet); transform: rotate(-45deg); }
.check-list a { color: var(--violet); border-bottom: 1px solid currentColor; }

/* ---------- Equipamiento (iconos) ---------- */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.amenity { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; transition: border-color .35s, transform .35s var(--ease); }
.amenity:hover { border-color: var(--violet); transform: translateY(-3px); }
.amenity svg { width: 34px; height: 34px; color: var(--violet); }
.amenity span { font-family: var(--f-display); color: var(--ink); font-weight: 500; }

/* ---------- Espacios comunes / videos ---------- */
.commons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.commons figure { margin: 0; }
.commons .frame { aspect-ratio: 4 / 3; margin-bottom: 16px; }
.commons figcaption { font-family: var(--f-display); color: var(--ink); font-size: 1.15rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.vcard video { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; background: var(--ink); }
.vcard div { padding: 22px 24px 26px; }
.vcard h3 { margin-bottom: 10px; font-size: 1.25rem; }
.units { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.unit { display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff; font-family: var(--f-display); }
.unit b { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); font-weight: 500; font-size: .95rem; }

/* ---------- Arriendos ---------- */
.rent { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding-block: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.rent:first-child { padding-top: 0; }
.rent:nth-child(even) > :first-child { order: 2; }
.rent .frame { aspect-ratio: 16 / 11; }
.rent h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
.badge { display: inline-block; font-size: .82rem; font-family: var(--f-display); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.badge--ok { background: #E6F7EC; color: #13823B; }
.badge--soon { background: var(--mist); color: var(--slate); border: 1px solid var(--line); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); }
.cinfo { display: grid; gap: 0; }
.cinfo div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.cinfo svg { width: 22px; height: 22px; color: var(--violet); margin-top: 3px; }
.cinfo small { display: block; font-size: .85rem; color: var(--slate); }
.cinfo a, .cinfo p { color: var(--ink); font-family: var(--f-display); font-size: 1.05rem; margin: 0; }
.cinfo a:hover { color: var(--violet); }
.form { background: var(--mist); border-radius: 26px; padding: clamp(28px, 4vw, 52px); }
.form h3 { margin-bottom: 8px; }
.field { margin-top: 20px; }
.field label { display: block; font-family: var(--f-display); font-size: .88rem; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 18px; transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.form-note { font-size: .85rem; margin-top: 14px; color: var(--slate); }
.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; margin-top: 64px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 100px); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr 1.2fr; gap: 48px; }
.footer__logo { width: 260px; height: auto; margin-bottom: 22px; }
.footer__h { font-size: 1rem; margin-bottom: 18px; letter-spacing: 0; }
.footer__addr { font-style: normal; margin-bottom: 16px; line-height: 1.7; }
.footer__addr a:hover { color: var(--violet); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a:hover { color: var(--violet); }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: all .3s; }
.socials a:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer__map { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.footer__map iframe { width: 100%; height: 100%; border: 0; }
.footer__bottom { margin-top: 64px; padding-block: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(37,211,102,.6); transition: transform .35s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-split] { opacity: 1; transform: none; }
.img-reveal { clip-path: inset(12% 0 0 0 round 22px); transition: clip-path 1.4s var(--ease); }
.img-reveal.is-in { clip-path: inset(0 0 0 0 round 22px); }
.no-js .reveal, .no-js .img-reveal { opacity: 1; transform: none; clip-path: none; }
/* curvas de nivel que se dibujan */
.contour path { fill: none; stroke: #6D5CF0; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 5s var(--ease) forwards; }
.contour path:nth-child(2n) { animation-delay: .3s; stroke: #3B4A8A; }
.contour path:nth-child(3n) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .amenities { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero__grid, .split, .split--wide-img, .project, .rent, .contact-grid { grid-template-columns: 1fr; }
  .split--rev > :first-child, .project:nth-child(even) > :first-child, .rent:nth-child(even) > :first-child { order: 0; }
  .hero__index { display: none; }
  .stats, .pillars { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .pillar:nth-child(3) { border-left: 0; padding-left: 0; }
  .cards3, .commons { grid-template-columns: 1fr 1fr; }
  .specs, .specs--3 { grid-template-columns: 1fr; }
  .stack .frame + .frame { width: 44%; right: 4%; }
  .tabs__panel .dual { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .stats, .pillars, .cards3, .commons, .duo { grid-template-columns: 1fr; }
  .stat + .stat, .pillar + .pillar { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .duo a + a { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .amenities { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .mosaic .frame:nth-child(n) { grid-column: auto; grid-row: auto; }
  .mosaic .frame:nth-child(1) { grid-column: 1 / 3; grid-row: span 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 12px; }
  .stack .frame + .frame { display: none; }
  .gallery--portrait { columns: 2; }
}
@media (max-width: 900px) { .scroll-cue { display: none; } }
