/* ==================================================================
   Asociación Mutual Las Colonias — hoja de estilos
   Dirección visual: claro, aireado y tipográfico (referencia: FIND Real Estate)
   Colores de marca: azul #143DA5 (web) · azul del logo #2E3192 · azul noche derivado
   Tipografía: Manrope (todo) + Bodoni Moda (titular de la portada y lema), en /assets/fonts
   Regla de títulos: lo que va en <em> se pinta en gris (texto a dos tonos).
   ================================================================== */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  /* Marca */
  --blue: #143da5;
  --blue-d: #0f2f84;
  --indigo: #2e3192;
  --blue-l: #6f8fe6;
  --bone: #f3e9d8;      /* blanco cálido de la cursiva del titular de la portada */

  /* Neutros (azul noche en lugar de negro) */
  --ink: #0b1333;
  --ink-2: #131d48;
  --paper: #ffffff;
  --sky: #f2f5fc;
  --sky-2: #e3e9f8;
  --sky-3: #c3d1f2;

  /* Texto */
  --t1: var(--ink);
  --t2: #4c5576;
  --mute: #9ba4c1;
  --line: rgba(11, 19, 51, .11);
  --line-2: rgba(11, 19, 51, .22);
  --d-t2: rgba(255, 255, 255, .72);
  --d-mute: rgba(255, 255, 255, .38);
  --d-line: rgba(255, 255, 255, .14);

  --wa: #1fa855;
  --err: #c2371f;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;

  --wrap: 1440px;
  --gutter: clamp(16px, 3.2vw, 48px);
  --hdr-h: 76px;
  --sec: clamp(84px, 10vw, 150px);
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); background: var(--paper); }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.65; color: var(--t2); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 600; color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
body.is-locked { overflow: hidden; }

