/* Consultora Inmobiliaria y Proyectos — CIP S.A.S.
   Estilos del sitio. Colores de marca: amarillo #F9B31C y azul #1B2340. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #1b2340;
  --ink-2: #454d6b;
  --muted: #6b7390;
  --line: rgba(27, 35, 64, 0.1);
  --amber: #f9b31c;
  --amber-soft: #fff3d1;
  --amber-ink: #7a5200;
  --navy-deep: #131931;
  --wa: #1fae54;
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --shadow-float: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 50px -18px rgba(27, 35, 64, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Tipografía ---------- */
h1, h2, .display {
  font-stretch: 84%;
  font-weight: 680;
  letter-spacing: -0.022em;
  line-height: 1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.3vw, 5.5rem); }
h2 { font-size: clamp(2.05rem, 4.3vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-stretch: 90%; font-weight: 650; letter-spacing: -0.012em; line-height: 1.15; text-wrap: balance; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; max-width: 34em; }
.prose p { color: var(--ink-2); max-width: 66ch; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.tag { font-size: 0.9rem; font-weight: 600; color: var(--amber-ink); }
.muted { color: var(--muted); }

/* ---------- Vidrio ---------- */
.glass {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  backdrop-filter: blur(22px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-float);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.94); }
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.1;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2a3560; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #ffc233; }
.btn--light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--light:hover { box-shadow: inset 0 0 0 1px rgba(27, 35, 64, 0.3); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17994a; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--ink); }
.more svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.more:hover svg { transform: translateX(4px); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 14px 0 auto 0; z-index: 100; pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  width: min(100% - 2 * clamp(12px, 2.5vw, 28px), 1240px); margin-inline: auto;
  display: flex; align-items: center; gap: 18px;
  padding: 9px 10px 9px 18px; border-radius: 999px;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled .nav__bar { background: rgba(255, 255, 255, 0.78); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; }
.brand__text { display: grid; line-height: 1; font-stretch: 68%; text-transform: uppercase; }
.brand__text b { font-weight: 560; font-size: 1.28rem; letter-spacing: 0.01em; }
.brand__text i { font-style: normal; font-weight: 500; font-size: 0.74rem; letter-spacing: 0.035em; color: var(--ink-2); margin-top: 2px; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav__links a {
  text-decoration: none; font-size: 0.95rem; font-weight: 520; color: var(--ink-2);
  padding: 9px 13px; border-radius: 999px; white-space: nowrap; transition: background-color 0.2s, color 0.2s;
}
.nav__links a:hover { background: rgba(27, 35, 64, 0.07); color: var(--ink); }
.nav__links a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav__cta { min-height: 44px; padding: 10px 20px; }
.nav__toggle { display: none; }
.nav__only-mobile { display: none; }

@media (max-width: 1060px) {
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 16px;
    background: var(--ink); color: #fff; border: 0; border-radius: 999px; font-weight: 600; cursor: pointer;
  }
  .nav__toggle b { font-weight: 600; }
  .nav__toggle span { width: 16px; height: 10px; position: relative; }
  .nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
  .nav__toggle span::before { top: 0; } .nav__toggle span::after { bottom: 0; }
  .nav__toggle[aria-expanded="true"] span::before { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span::after { transform: translateY(-4px) rotate(-45deg); }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: 82px 12px auto 12px; margin: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px; border-radius: 28px; background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-float);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.98); transform-origin: top;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { font-size: 1.15rem; padding: 14px 16px; border-radius: 16px; }
  .nav__only-mobile { display: block; }
  .nav__links a.nav__only-mobile { background: var(--amber); color: var(--ink); text-align: center; font-weight: 650; margin-top: 8px; }
}
@media (max-width: 420px) { .brand__text i { display: none; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 9.5vw, 136px); }
.section--white { background: var(--surface); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4.5vw, 60px); }
.section__head--row { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 720px) { .section__head--row { grid-template-columns: 1fr; } }

