/* ==========================================================================
   Enlace Grupo Inmobiliario · styles.css
   Concepto: "Cartografía viva". La página se comporta como un plano topográfico:
   curvas de nivel que respiran, estacas amarillas, planos y fotos reales.
   Mobile first. Paleta del logotipo: amarillo #FFE400 + gris grafito #5D5D60.
   ========================================================================== */

/* ---------- 0. Tokens ---------- */
:root {
  --y: #ffe400;
  --y-deep: #f2c300;
  --ink: #121315;
  --ink-2: #1a1b1e;
  --ink-3: #26272b;
  --gr: #5d5d60;
  --gr-2: #8d8d91;
  --paper: #f6f5f0;
  --paper-2: #ebe9e0;
  --line-d: rgba(255, 255, 255, .12);
  --line-l: rgba(18, 19, 21, .13);

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --pad: 1.25rem;
  --rad: 28px;
}
@media (min-width: 768px) { :root { --pad: 2rem; --rad: 38px; } }
@media (min-width: 1200px) { :root { --pad: 3rem; --rad: 52px; } }

/* ---------- 1. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open, body.lb-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--y-deep); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--y); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 2000; padding: .8rem 1.2rem; border-radius: 999px;
  background: var(--y); color: var(--ink); font-weight: 700; transition: top .3s var(--ease);
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--pad), 1280px); margin-inline: auto; }
.mono { font-family: var(--f-mono); }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Superficies de color */
.on-ink { background: var(--ink); color: #f1f1ec; }
.on-ink2 { background: var(--ink-2); color: #f1f1ec; }
.on-paper { background: var(--paper); color: var(--ink); }
.on-paper2 { background: var(--paper-2); color: var(--ink); }

.section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }

/* Las secciones se "apilan" como hojas con esquinas redondeadas */
.manifesto, .usos, .galeria, .medidor, .plano, .metodo, .porque, .faq, .contacto {
  border-radius: var(--rad) var(--rad) 0 0;
  margin-top: calc(var(--rad) * -1);
  padding-top: calc(clamp(5rem, 11vw, 9rem) + 0px);
}

/* ---------- 2. Tipografía de sección ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font: 500 .76rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gr);
}
.kicker b {
  display: inline-grid; place-items: center; padding: .28rem .5rem; border-radius: 6px;
  background: var(--y); color: var(--ink); font-weight: 500;
}
.kicker--y { color: rgba(255, 255, 255, .72); }
.kicker--ink { color: rgba(18, 19, 21, .78); }
.kicker--ink b { background: var(--ink); color: var(--y); }

.h2 {
  font: 700 clamp(2.7rem, 9.6vw, 5.8rem)/.92 var(--f-display);
  text-transform: uppercase; letter-spacing: -.004em;
}
.h2--xl { font-size: clamp(3.5rem, 14vw, 9rem); line-height: .86; }
.hl { color: var(--y); }
.mark {
  background: linear-gradient(transparent 60%, var(--y) 60% 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
  padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.1s var(--ease-io) .45s;
}
.stroke { color: transparent; -webkit-text-stroke: 2px var(--ink); }

.sec-head { display: grid; gap: 1.2rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head__p { font-size: 1.06rem; color: var(--gr); max-width: 38rem; }
.on-ink .sec-head__p, .on-ink2 .sec-head__p { color: rgba(255, 255, 255, .72); }

/* ---------- 3. Botones ---------- */
.btn {
  --bg: var(--y); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  padding: .9rem .8rem .9rem 1.5rem; border-radius: 999px; background: var(--bg); color: var(--fg);
  font: 700 .95rem/1 var(--f-body); white-space: nowrap; overflow: hidden; isolation: isolate;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform .35s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 5.5s ease-in-out infinite;
}
.btn--ghost::after { display: none; }
.btn__ico {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--fg); color: var(--bg); transition: transform .45s var(--ease);
}
.btn:hover .btn__ico { transform: translateX(3px) rotate(-45deg); }
.btn:hover { box-shadow: 0 18px 40px -14px rgba(255, 228, 0, .55); }
.btn--y { --bg: var(--y); --fg: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--ink:hover { box-shadow: 0 18px 40px -14px rgba(18, 19, 21, .55); }
.btn--ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); padding: .9rem 1.5rem; box-shadow: none !important;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .6); }
.btn--sm { padding: .6rem .6rem .6rem 1.1rem; font-size: .85rem; gap: .6rem; }
.btn--sm .btn__ico { width: 1.8rem; height: 1.8rem; }
.btn--lg { padding: 1rem .9rem 1rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; justify-content: space-between; }

/* ---------- 4. Cargador ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; color: var(--ink);
  animation: loaderFail .4s ease 2s forwards;   /* respaldo: se oculta solo aunque falle el JS */
}
html:not(.js) .loader, html.reveal-fallback .loader { display: none; }
.loader__half {
  position: absolute; left: 0; right: 0; height: 50.5%; background-color: var(--paper);
  background-image: linear-gradient(rgba(18, 19, 21, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 19, 21, .05) 1px, transparent 1px);
  background-size: 48px 48px; transition: transform .85s var(--ease-io);
}
.loader__half--t { top: 0; }
.loader__half--b { bottom: 0; background-position: 0 -1px; }
.loader.is-done .loader__half--t { transform: translateY(-101%); }
.loader.is-done .loader__half--b { transform: translateY(101%); }
.loader__core {
  position: relative; display: grid; justify-items: center; gap: 1.5rem; width: min(78vw, 330px);
  transition: opacity .35s ease, transform .6s var(--ease);
}
.loader.is-done .loader__core { opacity: 0; transform: scale(.96); }
.loader__logo { width: min(56vw, 210px); clip-path: inset(0 100% 0 0); animation: logoIn 1.2s var(--ease-io) .15s forwards; }
.loader__marks { position: absolute; left: 50%; top: -18px; width: min(66vw, 252px); aspect-ratio: 1.14; transform: translateX(-50%); pointer-events: none; }
.loader__marks i { position: absolute; width: 20px; height: 20px; border: 0 solid var(--ink); animation: markIn .9s var(--ease) .1s both; }
.loader__marks i:nth-child(1) { left: 0; top: 0; border-top-width: 2px; border-left-width: 2px; }
.loader__marks i:nth-child(2) { right: 0; top: 0; border-top-width: 2px; border-right-width: 2px; }
.loader__marks i:nth-child(3) { left: 0; bottom: 0; border-bottom-width: 2px; border-left-width: 2px; }
.loader__marks i:nth-child(4) { right: 0; bottom: 0; border-bottom-width: 2px; border-right-width: 2px; }
.loader__bar { width: 100%; height: 3px; border-radius: 3px; background: rgba(18, 19, 21, .12); overflow: hidden; }
.loader__fill { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); animation: fill 1.5s var(--ease-io) .1s forwards; }
.loader__meta {
  display: flex; justify-content: space-between; width: 100%;
  font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gr);
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; background: var(--y);
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); pointer-events: none;
}