/* ---------- Tipografía ---------- */
.t-xl { font-size: clamp(2.35rem, 5.2vw, 5rem); font-weight: 500; letter-spacing: -.048em; line-height: 1; color: var(--ink); }
.t-lg { font-size: clamp(2rem, 3.8vw, 3.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; color: var(--ink); }
.t-md { font-size: clamp(1.4rem, 2.3vw, 2.1rem); font-weight: 500; letter-spacing: -.032em; line-height: 1.2; color: var(--ink); }
.t-statement { font-size: clamp(1.65rem, 3.15vw, 3rem); font-weight: 500; letter-spacing: -.038em; line-height: 1.14; color: var(--ink); max-width: 24ch; }
.t-statement--sm { font-size: clamp(1.35rem, 2.35vw, 2.15rem); max-width: 34ch; line-height: 1.22; }
.t-xl em, .t-lg em, .t-md em, .t-statement em, .phero__title em, .lead__title em, .ftr__lead em { font-style: normal; color: var(--mute); }
.mute { color: var(--mute); }
.is-muted { color: var(--mute); }

/* Rótulo de sección con las franjas del logo */
.label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: .92rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); }
.label::before { content: ""; flex: none; width: 15px; height: 11px; background: repeating-linear-gradient(180deg, var(--blue) 0 2px, transparent 2px 4.5px); }
.label--light, .dark .label { color: #fff; }
.label--light::before, .dark .label::before { background: repeating-linear-gradient(180deg, var(--blue-l) 0 2px, transparent 2px 4.5px); }

/* ---------- Botones (píldoras con relleno al pasar el mouse) ---------- */
.btn { --bh: 50px; --fill: var(--ink); position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: var(--bh); padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; letter-spacing: -.01em; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease), transform .3s var(--ease); }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--fill); transform: translateY(102%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.98); }
.btn .icon { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover > .icon:last-child { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; --fill: var(--ink); }
.btn--primary:hover { color: #fff; }
.btn--dark { background: var(--ink); color: #fff; --fill: var(--blue); }
.btn--dark:hover { color: #fff; }
.btn--light { background: #fff; color: var(--ink); --fill: var(--blue); }
.btn--light:hover { color: #fff; }
.btn--line { border-color: var(--line-2); color: var(--ink); background: transparent; --fill: var(--ink); }
.btn--line:hover { color: #fff; border-color: var(--ink); }
.btn--line-light { border-color: rgba(255, 255, 255, .4); color: #fff; background: transparent; --fill: #fff; }
.btn--line-light:hover { color: var(--ink); border-color: #fff; }
.btn--glass { background: rgba(255, 255, 255, .55); color: var(--ink); border-color: rgba(255, 255, 255, .7); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); --fill: #fff; }
.btn--sm { --bh: 42px; padding: 0 18px; font-size: .88rem; }
.btn--lg { --bh: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link-arrow { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease), gap .4s var(--ease); justify-self: start; align-self: start; }
.link-arrow:hover { background-size: 40% 1px; gap: .9em; }
.link-arrow .icon { width: 18px; height: 18px; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); transition: background .3s, color .3s; }
.iconbtn:hover { background: var(--ink); color: #fff; }
.iconbtn--light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.iconbtn--light:hover { background: #fff; color: var(--ink); }
.roundbtn { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: transparent; border: 1px solid var(--line-2); color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.roundbtn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.roundbtn .icon { width: 20px; height: 20px; }

/* ---------- Precarga ---------- */
.intro { display: none; }
.has-intro .intro { position: fixed; inset: 0; z-index: 200; display: block; background: #fff; color: var(--ink); clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-io); }
.intro.is-done { clip-path: inset(0 0 100% 0); }
.intro__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 18px; transition: transform 1s var(--ease-io), opacity .6s; }
.intro.is-done .intro__center { transform: translate(-50%, -90%); opacity: 0; }
.intro__mark { position: relative; width: 74px; height: 74px; flex: none; }
.intro__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; clip-path: inset(100% 0 0 0); animation: introLogo 1.1s .7s var(--ease-io) forwards; }
.intro__stripes { position: absolute; inset: 14% 8%; display: grid; gap: 7%; align-content: center; }
.intro__stripes i { display: block; height: 4px; background: var(--blue); transform: scaleX(0); transform-origin: left; animation: introStripe 1.3s var(--ease-io) forwards; }
.intro__stripes i:nth-child(2) { animation-delay: .08s; } .intro__stripes i:nth-child(3) { animation-delay: .16s; } .intro__stripes i:nth-child(4) { animation-delay: .24s; } .intro__stripes i:nth-child(5) { animation-delay: .32s; }
@keyframes introStripe { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes introLogo { to { clip-path: inset(0 0 0 0); } }
.intro__name { display: flex; flex-direction: column; line-height: 1; overflow: hidden; white-space: nowrap; padding-bottom: .1em; }
.intro__name span, .intro__name b { display: block; transform: translateY(110%); animation: introUp 1s var(--ease) forwards; }
.intro__name span { font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--t2); margin-bottom: 6px; animation-delay: .9s; }
.intro__name b { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.045em; animation-delay: 1s; }
@keyframes introUp { to { transform: none; } }
.intro__tag { position: absolute; left: var(--gutter); bottom: calc(var(--gutter) + 18px); font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 500; letter-spacing: -.02em; opacity: 0; animation: fadeIn .8s 1.1s forwards; }
.intro__tag span { color: var(--mute); }
.intro__count { position: absolute; right: var(--gutter); bottom: calc(var(--gutter) + 6px); margin: 0; font-size: clamp(4rem, 12vw, 10rem); font-weight: 500; letter-spacing: -.06em; line-height: .8; font-variant-numeric: tabular-nums; color: var(--ink); }
.intro__count small { font-size: .3em; color: var(--blue); letter-spacing: 0; margin-left: .1em; }
.intro__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sky-2); }
.intro__bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) { .intro__count { font-size: 4.4rem; } .intro__tag { bottom: calc(var(--gutter) + 90px); } }

/* ---------- Cortina entre páginas ---------- */
.curtain { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: var(--ink); pointer-events: none; transform: translateY(100%); }
.curtain__logo { width: 54px; height: 54px; object-fit: contain; opacity: .9; }
.js .curtain { animation: curtainOut .8s .05s var(--ease-io) both; }
.has-intro .curtain { display: none; }
.is-leaving .curtain { display: grid; animation: curtainIn .55s var(--ease-io) both; }
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes curtainIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- Cabecera ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .45s var(--ease), transform .55s var(--ease), box-shadow .45s; }
.hdr.is-scrolled { background: rgba(255, 255, 255, .84); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__inner { display: flex; align-items: center; gap: 20px; height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand__logo { width: 40px; height: 40px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text span { font-size: .58rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--t2); margin-bottom: 4px; }
.brand__text b { font-size: 1.22rem; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.brand--light, .brand--light .brand__text b { color: #fff; }
.brand--light .brand__text span { color: rgba(255, 255, 255, .6); }

.nav { display: none; }
.nav__list { list-style: none; display: flex; gap: clamp(22px, 2.6vw, 40px); }
.nav__link { position: relative; display: inline-block; overflow: hidden; padding: 6px 0; font-size: .96rem; font-weight: 500; color: var(--ink); text-decoration: none; line-height: 1.3; }
.nav__link > span { position: relative; display: inline-block; transition: transform .5s var(--ease); }
.nav__link > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; padding-top: 6px; color: var(--blue); }
.nav__link:hover > span { transform: translateY(calc(-100% - 6px)); }
.nav__link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--blue); }

.hdr__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.hdr__phone { display: none; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hdr__phone .icon { width: 16px; height: 16px; color: var(--blue); }
.hdr__cta { display: none; }
.hdr__toggle { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .9rem; font-weight: 600; color: var(--ink); }
.hdr__toggle i { position: relative; width: 18px; height: 8px; }
.hdr__toggle i::before, .hdr__toggle i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; border-radius: 2px; }
.hdr__toggle i::before { top: 0; } .hdr__toggle i::after { bottom: 0; left: 6px; }
@media (min-width: 640px) { .hdr__cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .hdr__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav { display: block; }
  .hdr__actions { justify-self: end; margin-left: 0; }
  .hdr__toggle { display: none; }
}
@media (min-width: 1320px) { .hdr__phone { display: inline-flex; } }

/* Cabecera sobre la portada del inicio: transparente y con texto claro.
   .is-over la pone main.js mientras la foto de la portada sigue a la vista. */
.brand__logo--light { display: none; }
.page-home .hdr:not(.is-scrolled), .hdr.is-over { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
:is(.page-home .hdr:not(.is-scrolled), .hdr.is-over) .brand__logo { display: none; }
:is(.page-home .hdr:not(.is-scrolled), .hdr.is-over) .brand__logo--light { display: block; }
:is(.page-home .hdr:not(.is-scrolled), .hdr.is-over) :is(.brand__text b, .nav__link, .hdr__phone, .hdr__phone .icon) { color: #fff; }
:is(.page-home .hdr:not(.is-scrolled), .hdr.is-over) .brand__text span { color: rgba(255, 255, 255, .74); }
:is(.page-home .hdr:not(.is-scrolled), .hdr.is-over) .nav__link > span::after { color: var(--bone); }
:is(.page-home .hdr:not(.is-scrolled), .hdr.is-over) .nav__link.is-active::after { background: #fff; }
:is(.page-home .hdr:not(.is-scrolled), .hdr.is-over) .hdr__cta { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); color: #fff; --fill: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
:is(.page-home .hdr:not(.is-scrolled), .hdr.is-over) .hdr__cta:hover { color: var(--ink); border-color: #fff; }
:is(.page-home .hdr:not(.is-scrolled), .hdr.is-over) .hdr__toggle { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; }

/* Menú móvil */
.mnav { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff; }
.mnav__panel { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 var(--gutter) 24px; overflow-y: auto; animation: fadeIn .4s var(--ease); }
.mnav__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--hdr-h); border-bottom: 1px solid var(--d-line); }
.mnav__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--d-line); background: transparent; display: grid; place-items: center; color: #fff; }
.mnav__list { list-style: none; margin: 22px 0 26px; }
.mnav__list li { overflow: hidden; }
.mnav__list a { display: flex; align-items: baseline; gap: 14px; padding: 4px 0; font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.08; color: #fff; text-decoration: none; animation: menuUp .8s calc(var(--i) * 70ms + 80ms) var(--ease) both; }
.mnav__list a[aria-current] { color: var(--blue-l); }
@keyframes menuUp { from { transform: translateY(105%); } to { transform: none; } }
.mnav__num { font-size: .78rem; font-weight: 600; letter-spacing: 0; color: var(--d-mute); min-width: 24px; }
.mnav__projects { display: grid; gap: 4px; border-top: 1px solid var(--d-line); padding-top: 20px; animation: fadeUp .7s .4s var(--ease) both; }
.mnav__eyebrow { font-size: .82rem; font-weight: 600; color: var(--d-mute); margin-bottom: 4px; }
.mnav__projects a { display: flex; align-items: center; gap: 14px; padding: 10px 0; text-decoration: none; color: #fff; border-bottom: 1px solid var(--d-line); }
.mnav__projects a > .icon { margin-left: auto; width: 18px; height: 18px; color: var(--d-mute); }
.mnav__projects img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: #fff; padding: 5px; }
.mnav__projects b { display: block; font-weight: 600; color: #fff; }
.mnav__projects small { color: var(--d-t2); }
.mnav__foot { margin-top: auto; padding-top: 26px; display: grid; gap: 10px; animation: fadeUp .7s .5s var(--ease) both; }
.mnav__hours { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .84rem; color: var(--d-t2); margin-top: 6px; }
.mnav__hours .icon { width: 15px; height: 15px; }

/* ---------- Secciones y rejilla ---------- */
.sec { position: relative; padding-block: var(--sec); }
.sec--flush-top { padding-top: 0; }
.sec--sky { background: var(--sky); }
.dark { background: var(--ink); color: var(--d-t2); }
.dark h2, .dark h3, .dark .t-xl, .dark .t-md, .dark .t-lg, .dark strong, .dark b { color: #fff; }
.dark em, .dark .mute { color: var(--d-mute); }
.dark .row__aside, .dark .row__aside p { color: var(--d-t2); }

.row { display: grid; gap: 14px 0; margin-bottom: clamp(40px, 6vw, 88px); }
.row__label .label { margin: 0; }
.row__main { min-width: 0; }
.row__main--split { display: grid; gap: 22px; }
.row__aside { display: grid; gap: 18px; justify-items: start; color: var(--t2); max-width: 42ch; }
.shead { display: grid; gap: 4px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 1024px) {
  .row { grid-template-columns: 5fr 7fr; column-gap: clamp(24px, 3vw, 48px); align-items: start; }
  .row__label { padding-top: .5em; }
}
@media (min-width: 1200px) { .row__main--split { grid-template-columns: 1fr minmax(260px, 330px); align-items: end; column-gap: 40px; } }

/* ---------- Animaciones de aparición ---------- */
[data-reveal] { transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(40px); }
/* Fotos: una cortina del color de la sección se retira hacia arriba.
   (No se usa clip-path en la foto: el navegador la daría por invisible y no la cargaría a tiempo.) */
:where(.js [data-reveal="clip"]) { position: relative; }
.js [data-reveal="clip"]:not(.is-in) { opacity: 1; transform: none; }
.js [data-reveal="clip"]::after { content: ""; position: absolute; inset: -1px; z-index: 3; background: var(--reveal-bg, #fff); transform-origin: 50% 0; pointer-events: none; transition: transform 1.4s var(--ease-io); transition-delay: var(--d, 0ms); }
.js [data-reveal="clip"].is-in::after { transform: scaleY(0); }
.js [data-reveal="clip"] > img:not([data-parallax]) { transition: transform 2s var(--ease); }
.js [data-reveal="clip"]:not(.is-in) > img:not([data-parallax]) { transform: scale(1.2); }
.sec--sky, .consult { --reveal-bg: var(--sky); }
.dark { --reveal-bg: var(--ink); }
.js [data-reveal="zoom"]:not(.is-in) { transform: translateX(60px); }
.js [data-reveal="zoom"] img { transition: transform 1.8s var(--ease); }
.js [data-reveal="zoom"]:not(.is-in) img { transform: scale(1.3); }

/* Títulos: palabras que suben desde una máscara */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.sw > span { display: inline-block; transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi, 0) * 45ms); }
.js [data-split]:not(.is-in) .sw > span { transform: translateY(110%); }
/* Párrafos que se "encienden" palabra por palabra al hacer scroll */
.js [data-words] .w { opacity: .16; transition: opacity .3s linear; }
.js [data-words] .w.on { opacity: 1; }

[data-parallax], [data-parallax-x] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
/* Respaldo: si algo falla con JavaScript, todo se muestra */
.no-anim [data-reveal], .no-anim [data-reveal] > *, .no-anim [data-split] .sw > span, .no-anim [data-words] .w { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.no-anim .intro, .no-anim .curtain, .no-anim [data-reveal]::after { display: none !important; }

/* ---------- Portada (inicio) ----------
   Render a pantalla completa con el titular en Bodoni abajo a la izquierda. */
.hero { position: relative; background: var(--ink); }
.hero__sticky { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink); color: #fff; }

.hero__media { position: absolute; inset: 0; z-index: 1; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.is-ready .hero__media img { animation: heroZoom 2.6s var(--ease) both, heroDrift 30s 2.6s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.16); } to { transform: scale(1); } }
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.07) translate3d(-.8%, -1%, 0); } }

/* Velos: oscurecen arriba (cabecera) y abajo a la izquierda (titular) para que el texto se lea */
.hero__grade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 13, 38, .42) 0, rgba(8, 13, 38, 0) 20%),
    linear-gradient(0deg, rgba(8, 13, 38, .9) 0, rgba(8, 13, 38, .6) 17%, rgba(8, 13, 38, .2) 42%, rgba(8, 13, 38, 0) 64%),
    linear-gradient(90deg, rgba(8, 13, 38, .28) 0, rgba(8, 13, 38, 0) 55%); }

.hero__content { position: relative; z-index: 3; display: grid; padding-top: calc(var(--hdr-h) + 12px); will-change: transform, opacity; }
.hero__place { justify-self: start; display: inline-flex; align-items: center; gap: 16px; margin-bottom: clamp(10px, 1.8vh, 20px); font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; line-height: 1.4; color: rgba(255, 255, 255, .88); text-decoration: none; transition: color .3s; }
.hero__place i { flex: none; width: clamp(30px, 4.2vw, 60px); height: 1px; background: currentColor; opacity: .75; transform-origin: left; transition: transform .5s var(--ease); }
.hero__place:hover { color: #fff; }
.hero__place:hover i { transform: scaleX(1.35); }

/* "opsz" baja engrosa los trazos finos de la Bodoni para que se lean sobre la foto */
.hero__title { display: grid; justify-items: start; font-family: var(--serif); font-weight: 400; letter-spacing: 0; line-height: 1; color: #fff; text-shadow: 0 2px 34px rgba(8, 13, 38, .32); }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; }
.hero__line--caps { font-size: clamp(2.5rem, min(5.9vw, 12.5vh), 6.4rem); font-variation-settings: "opsz" 18; line-height: 1.04; letter-spacing: -.012em; text-transform: uppercase; }
.hero__line--script { margin: -.15em 0 0 clamp(18px, 6.4vw, 104px); padding: .08em .16em .2em .05em; font-size: clamp(4.4rem, min(12.2vw, 26vh), 13.4rem); font-variation-settings: "opsz" 22; font-style: italic; font-weight: 540; line-height: .86; letter-spacing: -.03em; color: var(--bone); }

.hero__row { display: grid; align-items: end; gap: 20px clamp(28px, 3.4vw, 56px); margin-top: clamp(6px, 1.6vh, 18px); }
.hero__sub { font-size: clamp(1rem, 1.2vw, 1.14rem); font-weight: 500; letter-spacing: -.012em; line-height: 1.5; color: #fff; }
.hero__sub span { display: block; color: rgba(255, 255, 255, .74); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero__go { display: inline-flex; align-items: center; gap: 16px; font-size: .98rem; font-weight: 500; letter-spacing: -.01em; color: #fff; text-decoration: none; }
.hero__go i { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.hero__go .icon { width: 20px; height: 20px; transition: transform .45s var(--ease); }
.hero__go:hover i { background: #fff; border-color: #fff; color: var(--ink); }
.hero__go:hover .icon { transform: translateY(3px); }
.hero__price { display: grid; gap: 2px; font-size: .9rem; line-height: 1.3; color: rgba(255, 255, 255, .78); }
.hero__price small { font-size: .78rem; font-weight: 500; color: rgba(255, 255, 255, .78); }
.hero__price strong { font-size: 1.22rem; font-weight: 600; letter-spacing: -.02em; color: #fff; }
@media (min-width: 900px) { .hero__row { grid-template-columns: auto 1fr; } }
@media (min-width: 1320px) {
  .hero__row { grid-template-columns: auto auto 1fr; }
  .hero__price { justify-self: end; text-align: right; }
}

.hero__foot { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: clamp(16px, 3.4vh, 34px) clamp(14px, 2.6vh, 24px); will-change: opacity; }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .84); text-decoration: none; }
.hero__scroll i { position: relative; width: 1px; height: 26px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.hero__meta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.hero__credit { font-size: .76rem; color: rgba(255, 255, 255, .74); }
.hero__go:focus-visible, .hero__place:focus-visible, .hero__scroll:focus-visible { outline-color: #fff; }
/* Botón "Animaciones": detiene el movimiento continuo de la portada y de la cinta */
.is-calm .hero__media img, .is-calm .hero__scroll i::after, .is-calm .marquee__track { animation-play-state: paused; }

/* Entrada de la portada (cuando termina la precarga) */
.js .hero__place, .js .hero__sub, .js .hero__actions, .js .hero__price, .js .hero__foot > * { opacity: 0; }
.js .hero__line > span { transform: translateY(112%); }
.is-ready .hero__place { animation: fadeUp 1s .3s var(--ease) both; }
.is-ready .hero__line > span { animation: lineUp 1.3s .12s var(--ease) both; }
.is-ready .hero__line--script > span { animation-delay: .26s; }
.is-ready .hero__sub { animation: fadeUp 1s .62s var(--ease) both; }
.is-ready .hero__actions { animation: fadeUp 1s .72s var(--ease) both; }
.is-ready .hero__price { animation: fadeUp 1s .82s var(--ease) both; }
.is-ready .hero__foot > * { animation: fadeUp 1s 1s var(--ease) both; }
@keyframes lineUp { from { transform: translateY(112%); } to { transform: none; } }


@media (max-width: 899px) {
  .hero__media img { object-position: 36% 50%; }
  .hero__grade { background:
    linear-gradient(180deg, rgba(8, 13, 38, .55) 0, rgba(8, 13, 38, 0) 20%),
    linear-gradient(0deg, rgba(8, 13, 38, .94) 0, rgba(8, 13, 38, .72) 30%, rgba(8, 13, 38, 0) 68%); }
  .hero__line--caps { font-size: clamp(2.2rem, 10.4vw, 4.6rem); }
  .hero__line--script { margin-left: 4.6vw; font-size: clamp(3.9rem, 18.6vw, 8.4rem); }
}
@media (max-width: 639px) {
  .hero__actions .btn { --bh: 52px; padding: 0 22px; font-size: .96rem; }
  .hero__go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero__go i { width: 52px; height: 52px; }
  .hero__price { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); }
  .hero__price strong { font-size: 1.02rem; }
  .hero__scroll { display: none; }
}

/* ---------- Marquesina ---------- */
.marquee { position: relative; overflow: hidden; padding-block: clamp(18px, 2.4vw, 30px); border-bottom: 1px solid var(--line); background: #fff; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row { display: flex; align-items: center; flex: none; }
.marquee__item { padding-inline: clamp(18px, 2.4vw, 36px); font-size: clamp(1.5rem, 3.2vw, 3rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.marquee__item:nth-child(4n+3) { color: var(--mute); }
.marquee__sep { flex: none; width: 24px; height: 18px; background: repeating-linear-gradient(180deg, var(--blue) 0 3px, transparent 3px 7.5px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Quiénes somos ---------- */
.wideimg { margin: clamp(56px, 7vw, 110px) 0 0; overflow: hidden; aspect-ratio: 4 / 3; }
.wideimg img { width: 100%; height: 120%; margin-top: -10%; object-fit: cover; }
@media (min-width: 760px) { .wideimg { aspect-ratio: 21 / 9; } }

.row--stats { margin: clamp(48px, 6vw, 96px) 0 0; }
.stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; }
.stat { padding-top: 18px; border-top: 1px solid var(--line); }
.stat__n { display: flex; align-items: baseline; font-size: clamp(3rem, 6.4vw, 6rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__n small { font-size: .42em; color: var(--blue); letter-spacing: -.02em; margin-left: .04em; }
.stat > p:not(.stat__n) { margin-top: 12px; font-size: .95rem; font-weight: 500; line-height: 1.45; color: var(--ink); max-width: 24ch; }
.stat .mute { font-weight: 400; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Más que vivienda (franja de fotos inclinadas) ---------- */
.more { overflow: hidden; }
.more__title { text-align: center; max-width: 17ch; margin: 0 auto clamp(40px, 5vw, 76px); }
.strip { overflow: hidden; }
.strip__track { --w: clamp(190px, 23vw, 350px); display: flex; width: max-content; padding-inline: 8vw; }
.strip__item { flex: none; width: var(--w); aspect-ratio: 3 / 4; overflow: hidden; clip-path: polygon(24% 0, 100% 0, 76% 100%, 0 100%); }
.strip__item + .strip__item { margin-left: calc(var(--w) * -.17); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; }
.strip__item:nth-child(2) { transition-delay: .08s; } .strip__item:nth-child(3) { transition-delay: .16s; } .strip__item:nth-child(4) { transition-delay: .24s; } .strip__item:nth-child(5) { transition-delay: .32s; }
.more__text { text-align: center; max-width: 34ch; margin: clamp(40px, 5vw, 76px) auto 0; }

/* ---------- Servicios (banda oscura con palabras gigantes) ---------- */
.svcs { list-style: none; border-top: 1px solid var(--d-line); counter-reset: s; }
.svc__link { position: relative; display: grid; grid-template-columns: 40px 1fr 52px; grid-template-areas: "n word go" "n desc go"; align-items: center; gap: 6px 16px; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--d-line); color: #fff; text-decoration: none; }
.svc__n { grid-area: n; align-self: start; margin-top: .5em; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); font-size: .76rem; font-weight: 600; transition: background .4s, color .4s; }
.svc__desc { grid-area: desc; font-size: .95rem; line-height: 1.5; color: var(--d-t2); max-width: 34ch; }
.svc__word { grid-area: word; font-size: clamp(2.8rem, 8.6vw, 8.2rem); font-weight: 400; letter-spacing: -.06em; line-height: .95; color: #fff; transition: transform .7s var(--ease), color .4s; }
.svc__go { grid-area: go; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--d-line); transition: background .4s, color .4s, transform .6s var(--ease); }
.svc__go .icon { width: 20px; height: 20px; }
.svc__pic { display: none; }
.svc__link:hover .svc__word { transform: translateX(18px); }
.svc__link:hover .svc__go { background: #fff; color: var(--ink); transform: rotate(45deg); }
.svc__link:hover .svc__n { background: #fff; color: var(--ink); }
@media (min-width: 1024px) {
  .svc__link { grid-template-columns: 48px minmax(0, calc(41.66% - 72px)) 1fr 56px; grid-template-areas: "n desc word go"; column-gap: 24px; }
  .svc__n { align-self: center; margin: 0; }
  .svc__go { width: 56px; height: 56px; }
}
@media (hover: hover) and (min-width: 1024px) {
  .svc__pic { display: block; position: absolute; right: 9%; top: 50%; z-index: 2; width: clamp(170px, 15vw, 250px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; opacity: 0; transform: translateY(-50%) scale(.6) rotate(-6deg); transition: opacity .45s var(--ease), transform .7s var(--ease); pointer-events: none; }
  .svc__pic img { width: 100%; height: 100%; object-fit: cover; }
  .svc__link:hover .svc__pic { opacity: 1; transform: translateY(-50%) scale(1) rotate(-3deg); }
}
.row--cta { margin: clamp(56px, 7vw, 100px) 0 0; align-items: end; }
.row--cta .t-md { max-width: 30ch; }
@media (min-width: 1024px) { .row--cta { grid-template-columns: 1fr auto; } .row--cta .row__label { padding: 0; } }

/* ---------- Proyectos: tarjetas con foto ---------- */
.ptiles { display: grid; gap: clamp(14px, 1.6vw, 22px); }
@media (min-width: 900px) { .ptiles { grid-template-columns: 1fr 1fr; } }
.ptile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(520px, 56vw, 760px); color: #fff; }
.ptile__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ptile__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.6s var(--ease) !important; }
.ptile:hover .ptile__media img { transform: scale(1.06); }
.ptile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,19,51,.35) 0%, rgba(11,19,51,0) 26%, rgba(11,19,51,.2) 50%, rgba(11,19,51,.9) 100%); }
.ptile__badge { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: .8rem; font-weight: 600; }
.ptile__body { display: grid; gap: 12px; padding: clamp(20px, 2.6vw, 36px); }
.ptile__logo { display: grid; place-items: center; width: 56px; height: 56px; padding: 7px; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 8px 20px -10px rgba(11,19,51,.4); }
.ptile__logo img { width: 100%; height: 100%; object-fit: contain; }
.ptile__name { font-size: clamp(2.3rem, 4.2vw, 4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: #fff; }
.ptile__link { color: #fff; text-decoration: none; }
.ptile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ptile__city { display: flex; align-items: center; gap: 6px; font-size: .92rem; color: rgba(255, 255, 255, .82); }
.ptile__city .icon { width: 16px; height: 16px; }
.ptile__facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); }
.ptile__facts dt { font-size: .74rem; font-weight: 600; color: rgba(255, 255, 255, .62); }
.ptile__facts dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.ptile__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.compare { display: flex; align-items: center; gap: 16px; margin-top: clamp(14px, 1.6vw, 22px); padding: 20px clamp(18px, 2.6vw, 32px); background: var(--sky); color: var(--ink); text-decoration: none; transition: background .4s; }
.compare:hover { background: var(--sky-2); color: var(--ink); }
.compare__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--blue); color: #fff; flex: none; }
.compare__txt b { display: block; font-size: clamp(1.02rem, 1.4vw, 1.2rem); letter-spacing: -.02em; }
.compare__txt small { font-size: .9rem; color: var(--t2); }
.compare__go { margin-left: auto; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: background .4s, color .4s, border-color .4s; }
.compare:hover .compare__go { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Cómo funciona ---------- */
.how { display: grid; gap: 40px; }
.how__head { display: grid; gap: 22px; align-content: start; justify-items: start; }
.how__head .label { margin: 0; }
.how__label { font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.steps { list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: baseline; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); }
.steps__n { font-size: .8rem; font-weight: 600; color: var(--mute); }
.steps p { font-size: clamp(1.3rem, 2.3vw, 2.05rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.22; color: var(--ink); }
.steps b { font-weight: 500; }
@media (min-width: 1024px) {
  .how { grid-template-columns: 5fr 7fr; column-gap: clamp(24px, 3vw, 48px); }
  .how__head { position: sticky; top: calc(var(--hdr-h) + 40px); }
}

/* ---------- Lema ---------- */
.quote { display: grid; gap: 40px; align-items: center; }
.quote__img { overflow: hidden; aspect-ratio: 4 / 5; max-height: 760px; }
.quote__img img { width: 100%; height: 116%; margin-top: -8%; object-fit: cover; }
.quote__body { display: grid; gap: 22px; justify-items: start; }
.quote__body .label { margin: 0; }
.quote__text p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.75rem, 3.2vw, 3rem); line-height: 1.16; letter-spacing: -.01em; color: var(--ink); max-width: 22ch; }
.quote__by { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--t2); }
.quote__by span { color: var(--mute); margin: 0 8px; }
.values { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.values li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; font-weight: 500; color: var(--ink); }
@media (min-width: 1024px) { .quote { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 110px); } }

/* ---------- Asesoría + formulario ---------- */
.consult { background: var(--sky); padding-block: var(--sec); }
.consult__grid { display: grid; gap: 44px; align-items: start; }
.consult__intro { display: grid; gap: 22px; align-content: start; justify-items: start; }
.consult__intro .label { margin: 0; }
.consult__lead { color: var(--t2); font-size: 1.05rem; max-width: 44ch; }
.consult__points { list-style: none; display: grid; gap: 12px; }
.consult__points li { display: flex; align-items: flex-start; gap: 12px; font-size: .96rem; color: var(--ink); }
.consult__points .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #fff; color: var(--blue); }
.consult__points span { padding-top: 6px; }
.consult__channels { display: grid; gap: 10px; width: 100%; max-width: 440px; }
@media (min-width: 1024px) {
  .consult__grid { grid-template-columns: 5fr 7fr; column-gap: clamp(24px, 3vw, 48px); }
  .consult__intro { position: sticky; top: calc(var(--hdr-h) + 32px); }
}

.channel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
.channel:hover { border-color: var(--ink); transform: translateX(4px); color: var(--ink); }
.channel__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sky-2); color: var(--blue); flex: none; }
.channel--wa .channel__ico { background: #e2f5e9; color: var(--wa); }
.channel b { display: block; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.channel small { font-size: .84rem; color: var(--t2); }
.channel > .icon:last-child { margin-left: auto; width: 18px; height: 18px; color: var(--t2); }
.channels { list-style: none; display: grid; gap: 10px; }

.lead { position: relative; background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 48px); box-shadow: 0 50px 90px -50px rgba(11, 19, 51, .35), 0 0 0 1px var(--line); color: var(--t2); }
.lead__form { display: grid; gap: 22px; }
.lead__head { display: grid; gap: 6px; }
.lead__title { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; color: var(--ink); }
.lead__intro { font-size: .95rem; color: var(--t2); }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { float: left; width: 100%; padding: 0; font-size: .84rem; font-weight: 600; color: var(--ink); }
fieldset.field > .field__label { margin-bottom: 8px; }
.field__label .req { color: var(--blue); }
.field__label .opt { font-weight: 400; color: var(--mute); }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid transparent; border-radius: 12px; background: var(--sky); color: var(--ink); font-size: 1rem; font-weight: 500; transition: border-color .25s, background .25s, box-shadow .25s; }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.55; }
.input::placeholder { color: var(--mute); font-weight: 400; }
.input:hover { border-color: var(--line-2); }
.input:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 61, 165, .12); }
.input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px var(--sky) inset; }
.input.is-invalid { border-color: var(--err); background: #fff7f5; }
.field__error { font-size: .84rem; color: var(--err); font-weight: 600; }
.field__error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink); background: #fff; transition: background .3s var(--ease), color .3s, border-color .3s; cursor: pointer; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.chips--sm .chip span { min-height: 36px; padding: 6px 13px; font-size: .84rem; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; line-height: 1.55; cursor: pointer; color: var(--t2); }
.check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--blue); flex: none; cursor: pointer; }
.check a { color: var(--ink); font-weight: 600; }
.check .req { color: var(--blue); }
.check + .field__error + .check, .check + .check { margin-top: 6px; }

.lead__apto { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--sky-2); color: var(--ink); }
.lead__apto-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; flex: none; }
.lead__apto-ico .icon { width: 20px; height: 20px; }
.lead__apto p { flex: 1; min-width: 0; }
.lead__apto small { display: block; font-size: .76rem; font-weight: 600; color: var(--t2); }
.lead__apto strong { font-weight: 600; font-size: .98rem; }
.lead__apto-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; }
.lead__apto-x .icon { width: 15px; height: 15px; }

.lead__foot { display: grid; gap: 12px; }
.lead__foot .btn { width: 100%; }
.lead__note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .84rem; color: var(--t2); text-align: center; }
.lead__note .icon { width: 15px; height: 15px; }
.lead__status { font-size: .92rem; font-weight: 600; color: var(--ink); }
.lead__status:empty { display: none; }
.lead__status.is-error { color: var(--err); background: #fdf1ee; border: 1px solid rgba(194, 55, 31, .25); padding: 12px 14px; border-radius: 12px; }
.lead__status a { color: var(--ink); }
.lead__legal { font-size: .76rem; color: var(--t2); text-align: center; }
.lead__legal a { color: inherit; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.lead__done { display: grid; gap: 16px; outline: none; text-align: center; justify-items: center; padding-block: 12px; animation: fadeUp .7s var(--ease); }
.lead__done-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--blue); color: #fff; }
.lead__done-icon .icon { width: 30px; height: 30px; }
.lead__next { list-style: none; display: grid; gap: 0; margin: 8px 0; text-align: left; counter-reset: n; width: 100%; max-width: 460px; border-top: 1px solid var(--line); }
.lead__next li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; font-size: .95rem; border-bottom: 1px solid var(--line); }
.lead__next li::before { content: "0" counter(n); font-size: .8rem; font-weight: 600; color: var(--mute); padding-top: 2px; }
.lead__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 40px; }
.faq__head { display: grid; gap: 20px; align-content: start; justify-items: start; }
.faq__head .label { margin: 0; }
.faq__head p { max-width: 36ch; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: grid; grid-template-columns: 44px 1fr 34px; gap: 12px; align-items: center; padding: clamp(20px, 2.4vw, 28px) 0; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa__n { font-size: .8rem; font-weight: 600; color: var(--mute); }
.qa__q { font-size: clamp(1.12rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.25; color: var(--ink); transition: color .3s; }
.qa summary:hover .qa__q { color: var(--blue); }
.qa__pm { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .35s, border-color .35s; }
.qa__pm::before, .qa__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: var(--ink); transition: transform .45s var(--ease), background .35s; }
.qa__pm::after { transform: rotate(90deg); }
.qa[open] .qa__pm { background: var(--ink); border-color: var(--ink); }
.qa[open] .qa__pm::before, .qa[open] .qa__pm::after { background: #fff; }
.qa[open] .qa__pm::after { transform: rotate(0); }
.qa__a { padding: 0 46px 26px 56px; max-width: 64ch; color: var(--t2); }
.qa[open] .qa__a { animation: fadeUp .5s var(--ease); }
@media (min-width: 1024px) {
  .faq { grid-template-columns: 5fr 7fr; column-gap: clamp(24px, 3vw, 48px); }
  .faq__head { position: sticky; top: calc(var(--hdr-h) + 40px); }
}

/* ---------- Ubicación / mapa ---------- */
.visit { display: grid; gap: 36px; }
@media (min-width: 1024px) { .visit { grid-template-columns: 5fr 7fr; column-gap: clamp(24px, 3vw, 48px); align-items: stretch; } .visit .mapblock, .visit .mapblock__map { height: 100%; } }
.mapblock { position: relative; display: grid; gap: 16px; }
.mapblock__map { position: relative; min-height: 460px; overflow: hidden; display: grid; place-items: center; text-align: center; padding: 24px; background: #e8eef9; border-radius: var(--r-lg); }
.mapblock__placeholder { position: absolute; inset: 0;
  background:
    radial-gradient(circle at 58% 46%, rgba(20,61,165,.22) 0 54px, transparent 55px),
    linear-gradient(104deg, transparent 0 55%, rgba(255,255,255,.95) 55% 58.5%, transparent 58.5%),
    linear-gradient(14deg, transparent 0 38%, rgba(255,255,255,.95) 38% 40.5%, transparent 40.5%),
    repeating-linear-gradient(12deg, transparent 0 46px, rgba(255,255,255,.7) 46px 48px),
    repeating-linear-gradient(-78deg, transparent 0 64px, rgba(255,255,255,.7) 64px 66px),
    linear-gradient(160deg, #dfe7f6, #eaf0fa); }
.mapblock__placeholder::after { content: ""; position: absolute; left: 58%; top: 46%; width: 40px; height: 40px; transform: translate(-50%, -100%);
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23143da5' d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7z'/><circle cx='12' cy='9' r='2.6' fill='%23ffffff'/></svg>"); }
.mapblock__load { position: relative; z-index: 1; margin-top: 150px; }
.mapblock__hint { position: absolute; z-index: 1; bottom: 14px; left: 0; right: 0; font-size: .78rem; color: var(--t2); }
.mapblock__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

.office { display: grid; gap: 26px; align-content: start; }
.office__list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.office__list li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.office__list small { font-size: .82rem; font-weight: 600; color: var(--t2); }
.office__list a, .office__list > li > span { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.35; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.office__list a:hover { color: var(--blue); }
.office .btn { justify-self: start; }

/* ---------- Banda final ---------- */
.ctaband { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-block: clamp(120px, 15vw, 220px); text-align: center; }
.ctaband__bg { position: absolute; inset: -12% 0; z-index: -2; }
.ctaband__bg img { width: 100%; height: 100%; object-fit: cover; }
.ctaband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 19, 51, .5), rgba(11, 19, 51, .78)); }
.ctaband__inner { display: grid; justify-items: center; gap: 22px; }
.ctaband .label { margin: 0; }
.ctaband__title { color: #fff; max-width: 15ch; }
.ctaband__title em { color: rgba(255, 255, 255, .5); }
.ctaband p { color: rgba(255, 255, 255, .82); max-width: 48ch; font-size: 1.05rem; }
.ctaband__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---------- Pie de página ---------- */
.ftr { background: var(--ink); color: var(--d-t2); padding-top: clamp(72px, 9vw, 130px); overflow: hidden; }
.ftr__top { display: grid; gap: 28px; padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--d-line); }
.ftr__lead { font-size: clamp(2rem, 4.4vw, 4.2rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.02; color: #fff; max-width: 17ch; }
.ftr__lead .mute { color: var(--d-mute); }
.ftr__cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1024px) { .ftr__top { grid-template-columns: 1fr auto; align-items: end; } }
.ftr__grid { display: grid; gap: 36px; padding-block: clamp(48px, 6vw, 80px); }
@media (min-width: 700px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ftr__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } }
.ftr__brand { display: grid; gap: 16px; align-content: start; justify-items: start; max-width: 38ch; }
.ftr__brand p { font-size: .94rem; }
.ftr__nit { font-size: .82rem; color: var(--d-mute); }
.ftr__h { font-size: .84rem; font-weight: 600; color: var(--d-mute); margin-bottom: 14px; }
.ftr__links { list-style: none; display: grid; gap: 10px; }
.ftr__links a { color: #fff; text-decoration: none; font-weight: 500; transition: color .3s; }
.ftr__links a:hover { color: var(--blue-l); }
.ftr__links--info a, .ftr__links--info span { font-size: .94rem; color: var(--d-t2); font-weight: 400; overflow-wrap: anywhere; }
.ftr__social { list-style: none; display: flex; gap: 8px; }
.ftr__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--d-line); color: #fff; transition: background .3s, color .3s; }
.ftr__social a:hover { background: #fff; color: var(--ink); }
.ftr__social .icon { width: 18px; height: 18px; }
.ftr__word { margin: 0 0 -.12em; font-size: clamp(3.6rem, 13.4vw, 16rem); font-weight: 700; letter-spacing: -.065em; line-height: .9; text-align: center; white-space: nowrap; user-select: none; background: linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .02) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ftr__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 24px; border-top: 1px solid var(--d-line); font-size: .85rem; color: rgba(255, 255, 255, .55); }
.ftr__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr__legal a, .ftr__legal .linklike { color: inherit; text-decoration: none; font-size: inherit; }
.ftr__legal a:hover, .ftr__legal .linklike:hover { color: #fff; }
.ftr__credit { flex-basis: 100%; margin: 0; }
.ftr__credit a { color: rgba(255, 255, 255, .86); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.ftr__credit a:hover { color: #fff; text-decoration-color: currentColor; }

/* ---------- Encabezado de páginas internas ---------- */
.phero { position: relative; padding-top: calc(var(--hdr-h) + clamp(32px, 6vw, 88px)); padding-bottom: clamp(56px, 7vw, 110px); }
.phero--compact { padding-bottom: clamp(40px, 5vw, 72px); }
.phero__grid { display: grid; gap: 24px; align-items: end; }
.phero__title { font-size: clamp(2.8rem, 7.6vw, 7.6rem); font-weight: 500; letter-spacing: -.058em; line-height: .96; color: var(--ink); max-width: 12ch; }
.phero__title--md { font-size: clamp(2.3rem, 5.4vw, 5rem); max-width: 16ch; }
.phero__lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 500; letter-spacing: -.018em; line-height: 1.45; color: var(--ink); max-width: 40ch; }
.phero__lead .mute { font-weight: 400; }
.phero__side { display: grid; gap: 22px; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.phero__img { margin-top: clamp(36px, 5vw, 72px); overflow: hidden; aspect-ratio: 4 / 3; }
.phero__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (min-width: 760px) { .phero__img { aspect-ratio: 16 / 7; } }
@media (min-width: 1024px) { .phero__grid { grid-template-columns: 1fr minmax(300px, 400px); column-gap: 56px; } }

.crumbs { margin-bottom: clamp(22px, 3vw, 40px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; font-weight: 500; color: var(--t2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--mute); }
.crumbs a { color: var(--t2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Proyecto (detalle) ---------- */
.prj__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.prj__type { display: grid; gap: 2px; font-size: .95rem; font-weight: 600; color: var(--ink); }
.prj__type small { display: flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--t2); }
.prj__type .icon { width: 15px; height: 15px; }
.prj__price { display: grid; gap: 2px; }
.prj__price small { font-size: .84rem; font-weight: 600; color: var(--t2); }
.prj__price strong { font-size: clamp(1.9rem, 2.8vw, 2.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; color: var(--ink); }
.facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.facts li { display: grid; gap: 4px; padding: 24px 16px 24px 0; }
.facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.facts b { font-size: clamp(1.6rem, 2.8vw, 2.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.facts span { font-size: .9rem; color: var(--t2); }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
}

/* Galería */
.gallery { --slide: min(78vw, 1000px); margin-top: clamp(8px, 2vw, 24px); }
.gallery__track { position: relative; display: flex; gap: clamp(12px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: calc((100vw - var(--slide)) / 2); scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 var(--slide); scroll-snap-align: center; transition: opacity .6s, transform .9s var(--ease); }
.js .gallery__slide:not(.is-active) { opacity: .4; transform: scale(.92); }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--sky); overflow: hidden; aspect-ratio: 16 / 10; cursor: zoom-in; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__slide.is-active .gallery__btn:hover img { transform: scale(1.04); }
.gallery__slide.is-contain .gallery__btn { background: #fff; border: 1px solid var(--line); }
.gallery__slide.is-contain img { object-fit: contain; }
.gallery__slide figcaption { font-size: .9rem; color: var(--t2); margin-top: 14px; }
.gallery__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.gallery__progress { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.gallery__progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s var(--ease); }
.gallery__count { font-size: .95rem; font-weight: 600; color: var(--ink); min-width: 56px; font-variant-numeric: tabular-nums; }

/* Zonas comunes */
.amen { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1px; background: var(--d-line); border: 1px solid var(--d-line); }
.amen li { position: relative; display: flex; align-items: center; gap: 16px; padding: 26px 22px; background: var(--ink); color: #fff; font-weight: 500; font-size: 1.05rem; letter-spacing: -.02em; transition: background .4s; }
.amen li:hover { background: var(--ink-2); }
.amen__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--blue-l); flex: none; transition: background .4s, color .4s; }
.amen li:hover .amen__ico { background: var(--blue); color: #fff; }
.amen__ico .icon { width: 24px; height: 24px; }
.amen__n { position: absolute; top: 12px; right: 14px; font-size: .7rem; font-weight: 600; color: var(--d-mute); }

/* Tipos de apartamento */
.apts__tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: clamp(24px, 3vw, 36px); scrollbar-width: none; }
.apts__tabs::-webkit-scrollbar { display: none; }
.apts__tab { flex: none; display: grid; gap: 2px; text-align: left; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); transition: background .35s, color .35s, border-color .35s; }
.apts__tab span { font-size: .78rem; font-weight: 600; color: var(--t2); transition: color .35s; }
.apts__tab b { font-size: 1.02rem; letter-spacing: -.02em; color: inherit; }
.apts__tab:hover { border-color: var(--ink); }
.apts__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.apts__tab[aria-selected="true"] span { color: rgba(255, 255, 255, .65); }
.apt { display: grid; gap: 32px; align-items: center; animation: fadeUp .6s var(--ease); }
@media (min-width: 960px) { .apt { grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 4vw, 72px); } }
.apt__plan { position: relative; display: block; width: 100%; padding: clamp(14px, 2.4vw, 34px); border: 0; border-radius: var(--r-lg); cursor: zoom-in; }
.apt__plan img { width: 100%; height: auto; max-height: 580px; object-fit: contain; margin-inline: auto; }
.ucard__plan--light { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ucard__plan--dark { background: #161b2c; }
.ucard__zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 8px 20px -8px rgba(11, 19, 51, .4); transition: transform .4s var(--ease); }
.ucard__zoom .icon { width: 18px; height: 18px; }
.apt__plan:hover .ucard__zoom, .ucard__plan:hover .ucard__zoom { transform: scale(1.1); }
.apt__info .label { margin-bottom: 12px; }
.apt__title { font-size: clamp(2.1rem, 3.6vw, 3.4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.apt__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 18px; border-block: 1px solid var(--line); }
.apt__stats div { padding: 16px 12px 16px 0; }
.apt__stats div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.apt__stats dt { font-size: .78rem; font-weight: 600; color: var(--t2); }
.apt__stats dd { margin: 4px 0 0; font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.apt__desc { color: var(--t2); }
.apt__feats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.apt__feats li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--sky); font-size: .88rem; font-weight: 500; color: var(--ink); }
.apt__feats .icon { width: 17px; height: 17px; color: var(--blue); }
.apt__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; font-size: .84rem; color: var(--t2); }
.disclaimer .icon { width: 17px; height: 17px; margin-top: 2px; }

/* Ubicación del proyecto */
.loc { display: grid; gap: 40px; }
.loc__text { display: grid; gap: 22px; align-content: start; justify-items: start; }
.loc__text .label { margin: 0; }
.loc__list { list-style: none; width: 100%; border-top: 1px solid var(--line); }
.loc__list li { display: grid; grid-template-columns: 36px 24px 1fr; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.loc__list .icon { color: var(--blue); width: 20px; height: 20px; }
.loc__n { font-size: .78rem; font-weight: 600; color: var(--mute); }
@media (min-width: 1024px) { .loc { grid-template-columns: 5fr 7fr; column-gap: clamp(24px, 3vw, 48px); align-items: stretch; } .loc .mapblock, .loc .mapblock__map { height: 100%; } }

/* ---------- Página de proyectos ---------- */
.pstack { display: grid; gap: clamp(64px, 8vw, 120px); }
.pwide { display: grid; gap: 28px; align-items: center; }
.pwide__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.pwide__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.6s var(--ease) !important; }
.pwide__media:hover img { transform: scale(1.05); }
.pwide__body { display: grid; gap: 18px; align-content: center; justify-items: start; }
.pwide__head { display: flex; align-items: center; gap: 14px; }
.pwide__city { display: flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 500; color: var(--t2); }
.pwide__city .icon { width: 16px; height: 16px; }
.pwide__name a { color: var(--ink); text-decoration: none; }
.pwide__name em { font-style: normal; color: var(--mute); }
.pwide__text { color: var(--t2); max-width: 52ch; }
.pwide__stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 4px 0; border-top: 1px solid var(--line); }
.pwide__stats div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pwide__stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.pwide__stats dt { font-size: .78rem; font-weight: 600; color: var(--t2); }
.pwide__stats dd { margin: 3px 0 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.pwide__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1024px) {
  .pwide { grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 5vw, 90px); }
  .pstack .pwide:nth-child(even) .pwide__media { order: 2; }
}

/* Comparador */
.finder { display: grid; gap: 22px; }
@media (min-width: 1024px) { .finder { grid-template-columns: 300px 1fr; gap: 28px; align-items: start; } }
.filters { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--hdr-h) + 20px); } }
.filters__toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 20px; border: 0; background: transparent; color: var(--ink); font-weight: 600; text-align: left; }
.filters__toggle > .icon:first-child { color: var(--blue); }
.filters__chev { margin-left: auto; transition: transform .35s var(--ease); }
.filters.is-open .filters__chev { transform: rotate(180deg); }
.filters__badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--blue); color: #fff; font-size: .74rem; font-weight: 700; }
.filters__panel { display: none; gap: 18px; padding: 0 20px 20px; }
.filters.is-open .filters__panel { display: grid; }
@media (min-width: 1024px) { .filters__toggle { display: none; } .filters__panel { display: grid; padding: 22px; } }
.filters__title { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.filters__group { display: grid; gap: 10px; border: 0; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.filters__group legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-size: .84rem; font-weight: 600; color: var(--ink); }
.filters__group legend + * { clear: both; }
.filters__label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--sky); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 6px; border-radius: 999px; text-align: center; font-size: .88rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .3s, color .3s; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.range-head { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; font-weight: 600; color: var(--ink); }
.range-head output { color: var(--blue); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 8px 0; border-radius: 4px; background: linear-gradient(to right, var(--blue) var(--fill, 0%), var(--sky-2) var(--fill, 0%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); box-shadow: 0 4px 10px -2px rgba(20, 61, 165, .35); cursor: grab; }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); cursor: grab; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--blue); outline-offset: 3px; }
.range-scale { display: flex; justify-content: space-between; font-size: .76rem; color: var(--t2); }
.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 46px; padding: 10px 40px 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 500; cursor: pointer; }
.select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 18px; height: 18px; }
.filters__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.filters__count { font-weight: 600; color: var(--ink); }
.ugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.ucard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); animation: fadeUp .6s var(--ease); }
.ucard:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -36px rgba(11, 19, 51, .35); }
.ucard__plan { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 16px; border: 0; cursor: zoom-in; }
.ucard__img { width: 100%; height: 100%; object-fit: contain; }
.ucard__body { display: grid; gap: 12px; flex: 1; padding: 20px 22px 22px; align-content: start; }
.ucard__project { font-size: .8rem; font-weight: 600; color: var(--blue); }
.ucard__title { font-size: 1.5rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.ucard__title span { color: var(--mute); }
.ucard__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ucard__facts li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--sky); font-size: .82rem; font-weight: 500; color: var(--ink); }
.ucard__facts .icon { width: 15px; height: 15px; color: var(--blue); }
.ucard__price { display: grid; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.ucard__price small { font-size: .76rem; font-weight: 600; color: var(--t2); }
.ucard__price strong { font-size: 1.4rem; letter-spacing: -.03em; color: var(--ink); }
.ucard__price strong.is-muted { font-size: 1.02rem; color: var(--t2); font-weight: 500; }
.ucard__actions { display: flex; gap: 8px; }
.ucard__actions .btn { flex: 1; padding-inline: 12px; }
.empty { display: grid; justify-items: center; gap: 14px; padding: 56px 24px; text-align: center; border-radius: var(--r-lg); background: #fff; border: 1px dashed var(--line-2); }
.empty__ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--sky); color: var(--blue); }
.empty h3 { font-size: 1.4rem; }
.empty p { max-width: 46ch; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Nosotros ---------- */
.svcgrid { list-style: none; display: grid; gap: 1px; margin-top: clamp(48px, 6vw, 96px); background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .svcgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .svcgrid { grid-template-columns: repeat(3, 1fr); } }
.svcgrid li { position: relative; display: grid; gap: 8px; align-content: start; padding: clamp(24px, 3vw, 40px); background: #fff; transition: background .4s; }
.svcgrid li:hover { background: var(--sky); }
.svcgrid__n { position: absolute; top: 20px; right: 22px; font-size: .76rem; font-weight: 600; color: var(--mute); }
.svcgrid__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: var(--sky-2); color: var(--blue); transition: background .4s, color .4s; }
.svcgrid li:hover .svcgrid__ico { background: var(--blue); color: #fff; }
.svcgrid__ico .icon { width: 24px; height: 24px; }
.svcgrid h3 { font-size: 1.4rem; letter-spacing: -.035em; }
.svcgrid p { font-size: .96rem; }
.purpose { display: grid; gap: 40px; }
.purpose__head { display: grid; gap: 20px; align-content: start; }
.purpose__head .label { margin: 0; }
.purpose__img { margin-top: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.purpose__img img { width: 100%; height: 116%; margin-top: -8%; object-fit: cover; }
.purpose__body { display: grid; align-content: center; }
.purpose__item { padding: clamp(28px, 3.6vw, 48px) 0; border-top: 1px solid var(--line-2); }
.purpose__item:last-child { border-bottom: 1px solid var(--line-2); }
.purpose__k { font-size: clamp(1.9rem, 3.2vw, 3rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--ink); margin-bottom: 16px; }
.purpose__item p:not(.purpose__k) { font-size: 1.08rem; line-height: 1.7; }
@media (min-width: 1024px) { .purpose { grid-template-columns: 5fr 7fr; column-gap: clamp(24px, 3vw, 48px); } }
.vcards { list-style: none; display: grid; gap: 14px; }
@media (min-width: 640px) { .vcards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .vcards { grid-template-columns: repeat(4, 1fr); } }
.vcard { display: flex; flex-direction: column; gap: 12px; min-height: 290px; padding: clamp(24px, 2.6vw, 34px); border: 1px solid var(--d-line); transition: background .5s var(--ease), border-color .5s; }
.vcard:hover { background: var(--blue); border-color: var(--blue); }
.vcard__n { font-size: .8rem; font-weight: 600; color: var(--d-mute); margin-bottom: auto; }
.vcard:hover .vcard__n { color: rgba(255, 255, 255, .7); }
.vcard h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); letter-spacing: -.045em; color: #fff; }
.vcard p { font-size: .95rem; color: var(--d-t2); }
.vcard:hover p { color: rgba(255, 255, 255, .88); }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 40px; align-items: start; }
.contact__side { display: grid; gap: 44px; }
@media (min-width: 1024px) { .contact { grid-template-columns: 7fr 5fr; gap: clamp(40px, 5vw, 80px); } .contact__side { position: sticky; top: calc(var(--hdr-h) + 24px); } }

/* ---------- Legal ---------- */
.legal { display: grid; gap: 32px; }
@media (min-width: 1024px) { .legal { grid-template-columns: 280px 1fr; gap: 64px; } }
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px; align-self: start; }
@media (min-width: 1024px) { .legal__nav { flex-direction: column; position: sticky; top: calc(var(--hdr-h) + 24px); } }
.legal__nav a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.legal__nav a:hover { border-color: var(--ink); }
.legal__nav a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.legal__nav .icon { width: 18px; height: 18px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.03em; margin: 44px 0 12px; }
.prose p, .prose li { line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; margin-top: 10px; }
.prose li { margin: 6px 0; }
.legal__intro { font-size: 1.2rem; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.legal__updated { margin-top: 44px; font-size: .86rem; color: var(--mute); }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sky); color: var(--ink); font-weight: 600; }