/* ---------- Portada ---------- */
.hero { position: relative; padding-top: clamp(120px, 15vw, 176px); padding-bottom: clamp(40px, 6vw, 90px); overflow: clip; }
.aurora { position: absolute; inset: 0 0 -140px 0; z-index: -1; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; right: -12vw; top: -14vw; background: radial-gradient(circle, rgba(249, 179, 28, 0.42), rgba(249, 179, 28, 0) 68%); }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; left: -16vw; top: 22vw; background: radial-gradient(circle, rgba(122, 160, 255, 0.3), rgba(122, 160, 255, 0) 68%); }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; right: 22vw; bottom: -12vw; background: radial-gradient(circle, rgba(27, 35, 64, 0.12), rgba(27, 35, 64, 0) 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero__stage { position: relative; aspect-ratio: 1 / 0.92; perspective: 1400px; }
.hero__photo {
  position: absolute; inset: 6% 4% 10% 8%; border-radius: var(--radius-xl); overflow: hidden;
  transform: rotateY(calc(-11deg * (1 - var(--p, 0)))) rotateX(calc(5deg * (1 - var(--p, 0)))) scale(calc(0.96 + 0.04 * var(--p, 0)));
  transform-origin: 60% 50%;
  box-shadow: 0 60px 90px -40px rgba(27, 35, 64, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  will-change: transform;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip {
  position: absolute; left: 0; bottom: 2%; z-index: 3; padding: 16px 20px 16px 16px; border-radius: 24px; text-decoration: none;
  display: grid; grid-template-columns: 56px auto; gap: 2px 14px; align-items: center; max-width: 330px;
}
.hero__chip img { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.hero__chip span { font-size: 0.9rem; color: var(--ink-2); line-height: 1.25; }
.hero__chip strong { font-size: 1.3rem; font-stretch: 88%; font-weight: 700; letter-spacing: -0.01em; }
.hero__house {
  position: absolute; right: -7%; top: -9%; width: 47%; aspect-ratio: 1; z-index: 2;
  background-size: 600% 400%; background-repeat: no-repeat; filter: drop-shadow(0 30px 30px rgba(27, 35, 64, 0.18));
}
.hero__float { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 18px 18px rgba(27, 35, 64, 0.16)); }
.hero__float--key { width: 26%; right: -3%; bottom: 3%; }
.hero__float--pin { width: 17%; left: 1%; top: 2%; }
.floaty { animation: floaty 7s ease-in-out infinite; }
.floaty--b { animation-duration: 9s; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 2.5deg; } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { aspect-ratio: 1 / 0.86; margin-inline: 2%; }
  .hero__chip { max-width: 290px; }
}
@media (max-width: 520px) {
  .hero__chip { grid-template-columns: auto; padding: 12px 16px; border-radius: 20px; bottom: -4%; }
  .hero__chip img { display: none; }
  .hero__chip strong { font-size: 1.15rem; }
  .hero__photo { inset: 6% 2% 12% 6%; }
}

/* Cabecera de páginas internas */
.phero { position: relative; padding-top: clamp(124px, 14vw, 180px); padding-bottom: clamp(36px, 5vw, 64px); overflow: clip; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px; align-items: center; }
.phero__copy { display: grid; gap: 22px; justify-items: start; }
.phero__art { justify-self: center; width: min(100%, 380px); filter: drop-shadow(0 30px 30px rgba(27, 35, 64, 0.16)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.92rem; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(27, 35, 64, 0.3); }
@media (max-width: 820px) { .phero__grid { grid-template-columns: 1fr; } .phero__art { width: 56%; order: -1; justify-self: start; margin-left: -4%; } }

/* ---------- Texto que se enciende con el scroll ---------- */
.statement { font-size: clamp(1.6rem, 3.5vw, 3rem); font-stretch: 88%; font-weight: 620; line-height: 1.16; letter-spacing: -0.018em; max-width: 24em; text-wrap: pretty; }
.statement .w { color: rgba(27, 35, 64, 0.16); transition: color 0.4s linear; }
.statement .w.on { color: var(--ink); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: clamp(24px, 5vw, 72px); align-items: start; }
.statement-side { display: grid; gap: 18px; position: sticky; top: 130px; }
.statement-side img { width: 100%; max-width: 260px; }
@media (max-width: 820px) { .statement-grid { grid-template-columns: 1fr; } .statement-side { position: static; grid-template-columns: 120px 1fr; align-items: center; } }

/* ---------- Tarjetas de inmuebles ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 400px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px var(--gutter) 28px; margin-inline: calc(-1 * var(--gutter)); scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.rail-ctrl { display: flex; gap: 10px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s, transform 0.3s var(--ease); }
.round:hover { background: var(--ink); color: #fff; }
.round:disabled { opacity: 0.35; pointer-events: none; }
.round svg { width: 16px; height: 16px; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.pcard { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(27, 35, 64, 0.42); }
.pcard__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: #e9ecf3; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__badge { position: absolute; left: 14px; top: 14px; padding: 7px 13px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.pcard__body { padding: 20px 22px 24px; display: grid; gap: 6px; align-content: start; }
.pcard__price { font-size: 1.55rem; font-stretch: 86%; font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; }
.pcard__place { color: var(--ink-2); }
.pcard__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 0.93rem; color: var(--muted); }
.pcard[hidden] { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 560; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.chip:hover { box-shadow: inset 0 0 0 1px rgba(27, 35, 64, 0.35); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- Servicios (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.svc { position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; overflow: hidden; min-height: 300px; }
.section--white .svc { background: var(--bg); }
.svc p { color: var(--ink-2); max-width: 44ch; }
.svc .more { margin-top: 6px; }
.svc__art { width: clamp(120px, 15vw, 190px); justify-self: end; margin: -6px -10px -14px 0; align-self: end; transition: transform 0.7s var(--ease); }
.svc:hover .svc__art { transform: translateY(-8px) rotate(-3deg) scale(1.04); }
.svc--wide { grid-column: span 3; grid-template-columns: 1fr auto; column-gap: 12px; }
.svc--wide > :not(.svc__art) { grid-column: 1; }
.svc--wide .svc__art { grid-column: 2; grid-row: 1 / span 4; width: clamp(140px, 17vw, 230px); align-self: center; }
.svc--third { grid-column: span 2; }
.svc--ink { background: var(--ink) !important; color: #fff; }
.svc--ink p { color: rgba(255, 255, 255, 0.76); }
.svc--ink .more { color: var(--amber); }
.svc--amber { background: var(--amber) !important; }
.svc--amber p { color: #3d3210; }
@media (max-width: 980px) { .svc--wide, .svc--third { grid-column: span 6; } .svc--third { grid-template-columns: 1fr auto; column-gap: 12px; min-height: 0; } .svc--third > :not(.svc__art) { grid-column: 1; } .svc--third .svc__art { grid-column: 2; grid-row: 1 / span 4; align-self: center; } }
@media (max-width: 560px) { .svc--wide, .svc--third { grid-template-columns: 1fr; } .svc--wide .svc__art, .svc--third .svc__art { grid-column: 1; grid-row: auto; } }

/* ---------- Bloque oscuro: invertir en EE. UU. ---------- */
.usa { position: relative; background: var(--navy-deep); color: #fff; border-radius: clamp(28px, 4vw, 52px); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); min-height: 620px; }
.usa__copy { padding: clamp(32px, 5vw, 72px); display: grid; gap: 22px; align-content: center; justify-items: start; position: relative; z-index: 1; }
.usa__copy .lead { color: rgba(255, 255, 255, 0.78); }
.usa__media { position: relative; min-height: 340px; overflow: hidden; }
.usa__media > img:first-child { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.usa__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(19, 25, 49, 0.35) 34%, rgba(19, 25, 49, 0) 70%); }
.usa__cards { position: absolute; z-index: 2; left: 8%; right: 6%; bottom: 7%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.glass-dark { background: rgba(19, 25, 49, 0.5); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 22px; padding: 16px 18px; color: #fff; text-decoration: none; display: grid; gap: 2px; transition: transform 0.4s var(--ease), background-color 0.3s; }
.glass-dark:hover { transform: translateY(-4px); background: rgba(19, 25, 49, 0.66); }
.glass-dark span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); }
.glass-dark strong { font-size: 1.35rem; font-stretch: 86%; }
.usa__art { position: absolute; width: clamp(120px, 15vw, 200px); right: 4%; top: 5%; z-index: 2; }
.figure-big { font-size: clamp(3.4rem, 8vw, 6.4rem); font-stretch: 78%; font-weight: 700; letter-spacing: -0.03em; line-height: 0.9; color: var(--amber); }
.figure-note { color: rgba(255, 255, 255, 0.78); max-width: 30ch; }
@media (max-width: 900px) { .usa { grid-template-columns: 1fr; } .usa__media { min-height: 420px; } .usa__media::before { background: linear-gradient(180deg, var(--navy-deep) 0%, rgba(19, 25, 49, 0) 45%); } }
@media (max-width: 480px) { .usa__cards { grid-template-columns: 1fr; } }

/* ---------- Dos columnas, misión y visión ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 44px); display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; }
.section--white .panel { background: var(--bg); }
.panel p { color: var(--ink-2); max-width: 52ch; }
.panel__art { width: clamp(110px, 13vw, 170px); margin: -8px 0 4px -10px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split__copy { display: grid; gap: 18px; justify-items: start; }
.split__media { position: relative; }
.split__media > img:first-child { border-radius: var(--radius-xl); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split__art { position: absolute; width: 38%; right: -6%; bottom: -12%; filter: drop-shadow(0 24px 24px rgba(27, 35, 64, 0.2)); }
.split--flip .split__art { right: auto; left: -6%; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } .split__art { right: 0; } .split--flip .split__art { left: 0; } }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: paso; }
.step { background: var(--surface); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 8px; align-content: start; counter-increment: paso; }
.step::before { content: counter(paso); width: 44px; height: 44px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; font-weight: 700; font-stretch: 84%; font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Ficha de inmueble ---------- */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 8; position: relative; }
.mosaic button, .gallery button { padding: 0; border: 0; background: #e9ecf3; cursor: zoom-in; overflow: hidden; display: block; }
.mosaic button:first-child { grid-row: span 2; }
.mosaic img, .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.3s; }
.mosaic button:hover img, .gallery button:hover img { transform: scale(1.04); }
.mosaic--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 9; }
.mosaic--2 { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr; }
.mosaic--2 button:first-child { grid-row: auto; }
.mosaic .mosaic__all { position: absolute; right: 18px; bottom: 18px; border-radius: 999px; padding: 11px 20px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.8); cursor: pointer; background: rgba(255, 255, 255, 0.72); overflow: visible; }
.mosaic .mosaic__all:hover { background: #fff; }
@media (max-width: 720px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; aspect-ratio: 1 / 1; } .mosaic button:first-child { grid-row: auto; grid-column: span 2; } .mosaic button:not(.mosaic__all):nth-child(n + 4) { display: none; } .mosaic--1, .mosaic--2 { aspect-ratio: 4 / 3; } .mosaic--2 { grid-template-rows: 1fr; } .mosaic--2 button:first-child { grid-column: auto; } }