/* ---------- 5. Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; display: flex; justify-content: center;
  padding: .75rem var(--pad); transition: transform .55s var(--ease-io); pointer-events: none;
}
.nav.is-hidden { transform: translateY(-130%); }
.nav__island {
  pointer-events: auto; display: flex; align-items: center; gap: .8rem; width: min(100%, 1180px);
  padding: .4rem .45rem .4rem 1rem; border-radius: 999px; color: var(--ink);
  background: rgba(246, 245, 240, .9); border: 1px solid rgba(18, 19, 21, .08);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .55); transition: padding .4s var(--ease), box-shadow .4s;
}
.nav.is-scrolled .nav__island { box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6); }
.nav__brand img { height: 52px; width: auto; }
.nav__links { display: none; }
.nav__links a {
  position: relative; padding: .55rem .9rem; border-radius: 999px; font: 600 .86rem/1 var(--f-body); color: #3b3b3e;
  transition: background .3s, color .3s;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { background: rgba(18, 19, 21, .07); color: var(--ink); }
.nav__cta { display: none; margin-left: auto; }
.nav__burger {
  margin-left: auto; width: 46px; height: 46px; border-radius: 50%; background: var(--ink);
  display: grid; place-content: center; gap: 5px;
}
.nav__burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease); }
.menu-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } .nav__burger { margin-left: 0; } }
@media (min-width: 1024px) {
  .nav__links { display: flex; margin-left: auto; gap: .1rem; }
  .nav__cta { margin-left: .4rem; }
  .nav__burger { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: space-between;
  padding: 6.5rem var(--pad) 2rem; background: var(--ink); color: #fff;
  visibility: hidden; opacity: 0; transition: opacity .4s ease, visibility 0s linear .4s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .4s ease; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line-d);
  font: 700 clamp(2.4rem, 11vw, 4rem)/1.1 var(--f-display); text-transform: uppercase;
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.menu__nav a em { font: 500 .8rem/1 var(--f-mono); color: var(--y); font-style: normal; letter-spacing: .12em; }
.menu.is-open .menu__nav a { opacity: 1; transform: none; transition-delay: calc(var(--n) * .06s + .12s); }
.menu__foot { display: grid; gap: 1.2rem; justify-items: start; }
.menu__tel { font: 500 .9rem/1 var(--f-mono); letter-spacing: .08em; color: rgba(255, 255, 255, .75); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh; padding-bottom: var(--rad); overflow: clip;
  background: radial-gradient(120% 90% at 80% 10%, #22242a 0%, var(--ink) 62%); color: #f4f4ef;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; will-change: transform; }
.hero__grid {
  position: absolute; inset: 0; z-index: -2; opacity: .35;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 70% at 70% 35%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 19, 21, .55) 0%, rgba(18, 19, 21, .2) 45%, rgba(18, 19, 21, .92) 100%);
}
@media (min-width: 1024px) {
  .hero::after {
    background: linear-gradient(90deg, rgba(18, 19, 21, .86) 0%, rgba(18, 19, 21, .4) 52%, rgba(18, 19, 21, .05) 100%),
                linear-gradient(0deg, var(--ink) 0%, transparent 26%);
  }
}

.hud { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; will-change: transform; }
.hud.is-on { opacity: 1; }
.hud__ring { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border: 1px solid var(--y); border-radius: 50%; }
.hud__ring::before, .hud__ring::after { content: ""; position: absolute; background: var(--y); opacity: .7; }
.hud__ring::before { left: 50%; top: -9px; bottom: -9px; width: 1px; }
.hud__ring::after { top: 50%; left: -9px; right: -9px; height: 1px; }
.hud__txt { position: absolute; left: 26px; top: 16px; font: 500 .66rem/1 var(--f-mono); letter-spacing: .12em; color: var(--y); white-space: nowrap; }
@media (hover: none) { .hud { display: none; } }

.hero__inner {
  position: relative; flex: 1; display: grid; align-items: center; gap: 2.8rem;
  padding-top: 7.2rem; padding-bottom: 2.4rem;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 3rem; padding-top: 6.5rem; }
}
.hero__copy { display: grid; gap: 1.5rem; justify-items: start; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem; padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid var(--line-d); background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 .68rem/1.2 var(--f-mono); letter-spacing: .15em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.eyebrow__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--y); animation: pulse 2.2s infinite; }

.hero__title { font: 800 clamp(3.2rem, 16vw, 6.4rem)/.88 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; }
@media (min-width: 640px) { .hero__title { font-size: clamp(5rem, 13vw, 7rem); } }
@media (min-width: 1024px) { .hero__title { font-size: clamp(5.2rem, 7.4vw, 8.6rem); } }
.hero__title .line { display: block; overflow: hidden; padding: .14em 0 .06em; margin: -.14em 0 -.06em; }
.hero__title .line__in { display: block; transition: transform 1.15s var(--ease-io) var(--d, 0s); }
/* Resplandor tras «ENLAZADO»: va en un pseudo-elemento (el text-shadow se recortaba con el overflow de .line y dejaba un rectángulo) */
.hero__title { position: relative; }
.hero__title::before {
  content: ""; position: absolute; left: -8%; top: 46%; width: 80%; height: 30%; z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 228, 0, .22), transparent);
  filter: blur(22px); mix-blend-mode: screen; opacity: .8; animation: glowPulse 5s ease-in-out infinite alternate;
}