/* ---------- 404 ---------- */
.nf { position: relative; overflow: hidden; min-height: 92svh; padding-top: calc(var(--hdr-h) + clamp(24px, 6vw, 80px)); padding-bottom: var(--sec); }
.nf__num { margin: 0 0 -.06em -.04em; font-size: clamp(8rem, 30vw, 26rem); font-weight: 700; letter-spacing: -.08em; line-height: .8; background: linear-gradient(180deg, var(--sky-3), rgba(255, 255, 255, 0) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.nf .phero__title { margin: 10px 0 22px; }
.nf .phero__lead { margin-bottom: 28px; }

/* ---------- WhatsApp flotante ---------- */
.wafab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 18px 36px -14px rgba(31, 168, 85, .7); transform: translateY(160%); transition: transform .6s var(--ease), opacity .3s; }
.wafab:hover { color: #fff; }
.wafab .icon { width: 24px; height: 24px; }
.wafab.is-visible { transform: none; }
body.has-cookie .wafab { opacity: 0; pointer-events: none; }
@media (max-width: 639px) { .wafab { width: 56px; padding: 0; justify-content: center; } .wafab span { display: none; } }

/* ---------- Cursor con texto ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 120; width: 0; height: 0; pointer-events: none; }
  .cursor span { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 108px; height: 108px; margin: -54px 0 0 -54px; padding: 12px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .82rem; font-weight: 600; line-height: 1.15; text-align: center; transform: scale(0); transition: transform .45s var(--ease); }
  .cursor.is-on span { transform: scale(1); }
}

/* ---------- Cookies ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; display: flex; justify-content: flex-end; pointer-events: none; animation: fadeUp .7s 1s var(--ease) both; }
.cookie__card { pointer-events: auto; display: grid; gap: 12px; max-width: 450px; padding: 20px; border-radius: var(--r-lg); background: #fff; font-size: .9rem; color: var(--t2); box-shadow: 0 30px 70px -24px rgba(11, 19, 51, .4), 0 0 0 1px var(--line); }
.cookie__title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.cookie__title .icon { width: 18px; height: 18px; color: var(--blue); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cdlg { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--t2); box-shadow: 0 40px 90px -30px rgba(11, 19, 51, .5); }
.cdlg::backdrop { background: rgba(11, 19, 51, .5); backdrop-filter: blur(4px); }
.cdlg__inner { display: grid; gap: 4px; padding: clamp(20px, 3vw, 30px); }
.cdlg__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cdlg__head h2 { font-size: 1.6rem; letter-spacing: -.04em; }
.cdlg__row { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.cdlg__row > div { flex: 1; }
.cdlg__row h3 { font-size: 1rem; letter-spacing: -.01em; }
.cdlg__row p { font-size: .86rem; }
.cdlg__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--line); }
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--sky-2); transition: background .3s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(11, 19, 51, .25); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.switch.is-locked { opacity: .55; }

/* ---------- Visor de imágenes ---------- */
.lbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 32, .96); color: #fff; }
.lbox[open] { display: grid; grid-template-rows: auto 1fr; animation: fadeIn .35s var(--ease); }
.lbox::backdrop { background: transparent; }
.lbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); }
.lbox__count { font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.lbox__fig { display: grid; place-items: center; align-content: center; gap: 14px; padding: 0 var(--gutter) 28px; min-height: 0; }
.lbox__fig img { max-width: min(92vw, 1400px); max-height: 78vh; width: auto; height: auto; object-fit: contain; background: #fff; }
.lbox__fig figcaption { font-size: .9rem; color: rgba(255, 255, 255, .75); text-align: center; max-width: 70ch; }
.lbox__nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(8, 12, 32, .5); color: #fff; transition: background .3s, color .3s; }
.lbox__nav:hover { background: #fff; color: var(--ink); }
.lbox__nav--prev { left: 16px; } .lbox__nav--next { right: 16px; }
.lbox.is-single .lbox__nav, .lbox.is-single .lbox__count { display: none; }

/* Sin animación de portada (reducir movimiento o respaldo) */
.no-morph .hero { height: auto !important; }
.no-morph .hero__sticky { position: relative !important; }