.ficha { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.ficha__main { display: grid; gap: clamp(32px, 4vw, 52px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact { background: var(--surface); border-radius: var(--radius-md); padding: 16px 18px; display: grid; gap: 2px; }
.fact dt { font-size: 0.9rem; color: var(--muted); }
.fact dd { font-size: 1.25rem; font-weight: 650; font-stretch: 90%; line-height: 1.2; }
.buybox { position: sticky; top: 110px; border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 14px; }
.buybox__price { font-size: 2.3rem; font-stretch: 82%; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.buybox .btn { width: 100%; }
.buybox__list { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.97rem; }
.buybox__list a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 980px) { .ficha { grid-template-columns: 1fr; } .buybox { position: static; order: -1; } }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 8px; } .gallery button { margin-bottom: 8px; border-radius: 12px; } }

.gallery { columns: 3 240px; column-gap: 12px; }
.gallery button { width: 100%; margin-bottom: 12px; border-radius: var(--radius-md); break-inside: avoid; }
.gallery img { height: auto; }
.list-info { display: grid; gap: 14px; }
.list-info li { background: var(--surface); border-radius: var(--radius-md); padding: 18px 20px; color: var(--ink-2); }
.list-info strong { color: var(--ink); }

/* Lightbox */
.lb { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(13, 17, 34, 0.9); color: #fff; }
.lb::backdrop { background: rgba(13, 17, 34, 0.6); }
.lb__stage { position: absolute; inset: 64px 72px 64px; display: grid; place-items: center; }
.lb__stage img { max-width: calc(100vw - 144px); max-height: calc(100dvh - 128px); width: auto; height: auto; object-fit: contain; border-radius: 14px; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; display: grid; place-items: center; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lb__btn:hover { background: rgba(255, 255, 255, 0.26); }
.lb__btn svg { width: 18px; height: 18px; }
.lb__close { right: 16px; top: 12px; } .lb__prev { left: 12px; top: 50%; translate: 0 -50%; } .lb__next { right: 12px; top: 50%; translate: 0 -50%; }
.lb__count { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }
@media (max-width: 640px) { .lb__stage { inset: 70px 8px 70px; } .lb__stage img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 140px); } .lb__prev, .lb__next { top: auto; bottom: 10px; translate: none; } }

/* ---------- Formularios ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 0.97rem; padding: 0; }
.field .hint { font-size: 0.88rem; color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(27, 35, 64, 0.18); background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(249, 179, 28, 0.35); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; font-weight: 560; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-width: 48px; min-height: 46px; padding: 0 14px; border-radius: 12px; background: var(--bg); border: 1px solid rgba(27, 35, 64, 0.18); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form__note { font-size: 0.92rem; color: var(--muted); }
.form__msg { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; background: var(--amber-soft); color: #4d3600; }
.form__msg[hidden] { display: none; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.form-side { display: grid; gap: 20px; position: sticky; top: 120px; }
.form-side img.photo { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 940px) { .form-grid { grid-template-columns: 1fr; } .form-side { position: static; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ccard { background: var(--surface); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 8px; align-content: start; text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.ccard:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(27, 35, 64, 0.4); }
.ccard span { color: var(--muted); font-size: 0.95rem; }
.ccard strong { font-size: 1.3rem; font-stretch: 90%; line-height: 1.2; overflow-wrap: anywhere; }
.ccard svg { width: 30px; height: 30px; margin-bottom: 8px; }

/* Llamado final */
.cta { position: relative; border-radius: clamp(28px, 4vw, 52px); padding: clamp(36px, 6vw, 88px); overflow: hidden; background: linear-gradient(135deg, #fff6dc 0%, #ffffff 46%, #e9efff 100%); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta__copy { display: grid; gap: 22px; justify-items: start; position: relative; z-index: 1; }
.cta__art { width: clamp(150px, 22vw, 300px); filter: drop-shadow(0 26px 26px rgba(27, 35, 64, 0.18)); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta__art { justify-self: end; margin-top: -30px; } }

/* Datos de empresa */
.datalist { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

/* Política */
.legal { max-width: 78ch; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 2.2em; line-height: 1.1; }
.legal h3 { margin-top: 1.8em; }
.legal p { margin-top: 0.9em; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.78); padding-block: clamp(48px, 6vw, 80px) 28px; margin-top: clamp(72px, 9vw, 130px); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer h2 { font-size: 1rem; font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, 0.6); margin-bottom: 14px; }
.footer li + li { margin-top: 9px; }
.footer .brand__text b { color: #fff; } .footer .brand__text i { color: rgba(255, 255, 255, 0.7); }
.footer__about { display: grid; gap: 16px; align-content: start; max-width: 34ch; }
.footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 0.92rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa {
  position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 90;
  display: inline-flex; align-items: center; gap: 0; height: 64px; padding: 6px; border-radius: 999px; text-decoration: none; color: var(--ink);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.wa__icon { position: relative; }
.wa__icon::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(31, 174, 84, 0.55); animation: wa-ring 3.2s ease-out infinite; pointer-events: none; }
@keyframes wa-ring { 0% { transform: scale(0.9); opacity: 0.9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.wa__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(160deg, #3ddc7c, #17a34a); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 8px 18px -6px rgba(23, 163, 74, 0.7); }
.wa__icon svg { width: 30px; height: 30px; fill: #fff; }
.wa__label { display: grid; line-height: 1.15; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.5s var(--ease), opacity 0.35s, padding 0.5s var(--ease); }
.wa__label b { font-weight: 650; } .wa__label small { font-size: 0.82rem; color: var(--ink-2); }
.wa:hover, .wa:focus-visible, .wa.is-open { transform: translateY(-3px); }
.wa:hover .wa__label, .wa:focus-visible .wa__label, .wa.is-open .wa__label { max-width: 220px; opacity: 1; padding: 0 18px 0 12px; }

/* ---------- Aparición con el scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px) scale(0.985); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(0.9); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .floaty, .wa__icon::before { animation: none; }
  .hero__photo { transform: none; }
  .statement .w { color: var(--ink); }
  * { transition-duration: 0.01ms !important; }
}

/* Trío de fotos */
.trio figure { height: clamp(240px, 30vw, 420px); aspect-ratio: auto !important; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr 1fr !important; } .trio figure:first-child { grid-column: span 2; } .trio figure { height: 200px; } }

/* Contención horizontal y ajustes de pantallas pequeñas */
main, .footer { overflow-x: clip; }
.banner { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 21 / 9; }
.banner img { width: 100%; height: 112%; object-fit: cover; }
.trio { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.trio figure { min-width: 0; border-radius: var(--radius-lg); overflow: hidden; }
.trio img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1280px) { .split__art { right: -2%; } .split--flip .split__art { left: -2%; right: auto; } }
@media (max-width: 760px) {
  .banner { aspect-ratio: 4 / 3; }
  .trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(30px); }
  .js [data-reveal].is-in { transform: none; }
}