.hero__lead { max-width: 33rem; font-size: 1.05rem; color: rgba(255, 255, 255, .78); }
.hero__lead strong { color: #fff; font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; font-size: .84rem; color: rgba(255, 255, 255, .7); }
.hero__facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__facts .ico { color: var(--y); width: 1em; height: 1em; }

/* Entrada del hero (solo con JS; con respaldo) */
.hero [data-h] { transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
html.js:not(.reveal-fallback) body:not(.is-ready) .hero [data-h] { opacity: 0; transform: translateY(30px); }
html.js:not(.reveal-fallback) body:not(.is-ready) .hero .line__in { transform: translateY(112%); }

/* Pila de fotos 3D */
.hero__stack { position: relative; width: min(100%, 560px); margin: 0 auto; aspect-ratio: 1 / .95; perspective: 1200px; }
.hero__tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(var(--ry, 0) * -7deg)) rotateY(calc(var(--rx, 0) * 9deg));
}
.hc { position: absolute; margin: 0; transform: translateZ(var(--z, 0px)); }
.hc__in {
  position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .8);
  animation: bob 7s ease-in-out infinite alternate;
}
.hc img { width: 100%; height: 100%; object-fit: cover; }
.hc--a { right: 0; top: 2%; width: 82%; aspect-ratio: 16 / 10; }
.hc--b { left: 0; bottom: 6%; width: 38%; aspect-ratio: 3 / 4.3; }
.hc--b .hc__in { animation-duration: 8.5s; animation-delay: -2s; }
.hc--c { right: 4%; bottom: 0; width: 33%; aspect-ratio: 3 / 4; }
.hc--c .hc__in { animation-duration: 6.2s; animation-delay: -4s; }
.hc__tag {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .6rem; border-radius: 999px;
  background: rgba(18, 19, 21, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 .58rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.hc__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--y); }
.hc--b .hc__tag, .hc--c .hc__tag { display: none; }
/* La etiqueta de la foto grande va arriba a la derecha: abajo la tapan las otras dos fotos */
.hc--a .hc__tag { left: auto; right: 10px; top: 10px; bottom: auto; }
@media (min-width: 640px) { .hc--b .hc__tag, .hc--c .hc__tag { display: inline-flex; } .hc__tag { font-size: .62rem; left: 12px; bottom: 12px; } }

.seal { position: absolute; left: 22%; top: -3%; width: 84px; height: 84px; transform: translateZ(var(--z, 0px)); }
.seal__svg { width: 100%; height: 100%; animation: spin 18s linear infinite; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45)); }
.seal__arrow { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; color: var(--ink); stroke-width: 2.4; animation: nudge 2s ease-in-out infinite; }
@media (min-width: 768px) { .seal { width: 108px; height: 108px; left: 20%; } }

.hero__foot { position: relative; margin-top: auto; }
.hero__foot-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.2rem; }
.enlace-line {
  display: flex; align-items: center; gap: .9rem; flex: 1; max-width: 440px;
  font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72);
}
.node { display: inline-flex; align-items: center; gap: .55rem; }
.node::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--y); animation: pulse 2.4s infinite; }
.wire { position: relative; flex: 1; height: 3px; overflow: hidden; }
.wire::before { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 1px; background: rgba(255, 255, 255, .22); }
.wire i { position: absolute; top: 0; left: -30%; width: 30%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--y)); animation: travel 2.6s linear infinite; }
.wire i:nth-child(2) { animation-delay: 1.3s; }
.scroll-cue { display: none; align-items: center; gap: .7rem; font: 500 .68rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--y), transparent); transform-origin: top; animation: cue 2s ease-in-out infinite; }
@media (min-width: 768px) { .scroll-cue { display: inline-flex; } }

.ticker { overflow: hidden; white-space: nowrap; padding: .9rem 0; border-top: 1px solid var(--line-d); background: rgba(18, 19, 21, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker__grp {
  display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem;
  font: 500 .76rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .72);
}
.ticker__grp b { color: var(--y); font-weight: 400; }

/* ---------- 7. Manifiesto ---------- */
.manifesto { overflow: clip; }
.manifesto__in { position: relative; z-index: 1; display: grid; gap: 2rem; }
.scrub { font: 700 clamp(1.9rem, 6.3vw, 4.3rem)/1.1 var(--f-display); text-transform: uppercase; max-width: 22em; letter-spacing: -.003em; }
.is-scrub .w, .is-scrub .inl { opacity: var(--o, .15); transition: opacity .3s ease; }
.inl { display: inline-block; height: .82em; width: 1.9em; object-fit: cover; border-radius: .42em; vertical-align: -.08em; margin: 0 .08em; }

.roofs { position: absolute; z-index: 0; pointer-events: none; }
.roofs path {
  fill: none; stroke: currentColor; stroke-width: .5; stroke-linejoin: miter;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 7.5s var(--ease-io) infinite; animation-delay: calc(var(--i) * .45s);
}
.roofs--bg { right: -12%; bottom: -10%; width: min(90vw, 760px); color: rgba(18, 19, 21, .2); }
.roofs--big { right: -10%; bottom: -14%; width: min(110vw, 980px); color: rgba(18, 19, 21, .3); }

/* ---------- 8. Recorrido: la imagen se abre ---------- */
.expand { --p: .3; --w0: 66vw; --h0: 42vh; position: relative; height: 240vh; background: var(--ink); color: #fff; }
.expand__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: clip; }
.expand__words { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ew {
  grid-area: 1 / 1; font: 800 clamp(4.4rem, 24vw, 9rem)/.8 var(--f-display); text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .32); will-change: transform;
}
.ew--l { transform: translate(calc(var(--p) * -85vw), calc((var(--h0) / -2) - 3.2rem)); }
.ew--r { transform: translate(calc(var(--p) * 85vw), calc((var(--h0) / 2) + 3.2rem)); }
.expand__frame {
  position: relative; overflow: hidden; background: var(--ink-2);
  width: calc(var(--w0) + (100vw - var(--w0)) * var(--p)); height: calc(var(--h0) + (100vh - var(--h0)) * var(--p));
  height: calc(var(--h0) + (100svh - var(--h0)) * var(--p));
  border-radius: calc(34px * (1 - var(--p))); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8);
}
.expand__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.28 - var(--p) * .28)); }
.expand__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 19, 21, .1) 30%, rgba(18, 19, 21, .88) 100%); opacity: calc(.15 + var(--p) * .85); }
.expand__copy {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1.1rem; justify-items: start; max-width: 52rem;
  padding: clamp(1.4rem, 5vw, 4rem); padding-bottom: calc(var(--rad) + clamp(1.6rem, 4vw, 3rem));
  opacity: 0; transform: translateY(34px); pointer-events: none; transition: opacity .7s var(--ease), transform .8s var(--ease);
}
.expand.is-open .expand__copy { opacity: 1; transform: none; pointer-events: auto; }
.expand__copy .h2 { font-size: clamp(2.9rem, 9vw, 6.6rem); }
.expand__copy p:not(.kicker) { max-width: 30rem; color: rgba(255, 255, 255, .86); font-size: 1.05rem; }
.expand__hint {
  position: absolute; bottom: calc(var(--rad) + .8rem); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font: 500 .68rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
  opacity: clamp(0, calc(1 - var(--p) * 5), 1);
}
.expand__hint i { width: 1px; height: 34px; background: linear-gradient(var(--y), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@media (min-width: 900px) {
  .expand { --w0: 40vw; --h0: 58vh; height: 280vh; }
  /* Igual que en móvil: una palabra asoma arriba y otra abajo de la foto (antes se solapaban detrás de ella y no se leían) */
  .ew { font-size: clamp(7rem, 17vw, 19rem); }
  .ew--l { transform: translate(calc(-22% + var(--p) * -80vw), calc((var(--h0) / -2) - 6.5vh)); }
  .ew--r { transform: translate(calc(22% + var(--p) * 80vw), calc((var(--h0) / 2) + 6.5vh)); }
}

/* ---------- 9. Usos (bento) ---------- */
.bento { display: grid; gap: 1rem; }
.bcard {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: .85rem;
  min-height: 390px; padding: 1.6rem; border-radius: 28px; overflow: hidden; color: #fff; background: var(--ink-2);
}
.bcard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transition: transform 1.6s var(--ease); }
.bcard:hover .bcard__bg { transform: scale(1.07); }
.bcard::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(18, 19, 21, 0) 28%, rgba(18, 19, 21, .9) 100%); }
.bcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 228, 0, .22), transparent 60%);
}
.bcard:hover::before { opacity: 1; }
.bcard h3 { font: 700 clamp(2rem, 4.2vw, 2.9rem)/.98 var(--f-display); text-transform: uppercase; max-width: 14em; }
.bcard p { max-width: 30rem; color: rgba(255, 255, 255, .84); }
.bcard small { max-width: 30rem; font-size: .76rem; line-height: 1.45; color: rgba(255, 255, 255, .62); }
.bcard__tag {
  align-self: flex-start; padding: .38rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.bcard__link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.1rem; border-radius: 999px;
  background: var(--y); color: var(--ink); font-weight: 700; font-size: .92rem; transition: gap .3s var(--ease), transform .3s var(--ease);
}
.bcard__link:hover { gap: .95rem; transform: translateY(-2px); }
/* Curvas de nivel concéntricas alrededor del ícono: la tarjeta deja de verse vacía y repite el motivo cartográfico */
.bcard--b {
  background:
    repeating-radial-gradient(circle at calc(100% - 67px) 67px, transparent 0 24px, rgba(255, 228, 0, .13) 24px 25px),
    linear-gradient(160deg, #2c2d33, #17181b);
}
.bcard--b::after, .bcard--c::after { display: none; }
.bcard--c {
  background-color: var(--y); color: var(--ink);
  background-image: repeating-radial-gradient(circle at calc(100% - 67px) 67px, transparent 0 24px, rgba(18, 19, 21, .12) 24px 25px);
}
.bcard--c p { color: rgba(18, 19, 21, .82); }
.bcard--c .bcard__tag { background: rgba(18, 19, 21, .1); }
.bcard--c .bcard__link { background: var(--ink); color: #fff; }
.bcard__icon { position: absolute; top: 1.5rem; right: 1.5rem; width: 86px; height: 86px; fill: none; stroke: var(--y); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bcard--c .bcard__icon { stroke: var(--ink); }
.draw path, .draw circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 6s var(--ease-io) infinite; }
.draw path:nth-child(2) { animation-delay: .3s; } .draw path:nth-child(3) { animation-delay: .6s; } .draw circle { animation-delay: .9s; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } .bcard { min-height: 430px; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
  .bcard { padding: 2.1rem; min-height: 470px; }
  .bcard--a, .bcard--d { grid-column: span 7; }
  .bcard--b, .bcard--c { grid-column: span 5; }
}

/* ---------- 9b. Terrenos disponibles ---------- */
.disp {
  border-radius: var(--rad) var(--rad) 0 0; margin-top: calc(var(--rad) * -1);
  padding-top: calc(clamp(5rem, 11vw, 9rem) + 0px);
}
.lotes { display: grid; gap: 1.25rem; }
.lote {
  position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #f1f1ec; box-shadow: 0 30px 60px -36px rgba(18, 19, 21, .6);
}
.lote__media { position: relative; display: grid; gap: 4px; background: var(--ink-3); }
.lote__main { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; background: var(--ink-3); }
.lote__main img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 55%);
  transition: transform 1.4s var(--ease);
}
.lote__main:hover img { transform: scale(1.05); }
.lote__tag {
  position: absolute; left: .9rem; top: .9rem; z-index: 2; padding: .38rem .75rem; border-radius: 999px; pointer-events: none;
  background: rgba(18, 19, 21, .55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.lote__zoom {
  position: absolute; right: .8rem; bottom: .8rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: rgba(18, 19, 21, .6); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lote__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.lote__thumbs button { display: block; aspect-ratio: 1 / 1; overflow: hidden; cursor: zoom-in; background: var(--ink-3); }
.lote__thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.lote__thumbs button:hover img { transform: scale(1.08); opacity: .88; }

.lote__body { display: flex; flex-direction: column; gap: 1rem; flex: 1; padding: 1.5rem 1.4rem 1.6rem; }
.lote__zone { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.lote h3 { font: 700 clamp(2.2rem, 3.6vw, 2.8rem)/.95 var(--f-display); text-transform: uppercase; letter-spacing: -.004em; }
.lote__size { display: flex; align-items: baseline; gap: .5rem; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.lote__size b { font: 700 2.6rem/1 var(--f-display); color: var(--y); }
.lote__prices { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0; }
.lote__prices > div { display: flex; flex-direction: column; gap: .15rem; padding: .85rem .9rem; border-radius: 16px; border: 1px solid var(--line-d); }
.lote__prices dt { font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.lote__prices dd { margin: 0; }
.lote__prices dd:not(.lote__terms) { font: 700 clamp(1.7rem, 2.2vw, 2rem)/1.05 var(--f-display); letter-spacing: .005em; }
.lote__prices dd small { font: 500 .62rem/1 var(--f-mono); letter-spacing: .1em; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.lote__terms { font-size: .78rem; line-height: 1.35; color: rgba(255, 255, 255, .7); }
.lote__prices .is-cash { background: var(--y); border-color: var(--y); color: var(--ink); }
.lote__prices .is-cash dt, .lote__prices .is-cash dd small, .lote__prices .is-cash .lote__terms { color: rgba(18, 19, 21, .72); }
.lote__perks { display: flex; flex-wrap: wrap; gap: .4rem; }
.lote__perks li { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .7rem .38rem .55rem; border-radius: 999px; border: 1px solid var(--line-d); font-size: .78rem; line-height: 1.2; color: rgba(255, 255, 255, .88); }
.lote__perks .ico { width: .95em; height: .95em; color: var(--y); }
.lote__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; margin-top: auto; padding-top: .4rem; }
.lote__map {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
  font-weight: 700; font-size: .9rem; line-height: 1; transition: background .3s, border-color .3s;
}
.lote__map:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .6); }
.lote__map .ico { color: var(--y); }
.lotes__note { margin-top: 1.6rem; max-width: 40rem; font-size: .88rem; color: var(--gr); }
/* Móvil angosto: precios y municipio sin saltos de línea feos */
@media (max-width: 440px) {
  .lote__prices dd:not(.lote__terms) { font-size: 1.5rem; }
  .lote__zone { letter-spacing: .08em; }
}
/* Tableta: foto a la izquierda, datos a la derecha */
@media (min-width: 720px) and (max-width: 1099px) {
  .lote { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .lote__media { grid-template-rows: 1fr auto; }
  .lote__main { aspect-ratio: auto; min-height: 320px; }
}
/* Escritorio: tres columnas */
@media (min-width: 1100px) {
  .lotes { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* ---------- 10. Galería 3D ---------- */
.galeria { overflow: clip; }
.ring {
  --cw: 150px; --ch: 224px; --r: 216px;
  position: relative; height: calc(var(--ch) + 170px); perspective: 1500px; perspective-origin: 50% 38%;
  overflow: clip; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; margin-top: -1rem;
}
.ring.is-drag { cursor: grabbing; }
.ring__floor {
  position: absolute; left: 50%; bottom: 3%; width: min(92vw, 860px); height: 110px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 228, 0, .3), transparent); filter: blur(12px); pointer-events: none;
}
.ring__stage {
  position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch);
  margin: calc(var(--ch) / -2 - 14px) 0 0 calc(var(--cw) / -2); transform-style: preserve-3d;
  animation: ringspin 60s linear infinite;
}
.ring__stage.is-js { animation: none; }
.rc {
  position: absolute; inset: 0; margin: 0; border-radius: 16px; overflow: hidden; background: var(--ink-3);
  transform: rotateY(calc(var(--i) * var(--step, 40deg))) translateZ(var(--r)); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .85); border: 1px solid rgba(255, 255, 255, .14);
}
.rc img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rc figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem .8rem .7rem; background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  font: 500 .6rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.ring__hint {
  display: flex; justify-content: center; align-items: center; gap: .9rem; margin-top: .6rem;
  font: 500 .7rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.ring__arrow { color: var(--y); animation: nudgeX 1.8s ease-in-out infinite; display: inline-block; }
.ring__arrow:last-child { animation-direction: reverse; }
@media (min-width: 768px) { .ring { --cw: 200px; --ch: 292px; --r: 292px; } }
@media (min-width: 1200px) { .ring { --cw: 240px; --ch: 344px; --r: 352px; } }

/* ---------- 11. Medidor de lote ---------- */
.calc {
  display: grid; border-radius: 32px; overflow: hidden; background: #fff; border: 1px solid var(--line-l);
  box-shadow: 0 40px 80px -40px rgba(18, 19, 21, .45);
}
.calc__form { display: grid; gap: 1.4rem; padding: clamp(1.4rem, 4vw, 2.6rem); align-content: start; }
.calc__viz { position: relative; display: grid; align-content: center; gap: .6rem; min-height: 320px; padding: 1.2rem; background: var(--ink); }
.calc__svg { width: 100%; height: auto; max-height: 440px; }
.lot { fill: rgba(255, 228, 0, .16); stroke: var(--y); stroke-width: 2; }
.dim { stroke: rgba(255, 255, 255, .6); stroke-width: 1; stroke-dasharray: 4 3; }
.dimtxt { fill: #fff; font: 500 13px var(--f-mono); }
.stake { fill: var(--y); stroke: var(--ink); stroke-width: 2; }
.calc__legend { display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.calc__legend i { width: 14px; height: 10px; border: 2px solid var(--y); background: rgba(255, 228, 0, .2); }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); } .calc__viz { min-height: 560px; padding: 2rem; } }

.field { display: grid; gap: .45rem; }
.field label, .chips legend {
  display: flex; justify-content: space-between; gap: 1rem; width: 100%; padding: 0;
  font: 600 .76rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gr);
}
.field output { color: var(--ink); font-weight: 700; }
.field label em { font-style: normal; opacity: .7; text-transform: none; letter-spacing: 0; }
.chips legend { margin-bottom: .7rem; }
.chip { position: relative; display: inline-block; margin: 0 .4rem .5rem 0; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line-l); background: #fff; color: var(--ink);
  font: 600 .86rem/1 var(--f-body); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.chip:hover span { transform: translateY(-2px); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--y-deep); outline-offset: 2px; }
.chips--dark legend { color: #bdbdc2; }
.chips--dark .chip span { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .2); }
.chips--dark .chip input:checked + span { background: var(--y); color: var(--ink); border-color: var(--y); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--fill, 30%), rgba(18, 19, 21, .14) var(--fill, 30%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(18, 19, 21, .14); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--y); border: 3px solid var(--ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--y); border: 3px solid var(--ink); }

.calc__result { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1.4rem; padding: 1.1rem 1.3rem; border-radius: 18px; background: var(--paper); }
.calc__area { font: 800 clamp(3.2rem, 10vw, 4.8rem)/1 var(--f-display); letter-spacing: -.01em; }
.calc__area small { font-size: .42em; margin-left: .15em; color: var(--gr); }
.calc__cmp { flex: 1 1 14rem; font-size: .9rem; color: var(--gr); }
.calc__note { font-size: .76rem; color: var(--gr-2); line-height: 1.45; }

/* ---------- 12. Plano de lotificación ---------- */
.plano { overflow: clip; }
.plano__bg {
  position: absolute; inset: 0; pointer-events: none; animation: gridmove 22s linear infinite;
  background-image: linear-gradient(rgba(255, 228, 0, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 228, 0, .08) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 72% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 72% 50%, #000, transparent);
}
.plano__grid { position: relative; display: grid; gap: 3.5rem; align-items: center; }
.plano__copy { display: grid; gap: 1.4rem; justify-items: start; }
.plano__p { max-width: 34rem; color: rgba(255, 255, 255, .76); font-size: 1.05rem; }
.plano__list { display: grid; gap: .7rem; }
.plano__list li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.plano__list .ico { flex: none; width: 1.7rem; height: 1.7rem; padding: .35rem; border-radius: 50%; background: var(--y); color: var(--ink); stroke-width: 2.6; }
@media (min-width: 960px) { .plano__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 5rem; } }

.sheet { --sy: -9; --sx: 3; position: relative; width: min(100%, 360px); margin-inline: auto; perspective: 1400px; }
.sheet__btn {
  position: relative; display: block; width: 100%; padding: 14px; border-radius: 12px; background: #fff; cursor: zoom-in;
  transform: rotateY(calc(var(--sy) * 1deg)) rotateX(calc(var(--sx) * 1deg)); transition: transform .5s var(--ease);
  box-shadow: 0 60px 90px -34px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .12), 0 0 70px -10px rgba(255, 228, 0, .22);
}
.sheet__paper { display: block; overflow: hidden; border-radius: 6px; }
.sheet__paper img { width: 100%; height: auto; }
.sheet__scan {
  position: absolute; left: 14px; right: 14px; top: 14px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--y), transparent); box-shadow: 0 0 22px 6px rgba(255, 228, 0, .55);
  animation: scan 4.6s ease-in-out infinite;
}
.sheet__corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--y); pointer-events: none; }
.sc1 { left: -9px; top: -9px; border-top-width: 3px; border-left-width: 3px; }
.sc2 { right: -9px; top: -9px; border-top-width: 3px; border-right-width: 3px; }
.sc3 { left: -9px; bottom: -9px; border-bottom-width: 3px; border-left-width: 3px; }
.sc4 { right: -9px; bottom: -9px; border-bottom-width: 3px; border-right-width: 3px; }
.sheet__zoom {
  position: absolute; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px;
  background: var(--ink); color: #fff; font: 600 .76rem/1 var(--f-body);
}
.sheet__zoom .ico { color: var(--y); }
.sheet__cap { margin-top: 1.4rem; text-align: center; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* ---------- 13. Método ---------- */
.metodo__grid { display: grid; gap: 3rem; }
.metodo__sticky { display: grid; gap: 1.3rem; justify-items: start; }
.tl { position: relative; padding-left: 3.2rem; }
.tl__rail { position: absolute; left: .9rem; top: 1rem; bottom: 1rem; width: 2px; background: var(--line-l); list-style: none; }
.tl__fill { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(var(--tp, 0)); }
.step { position: relative; display: grid; gap: .6rem; padding: 1.6rem 0 2.6rem; }
.step::before {
  content: ""; position: absolute; left: -2.65rem; top: 2.5rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper-2); border: 2px solid var(--gr-2); transition: background .4s, border-color .4s, box-shadow .4s;
}
.step.is-active::before { background: var(--y); border-color: var(--ink); box-shadow: 0 0 0 7px rgba(255, 228, 0, .35); }
.step__n {
  font: 800 clamp(4rem, 12vw, 7rem)/.85 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px rgba(18, 19, 21, .35);
  transition: color .5s, -webkit-text-stroke-color .5s;
}
.step.is-active .step__n { color: var(--y); -webkit-text-stroke-color: var(--ink); }
.step h3 { font: 700 clamp(1.9rem, 4.4vw, 2.7rem)/1 var(--f-display); text-transform: uppercase; }
.step p { max-width: 32rem; color: var(--gr); font-size: 1.05rem; }
@media (min-width: 960px) {
  .metodo__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; align-items: start; }
  .metodo__side { align-self: stretch; }   /* sin esto la columna mide lo mismo que su contenido y el sticky no tiene recorrido */
  .metodo__sticky { position: sticky; top: 7.5rem; }
  .step { grid-template-columns: 8rem 1fr; gap: 1.5rem; align-items: start; padding: 2rem 0 3.4rem; }
}

/* ---------- 14. Por qué Enlace ---------- */
.porque { overflow: clip; }
.porque__grid { display: grid; gap: 3.5rem; align-items: center; }
.porque__media { position: relative; height: clamp(430px, 108vw, 640px); }
.pm { position: absolute; margin: 0; border-radius: 24px; overflow: hidden; background: var(--ink-3); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); }
.pm--a { left: 0; top: 0; width: 60%; aspect-ratio: 3 / 4; }
.pm--b { right: 0; bottom: 0; width: 52%; aspect-ratio: 3 / 4; }
.pm__in { position: absolute; inset: -12% 0; will-change: transform; }
.pm__in img { width: 100%; height: 100%; object-fit: cover; }
.pm__badge {
  position: absolute; left: 40%; top: 46%; z-index: 2; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  background: var(--y); color: var(--ink); text-align: center; font: 800 1.05rem/.95 var(--f-display); text-transform: uppercase;
  box-shadow: 0 20px 40px -14px rgba(255, 228, 0, .5); animation: bob 5s ease-in-out infinite alternate;
}
.porque__copy { display: grid; gap: 1.4rem; }
.why { display: grid; margin-top: .6rem; }
.why li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line-d); }
.why li:last-child { border-bottom: 1px solid var(--line-d); }
.why__n { font: 800 2.2rem/1 var(--f-display); color: var(--y); }
.why h3 { font: 700 1.55rem/1.05 var(--f-display); text-transform: uppercase; margin-bottom: .35rem; }
.why p { color: rgba(255, 255, 255, .72); }
.why a { color: var(--y); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 960px) { .porque__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; } }

/* ---------- 15. Preguntas ---------- */
.faq__grid { display: grid; gap: 3rem; }
.faq__head { display: grid; gap: 1.2rem; justify-items: start; }
.qa { border-top: 1px solid var(--line-l); }
.qa:last-child { border-bottom: 1px solid var(--line-l); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; cursor: pointer; list-style: none;
  font: 700 clamp(1.4rem, 3.2vw, 1.9rem)/1.05 var(--f-display); text-transform: uppercase;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa__ico { background: var(--y); color: var(--ink); }
.qa__ico { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .45s var(--ease), background .3s, color .3s; }
.qa[open] .qa__ico { transform: rotate(45deg); background: var(--y); color: var(--ink); }
.qa__body { max-width: 42rem; padding: 0 3.4rem 1.6rem 0; color: var(--gr); }
.qa[open] .qa__body { animation: qaIn .5s var(--ease); }
.qa__body a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; align-items: start; }
  .faq__head { position: sticky; top: 7.5rem; }
}

/* ---------- 16. Contacto ---------- */
.contacto { overflow: clip; background: var(--y); color: var(--ink); padding-bottom: calc(clamp(5rem, 11vw, 9rem) + var(--rad)); }
.contacto__grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
.contacto__copy { display: grid; gap: 1.2rem; justify-items: start; }
.contacto__p { max-width: 30rem; font-size: 1.15rem; color: rgba(18, 19, 21, .85); }
.contact-list { display: grid; gap: 1.1rem; margin-top: .6rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list .ico { width: 3rem; height: 3rem; padding: .85rem; border-radius: 50%; background: var(--ink); color: var(--y); }
.contact-list small { display: block; font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .72; margin-bottom: .3rem; }
.contact-list a, .contact-list span { font: 800 2rem/1 var(--f-display); text-transform: uppercase; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contacto__missing { font-weight: 700; }
.form {
  position: relative; display: grid; gap: 1.15rem; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: 28px; background: var(--ink); color: #fff;
  box-shadow: 0 50px 90px -34px rgba(18, 19, 21, .7);
}
.form__title { font: 700 clamp(1.9rem, 4vw, 2.4rem)/1 var(--f-display); text-transform: uppercase; }
.form .field label { color: #bdbdc2; }
.form input[type="text"], .form select, .form textarea {
  width: 100%; padding: .95rem 1rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff;
  font: 500 1rem/1.4 var(--f-body); transition: border-color .25s, background .25s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .45); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--y); background: rgba(255, 255, 255, .1); }
.form select {
  -webkit-appearance: none; appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffe400' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
}
.form select option { color: var(--ink); }
.form textarea { resize: vertical; min-height: 90px; }
.form__note { font-size: .8rem; color: rgba(255, 255, 255, .6); text-align: center; }
.form__status { min-height: 1.2em; font-size: .85rem; text-align: center; color: var(--y); }
@media (min-width: 960px) {
  .contacto__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 5rem; }
  .h2--xl { font-size: min(7.6rem, 9.4vw); }   /* evita el «TU» huérfano en una línea: queda ¿LISTO / PARA PISAR / TU TERRENO? */
}

/* ---------- 17. Pie ---------- */
.foot { position: relative; overflow: clip; border-radius: var(--rad) var(--rad) 0 0; margin-top: calc(var(--rad) * -1); padding-top: calc(clamp(4rem, 9vw, 7rem) + 0px); }
.foot__grid { display: grid; gap: 2.4rem; }
.foot__logo { display: inline-block; padding: .9rem 1.2rem; border-radius: 20px; background: var(--paper); }
.foot__logo img { height: 78px; width: auto; }
.foot__brand p { margin-top: 1.2rem; max-width: 22rem; color: rgba(255, 255, 255, .7); }
.foot h3 { margin-bottom: .9rem; font: 500 .74rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--y); }
.foot nav a, .foot__contact a, .foot__contact span { display: block; padding: .28rem 0; color: rgba(255, 255, 255, .75); transition: color .25s, transform .25s var(--ease); }
.foot nav a:hover, .foot__contact a:hover { color: #fff; transform: translateX(4px); }
.foot__word {
  margin-top: clamp(2rem, 5vw, 4rem); text-align: center; white-space: nowrap; user-select: none;
  font: 800 clamp(5rem, 30vw, 28rem)/.8 var(--f-display); letter-spacing: .01em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
  background: linear-gradient(100deg, transparent 35%, rgba(255, 228, 0, .9) 50%, transparent 65%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; animation: wordshine 7s linear infinite;
}
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-block: 1.6rem; padding-right: 4.8rem; border-top: 1px solid var(--line-d); font-size: .85rem; color: rgba(255, 255, 255, .55); }
.foot__top { display: inline-flex; align-items: center; gap: .5rem; color: #fff; }
.foot__top .ico { transform: rotate(-90deg); color: var(--y); }
@media (min-width: 768px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- 18. WhatsApp flotante y visor ---------- */
.wa-float { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 75; display: flex; align-items: center; gap: .7rem; }
.wa-float__btn {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .65); transition: transform .3s var(--ease);
}
.wa-float:hover .wa-float__btn { transform: scale(1.08) rotate(-6deg); }
.wa-float__btn .ico { width: 30px; height: 30px; stroke-width: 1.8; }
.wa-float__btn::before, .wa-float__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.6s ease-out infinite; }
.wa-float__btn::after { animation-delay: 1.3s; }
.wa-float__tip {
  padding: .6rem .95rem; border-radius: 999px; background: #fff; color: var(--ink); font: 700 .85rem/1 var(--f-body);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease);
}
.wa-float.show-tip .wa-float__tip { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; background: rgba(10, 10, 12, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s;
}
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 90vh; max-height: 90svh; width: auto; height: auto; border-radius: 10px; background: #fff; transform: scale(.94); transition: transform .55s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--y); color: var(--ink); }

/* ---------- 19. Entradas con scroll (a prueba de fallos) ---------- */
[data-reveal] { transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
html.js:not(.reveal-fallback) [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 38px, 0); }
html.js:not(.reveal-fallback) [data-reveal="zoom"]:not(.is-in) { transform: translate3d(0, 30px, 0) scale(.94); }
html.js:not(.reveal-fallback) [data-reveal]:not(.is-in) .mark { background-size: 0% 100%; }

/* Cortina amarilla: un hijo (::after) se desliza; el elemento observado nunca se recorta */
.curtain::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--y);
  transform-origin: right center; transform: scaleX(0); transition: transform 1.1s var(--ease-io) var(--d, 0s);
}
html.js:not(.reveal-fallback) .curtain:not(.is-in)::after { transform: scaleX(1); }

/* Respaldo total: si el script no arranca, todo se ve */
html.reveal-fallback .hero .line__in, html.reveal-fallback .hero [data-h] { transform: none !important; opacity: 1 !important; }
html.reveal-fallback .is-scrub .w, html.reveal-fallback .is-scrub .inl { opacity: 1 !important; }
html.reveal-fallback .curtain::after { display: none; }
html.reveal-fallback .expand { --p: 1; }
html.reveal-fallback .expand__copy { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- 20. Animaciones ---------- */
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -14px, 0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 228, 0, .55); } 70%, 100% { box-shadow: 0 0 0 11px rgba(255, 228, 0, 0); } }
@keyframes travel { from { left: -30%; } to { left: 100%; } }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes nudgeX { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes draw { 0% { stroke-dashoffset: 1; } 40%, 65% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes scan { 0% { top: 14px; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: calc(100% - 17px); opacity: 0; } }
@keyframes gridmove { to { background-position: 56px 56px; } }
@keyframes ringspin { to { transform: rotateY(360deg); } }
@keyframes wordshine { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes qaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fill { to { transform: scaleX(1); } }
@keyframes logoIn { to { clip-path: inset(0 0 0 0); } }
@keyframes markIn { from { opacity: 0; transform: scale(1.5); } to { opacity: 1; transform: none; } }
@keyframes glowPulse { from { opacity: .45; } to { opacity: 1; } }
@keyframes loaderFail { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- 21. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ticker__track { animation: none; }
  .ring__stage { animation: none; }
  .roofs path { stroke-dashoffset: 0; }
  .draw path, .draw circle { stroke-dashoffset: 0; }
}
