/* =====================================================================
   Montecielo Propiedad Raíz · landing 2 (dark, BLDR-inspired)
   Vanilla CSS. Mobile first. Tokens on :root.
   ===================================================================== */

:root {
  --bg: #0B0E0C;          /* page */
  --panel: #141916;       /* section panels, tiles */
  --card: #0F1311;        /* cards inside sections */
  --card-2: #1A201C;      /* active / raised cards */
  --line: rgba(245, 241, 234, .09);
  --line-2: rgba(245, 241, 234, .17);
  --text: #F5F1EA;        /* Montecielo ivory */
  --muted: rgba(245, 241, 234, .66);
  --faint: rgba(245, 241, 234, .52);
  --accent: #D9894F;      /* Montecielo terracotta, brightened for dark */
  --accent-2: #E59E68;
  --accent-ink: #1A0F07;
  --accent-glow: rgba(217, 137, 79, .42);
  --ok: #5BD69A;
  --danger: #EF8A6B;

  --top-h: 40px;
  --nav-h: 72px;
  --r-lg: 24px;
  --r: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --f-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 30px; height: 30px; stroke-width: 1.4; }

/* ---------- type ---------- */
.h1, .h2, .h3, .wm, .btn, .eyebrow, .num, .price, .lst-t, .lit, .ticker, .tick-k, .zone-k, .form-title, .ft-giant {
  font-family: var(--f-display);
}
.h1 {
  font-weight: 600;
  font-size: clamp(2.2rem, 1.1rem + 4.7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h2 {
  font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 1.0625rem; line-height: 1.6; max-width: 44ch; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; gap: .45em; align-items: center;
  margin-bottom: 18px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint);
}
.sl { color: var(--accent); letter-spacing: 0; }

/* ---------- buttons (with rolling letters) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 500; letter-spacing: -.005em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s, border-color .3s, box-shadow .35s, color .3s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover > .ic:last-child { transform: translateX(3px); }
.btn-accent {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 12px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 16px 40px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-glass {
  background: rgba(245, 241, 234, .1); color: var(--text);
  border-color: rgba(245, 241, 234, .2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(245, 241, 234, .16); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(245, 241, 234, .06); border-color: rgba(245, 241, 234, .3); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-block { width: 100%; }

.roll-in { display: inline-flex; overflow: hidden; height: 1.2em; line-height: 1.2em; }
.roll-ch {
  display: block; white-space: pre;
  text-shadow: 0 1.2em 0 currentColor;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1);
  transition-delay: calc(var(--i) * 14ms);
}
.btn:hover .roll-ch, .btn:focus-visible .roll-ch { transform: translateY(-1.2em); }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 500; font-size: .9375rem; text-decoration: none;
}
.link .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link:hover .ic { transform: translateX(3px); }

.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line-2); cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.round-btn:hover { background: var(--card-2); border-color: var(--accent); }

/* ---------- glow border (follows the cursor) ---------- */
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 22%) var(--my, 0%), var(--glow-c, rgba(245, 241, 234, .32)), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity .4s;
}
.glow:hover { --glow-c: rgba(217, 137, 79, .95); }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.panel { margin-inline: 8px; border-radius: var(--r-lg); background: var(--panel); }
.panel .glow, .panel .action, .panel .qa { background: var(--card); }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.split { display: grid; gap: 18px; }
.sec-head.split .eyebrow { margin-bottom: 14px; }
.sec-side { display: grid; gap: 20px; justify-items: start; }
.sec-head.center, .center { text-align: center; }
.sec-head.center .lead { margin: 16px auto 0; }
.center { margin-top: 40px; }

/* =====================================================================
   0 · TOP BAR + HEADER
   ===================================================================== */
.topbar { height: var(--top-h); border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--faint); }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.tb-live { display: none; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.tb-live:hover { color: var(--text); }
.tb-sep { opacity: .5; }
.tb-demo { margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(91, 214, 154, .6); animation: live 2.4s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(91, 214, 154, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(91, 214, 154, 0); } }

.lang { display: inline-flex; padding: 2px; border-radius: 999px; border: 1px solid var(--line-2); }
.lang button {
  min-width: 34px; height: 26px; padding: 0 8px; border: 0; border-radius: 999px;
  background: transparent; color: var(--faint); font-size: .75rem; font-weight: 600; letter-spacing: .06em; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.header {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  transition: background-color .4s, border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(11, 14, 12, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { height: 100%; display: flex; align-items: center; gap: 24px; }
.wm {
  font-weight: 600; font-size: 1.5rem; letter-spacing: -.035em; line-height: 1;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.wm-dot { color: var(--accent); }
.nav-main { display: none; margin-inline: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  position: relative; padding: 6px 0;
  font-family: var(--f-display); font-weight: 500; font-size: .9375rem;
  color: rgba(245, 241, 234, .86); text-decoration: none;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(11, 14, 12, .45); cursor: pointer;
}
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.menu-movil {
  position: absolute; top: calc(100% + 6px); left: 8px; right: 8px;
  padding: 12px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.menu-movil ul { display: grid; margin-bottom: 12px; }
.menu-movil li a {
  display: block; padding: 14px 12px; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; text-decoration: none;
}
.menu-movil .btn { width: 100%; }

/* =====================================================================
   1 · HERO
   ===================================================================== */
.hero { margin-top: calc(-1 * var(--nav-h)); padding: 0 8px; }
.hero-frame {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 620px;
  height: calc(100svh - var(--top-h) - 8px);
  max-height: 960px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: #1b1f1c url("assets/frame_inicial.webp") 60% 50% / cover no-repeat;
}
.hero-media, .hero-media video, .hero-media canvas, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media video, .hero-media canvas { object-fit: cover; object-position: 60% 50%; }
.hero-media canvas { opacity: 0; }
.hero-media canvas.is-on { opacity: 1; }
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 10, 9, .6) 0%, rgba(8, 10, 9, 0) 22%),
    linear-gradient(0deg, rgba(8, 10, 9, .94) 0%, rgba(8, 10, 9, .7) 32%, rgba(8, 10, 9, .1) 64%, rgba(8, 10, 9, 0) 80%);
}
.hero-content { position: relative; padding: calc(var(--nav-h) + 40px) 0 24px; }
.hero .eyebrow { color: rgba(245, 241, 234, .75); }
.h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.h1 .line > span { display: block; }
.h1 .soft { color: rgba(245, 241, 234, .62); }
.hero-lead { margin-top: 20px; max-width: 46ch; color: rgba(245, 241, 234, .82); font-size: 1.0625rem; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(245, 241, 234, .14);
}
.checks { display: grid; gap: 8px; font-size: .875rem; color: rgba(245, 241, 234, .78); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .ic { width: 18px; height: 18px; color: var(--accent); }
.hero-badge { display: none; align-items: center; gap: 10px; font-size: .875rem; color: rgba(245, 241, 234, .78); }
.hero-badge strong {
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(217, 137, 79, .5); background: rgba(217, 137, 79, .12);
  color: var(--accent); font: 600 .8125rem/1 var(--f-display); letter-spacing: .06em;
}
.hero-card {
  display: none;
  position: absolute; right: 28px; bottom: 112px; z-index: 2;
  width: 360px; padding: 12px; gap: 16px;
  grid-template-columns: 104px 1fr; align-items: center;
  border-radius: 18px; border: 1px solid rgba(245, 241, 234, .16);
  background: rgba(15, 19, 17, .55);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.hero-card img { width: 104px; height: 104px; object-fit: cover; object-position: 80% 60%; border-radius: 12px; }
.hc-k { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.hc-t { margin: 4px 0 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }

/* =====================================================================
   2 · SERVICES
   ===================================================================== */
.svc-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 4px;
}
.svc-track::-webkit-scrollbar { display: none; }
.svc {
  height: 380px; border-radius: var(--r); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  scroll-snap-align: start;
}
.svc-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .1; transform: scale(1.08); filter: grayscale(.6);
  transition: opacity .7s ease, transform 1.2s var(--ease), filter .7s;
}
.svc::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 10, 9, .45) 0%, rgba(8, 10, 9, .15) 38%, rgba(8, 10, 9, .92) 100%);
  opacity: 0; transition: opacity .6s;
}
.svc-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.svc-body > .ic { color: var(--text); }
.svc-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .45s; }
.svc-more > p { overflow: hidden; min-height: 0; padding-top: 10px; color: rgba(245, 241, 234, .8); font-size: .9375rem; }
.svc:hover .svc-img, .svc:focus-within .svc-img { opacity: 1; transform: scale(1); filter: none; }
.svc:hover::after, .svc:focus-within::after { opacity: 1; }
.svc:hover .svc-more, .svc:focus-within .svc-more { grid-template-rows: 1fr; opacity: 1; }
.svc:hover .svc-body > .ic { color: var(--accent); }
@media (hover: none) {
  .svc-img { opacity: .55; transform: none; filter: none; }
  .svc::after { opacity: 1; }
  .svc-more { grid-template-rows: 1fr; opacity: 1; }
}
.svc-nav { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.svc-nav[hidden] { display: none; }
.svc-bar { flex: 1; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.svc-bar span { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); transition: width .25s; }

/* =====================================================================
   3 · LISTINGS (stacking cards)
   ===================================================================== */
.stack { display: grid; gap: 20px; }
.lst {
  display: grid; gap: 12px; padding: 10px;
  border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 -24px 48px -24px rgba(0, 0, 0, .7);
}
.lst-img { overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; }
.lst-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lst:hover .lst-img img { transform: scale(1.04); }
.lst-info { display: flex; flex-direction: column; gap: 14px; padding: 12px 10px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2);
  font-size: .78rem; font-weight: 500; color: var(--muted);
}
.chip .ic { width: 14px; height: 14px; }
.chip-demo { color: var(--accent); border-color: rgba(217, 137, 79, .45); background: rgba(217, 137, 79, .08); }
.lst-t { font-weight: 600; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem); line-height: 1.1; letter-spacing: -.025em; }
.lst-p { color: var(--muted); max-width: 46ch; }
.specs { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: .9375rem; }
.specs li { display: inline-flex; align-items: center; gap: 8px; }
.specs .ic { width: 18px; height: 18px; color: var(--faint); }
.lst-foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.price { font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--f-text); font-size: .8125rem; font-weight: 500; color: var(--faint); letter-spacing: 0; }

/* =====================================================================
   4 · OWNERS (sticky process)
   ===================================================================== */
.process { display: grid; gap: 40px; }
.process-media { display: none; }
.pm-frame {
  position: relative; overflow: hidden; border-radius: 20px;
  height: min(580px, calc(100svh - var(--nav-h) - 72px));
  background: var(--card);
}
.pm-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%;
  opacity: 0; transform: scale(1.06);
  transition: opacity .8s ease, transform 1.4s var(--ease);
}
.pm-frame img.is-on { opacity: 1; transform: none; }
.pm-count {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(11, 14, 12, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  font: 500 .8125rem/1 var(--f-display); letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--muted);
}
.pm-count span { color: var(--text); }
.process-steps { position: relative; padding-left: 24px; }
.p-line { position: absolute; left: 0; top: 10px; bottom: 96px; width: 1px; background: var(--line-2); }
.p-line span {
  display: block; width: 100%; height: calc(var(--p, 0) * 100%);
  background: linear-gradient(180deg, rgba(217, 137, 79, .2), var(--accent));
  box-shadow: 0 0 12px var(--accent-glow);
}
.process-steps ol { display: grid; gap: 12px; margin-bottom: 32px; }
.pstep {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 20px; border-radius: var(--r); border: 1px solid transparent;
  transition: opacity .5s, background-color .5s, border-color .5s;
}
.pstep p { margin-top: 8px; color: var(--muted); }
.pstep.is-on { background: var(--card-2); border-color: var(--line-2); }
.p-ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(245, 241, 234, .05); border: 1px solid var(--line);
  color: var(--text); transition: color .4s, border-color .4s, background-color .4s;
}
.pstep.is-on .p-ic { color: var(--accent); border-color: rgba(217, 137, 79, .45); background: rgba(217, 137, 79, .08); }
.p-num { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 4px; }

/* =====================================================================
   5 · WHY (scroll-lit text + bento)
   ===================================================================== */
.lit {
  max-width: 24em; margin-bottom: clamp(40px, 6vw, 72px);
  font-weight: 500; font-size: clamp(1.6rem, 1rem + 2.5vw, 2.85rem); line-height: 1.18; letter-spacing: -.025em;
  text-wrap: pretty;
}
.lit em { font-style: normal; color: var(--accent); }
.lit .w { color: rgba(245, 241, 234, .16); transition: color .35s ease; }
.lit .w.on { color: var(--text); }
.lit .w.em.on { color: var(--accent); }
.bento { display: grid; gap: 14px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 220px; padding: 26px;
  border-radius: 20px; background: var(--panel); border: 1px solid var(--line);
}
.tile-img { min-height: 360px; }
.tile-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1.4s var(--ease); }
.tile-img:hover > img { transform: scale(1.04); }
.tile-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 10, 9, .75) 0%, rgba(8, 10, 9, .1) 40%, rgba(8, 10, 9, .2) 60%, rgba(8, 10, 9, .9) 100%);
}
.tile-top, .tile-foot { position: relative; z-index: 2; }
.tile-top { display: flex; align-items: center; gap: 14px; }
.tile-top .p-ic { color: var(--accent); background: rgba(11, 14, 12, .45); }
.tile-foot { max-width: 34ch; color: rgba(245, 241, 234, .86); }
.num { font-weight: 600; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.tile-p { color: var(--muted); max-width: 32ch; }
.tile-ticker { justify-content: flex-start; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.topo path { fill: none; stroke: rgba(245, 241, 234, .07); stroke-width: 1; }
.tick-k, .ticker, .tile-ticker .tile-p { position: relative; z-index: 1; }
.tick-k { font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.ticker {
  height: 1.2em; overflow: hidden; margin-top: 6px;
  font-weight: 600; font-size: clamp(2rem, 1.45rem + 1.9vw, 2.75rem); line-height: 1.2; letter-spacing: -.03em;
  color: var(--accent);
}
.ticker-in { display: flex; flex-direction: column; }
.ticker-in > span { display: block; height: 1.2em; }
.tile-ticker .tile-p { margin-top: auto; }
.pill {
  display: inline-flex; align-items: center; padding: 3px 9px; margin-right: 4px; border-radius: 999px;
  border: 1px solid rgba(217, 137, 79, .45); color: var(--accent);
  font: 600 .75rem/1.2 var(--f-display); letter-spacing: .06em;
}

/* =====================================================================
   6 · TENANTS
   ===================================================================== */
.actions { display: grid; gap: 14px; }
.action {
  display: grid; grid-template-columns: 44px 1fr 24px; column-gap: 16px; row-gap: 4px; align-items: start;
  padding: 22px; border-radius: var(--r); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; align-content: start;
}
.action .p-ic { grid-row: span 2; }
.action-t { font-family: var(--f-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; padding-top: 2px; }
.action-p { grid-column: 2; color: var(--muted); font-size: .9375rem; }
.action-go { grid-column: 3; grid-row: 1; color: var(--faint); transition: transform .35s var(--ease), color .3s; }
.action:hover .action-go { transform: translate(3px, -3px); color: var(--accent); }
.action:hover .p-ic { color: var(--accent); border-color: rgba(217, 137, 79, .45); }
.sos {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 18px;
  border-radius: var(--r-sm); border: 1px solid rgba(239, 138, 107, .3); background: rgba(239, 138, 107, .07);
  color: rgba(245, 241, 234, .86); font-size: .9375rem;
}
.sos .ic { color: var(--danger); margin-top: 2px; }

/* =====================================================================
   7 · ZONES (dotted map)
   ===================================================================== */
.map-card {
  display: grid; gap: 8px; padding: 10px;
  border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line);
}
.map {
  position: relative; display: grid; place-items: center; padding: 14px 0;
  border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 55% 45%, #161c18 0%, var(--card) 70%);
}
.map-box { position: relative; width: min(100%, 440px); aspect-ratio: 400 / 480; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#dots circle { fill: rgba(245, 241, 234, .26); }
.valley { fill: url(#dots); }
.river { fill: none; stroke: rgba(217, 137, 79, .6); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 7; }
.map-lbl { fill: rgba(245, 241, 234, .38); font: 600 11px var(--f-text); letter-spacing: .16em; }
.river-lbl { fill: rgba(217, 137, 79, .75); font-size: 10px; font-weight: 500; letter-spacing: .06em; }
.pin {
  position: absolute; left: var(--x); top: var(--y);
  translate: -50% calc(-100% + 7px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--text);
}
.pin-lbl {
  padding: 5px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(11, 14, 12, .88); border: 1px solid var(--line-2);
  font-size: .6875rem; font-weight: 500; line-height: 1.2;
  transition: background-color .3s, color .3s, border-color .3s;
}
.pin-dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217, 137, 79, .2); }
.pin-dot::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0; animation: ping 2.6s ease-out infinite;
}
.pin:nth-of-type(2) .pin-dot::after { animation-delay: .5s; }
.pin:nth-of-type(3) .pin-dot::after { animation-delay: 1s; }
.pin:nth-of-type(4) .pin-dot::after { animation-delay: 1.5s; }
.pin:nth-of-type(5) .pin-dot::after { animation-delay: 2s; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.pin:hover .pin-lbl { border-color: var(--accent); }
.pin.is-on .pin-lbl { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.map-cap { position: absolute; left: 14px; bottom: 12px; font-size: .6875rem; color: var(--faint); }
.map-side { display: grid; gap: 14px; justify-items: start; padding: 18px 14px 14px; }
.zone-k { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; }
.zone-k .ic { color: var(--accent); }
.zone-note { color: var(--muted); min-height: 3.2em; max-width: 36ch; }

/* =====================================================================
   8 · FAQ
   ===================================================================== */
.faq-grid { display: grid; gap: 36px; }
.faq-head .lead { margin: 16px 0 24px; }
.qa { border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; transition: border-color .3s; }
.qa.is-open { border-color: var(--line-2); }
.qa h3 { font: inherit; }
.qa button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 18px 18px 20px; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--f-display); font-weight: 500; font-size: 1.0625rem; letter-spacing: -.005em;
}
.qa-ic {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .4s var(--ease);
}
.qa-ic .ic { width: 16px; height: 16px; stroke-width: 2; }
.qa.is-open .qa-ic { transform: rotate(45deg); }
.qa-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease); }
.js .qa-a { grid-template-rows: 0fr; }
.js .qa.is-open .qa-a { grid-template-rows: 1fr; }
.qa-a > div { overflow: hidden; min-height: 0; }
.qa-a p { padding: 0 20px 20px; color: var(--muted); max-width: 62ch; }

/* =====================================================================
   9 · CONTACT
   ===================================================================== */
.contact { padding: 0 8px; }
.contact-frame { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); padding-block: clamp(64px, 8vw, 112px); }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.contact-frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 10, 9, .9) 0%, rgba(8, 10, 9, .76) 55%, rgba(8, 10, 9, .9) 100%);
}
.contact-grid { display: grid; gap: 40px; align-items: center; }
.contact .lead { margin-top: 16px; color: rgba(245, 241, 234, .8); }
.contact-list { margin-top: 28px; display: grid; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(245, 241, 234, .12); }
.contact-list .p-ic { color: var(--accent); background: rgba(11, 14, 12, .5); }
.ck { display: block; font-size: .8125rem; color: var(--faint); }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.form-card {
  padding: clamp(20px, 3vw, 32px); border-radius: 20px;
  background: rgba(15, 19, 17, .74); border: 1px solid rgba(245, 241, 234, .13);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.form-title { font-weight: 600; font-size: 1.375rem; letter-spacing: -.02em; margin-bottom: 18px; }
#demo-form { display: grid; gap: 14px; }
.f-row { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.f input, .f select, .f textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border-radius: 10px; border: 1px solid rgba(245, 241, 234, .14); background: rgba(245, 241, 234, .05);
  color: var(--text); font-size: 1rem; font-weight: 400;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.f textarea { padding: 12px 14px; resize: vertical; min-height: 96px; }
.f select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F1EA' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.f select option { background: var(--panel); color: var(--text); }
.f input::placeholder, .f textarea::placeholder { color: rgba(245, 241, 234, .38); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 137, 79, .2); background: rgba(245, 241, 234, .07); }
.f .is-invalid, .consent.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239, 138, 107, .18); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.consent.is-invalid { color: var(--danger); }
.consent a { color: var(--text); }
.f-note { font-size: .78rem; color: var(--faint); text-align: center; }
.f-error { font-size: .8125rem; color: var(--danger); text-align: center; }
.form-sent { display: grid; gap: 14px; justify-items: start; }
.form-sent p:not(.form-title) { color: var(--muted); }

/* =====================================================================
   10 · FOOTER
   ===================================================================== */
.footer { padding: clamp(64px, 8vw, 96px) 0 calc(96px + env(safe-area-inset-bottom)); }
.ft-top { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
.ft-brand { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; }
.ft-brand p { color: var(--muted); max-width: 34ch; }
.ft-t { margin-bottom: 14px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.ft-col ul { display: grid; gap: 10px; color: var(--muted); font-size: .9375rem; }
.ft-col a { text-decoration: none; }
.ft-col a:hover { color: var(--text); }
.ft-giant {
  margin: clamp(40px, 6vw, 72px) 0 0;
  font-weight: 600; font-size: clamp(3.6rem, 17vw, 15rem); line-height: .9; letter-spacing: -.055em;
  text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(245, 241, 234, .16) 0%, rgba(245, 241, 234, 0) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.ft-giant span { color: rgba(217, 137, 79, .35); -webkit-text-fill-color: rgba(217, 137, 79, .35); }
.ft-bottom {
  display: grid; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--faint);
}
.ft-legal { max-width: 70ch; }
.ft-sign { display: grid; gap: 6px; }
.sign { display: inline-flex; align-items: center; gap: 8px; }
.sign img { height: 22px; width: auto; opacity: .85; transition: opacity .3s; }
.sign a:hover img { opacity: 1; }
.ft-extra a { text-decoration: none; }
.ft-extra a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- legal page (politica.html) ---------- */
.legal { max-width: 760px; padding-block: clamp(48px, 7vw, 88px); }
.legal .h2 { margin-bottom: 24px; }
.legal .h3 { margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.legal strong { color: var(--text); font-weight: 600; }
.legal-note { display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--r-sm); border: 1px solid rgba(217, 137, 79, .35); background: rgba(217, 137, 79, .07); }
.legal-note p + p { margin-top: 0; }
.legal-back { margin-top: 44px; }
.legal-footer { padding-block: 28px; border-top: 1px solid var(--line); }

/* ---------- floating WhatsApp (mobile) ---------- */
.wa-float {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #1FAF5A; color: #fff; box-shadow: 0 14px 30px -10px rgba(31, 175, 90, .6);
  transition: opacity .4s, translate .4s var(--ease);
}
.js .wa-float:not(.is-shown) { opacity: 0; translate: 0 16px; pointer-events: none; }
.has-chat .wa-float { display: none; } /* the GHL chat bubble takes over */
.wa-float .ic { width: 26px; height: 26px; stroke-width: 1.6; }

/* ---------- modal ---------- */
.dlg {
  width: min(460px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: 20px;
  background: var(--panel); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9);
}
.dlg::backdrop { background: rgba(5, 7, 6, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg-in { position: relative; display: grid; gap: 14px; justify-items: start; padding: 32px 28px 28px; }
.dlg-k { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.dlg-t { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; }
.dlg-p { color: var(--muted); }
.dlg-in .btn { margin-top: 6px; }
.dlg-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; }

/* =====================================================================
   MOTION (only when JS is on and the visitor has not asked for less motion)
   ===================================================================== */
.motion [data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .8s ease, transform 1s var(--ease-out), filter .8s ease;
  transition-delay: calc(var(--d, 0) * 90ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.motion .svc[data-reveal].is-in { transition-delay: 0s; }

/* hero entrance */
.motion .topbar-in { opacity: 0; transition: opacity .8s ease .1s; }
.motion .header .nav { opacity: 0; transform: translateY(-120%); transition: transform 1s var(--ease-out) .05s, opacity .6s ease .05s; }
.motion [data-in] { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity .9s ease, transform 1.1s var(--ease-out), filter .9s ease; transition-delay: calc(var(--in, 0) * 110ms + 250ms); }
.motion .h1 .line > [data-in] { opacity: 1; filter: none; transform: translateY(105%); }
.motion .hero-card[data-in] { transform: translateX(30px); }
[data-in="1"] { --in: 1; } [data-in="2"] { --in: 2; } [data-in="3"] { --in: 3; } [data-in="4"] { --in: 4; }
[data-in="5"] { --in: 5; } [data-in="6"] { --in: 6; } [data-in="7"] { --in: 8; }
.motion.loaded .topbar-in, .motion.loaded .header .nav { opacity: 1; transform: none; }
.motion.loaded [data-in], .motion.loaded .h1 .line > [data-in] { opacity: 1; transform: none; filter: none; }

/* map entrance */
.motion .map .valley, .motion .map .river { opacity: 0; transition: opacity 1.4s ease .2s; }
.motion .map .pin { opacity: 0; scale: .7; transition: opacity .6s ease, scale .7s var(--ease-out); }
.motion .map-card.is-in .valley, .motion .map-card.is-in .river { opacity: 1; }
.motion .map-card.is-in .pin { opacity: 1; scale: 1; }
.motion .map-card.is-in .pin:nth-of-type(1) { transition-delay: .5s; }
.motion .map-card.is-in .pin:nth-of-type(2) { transition-delay: .62s; }
.motion .map-card.is-in .pin:nth-of-type(3) { transition-delay: .74s; }
.motion .map-card.is-in .pin:nth-of-type(4) { transition-delay: .86s; }
.motion .map-card.is-in .pin:nth-of-type(5) { transition-delay: .98s; }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after {
    animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}

/* =====================================================================
   BREAKPOINTS
   ===================================================================== */
@media (min-width: 560px) {
  .f-row { grid-template-columns: 1fr 1fr; }
  .checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-img { grid-column: 1 / -1; }
}

@media (min-width: 720px) {
  .wrap { width: min(1200px, 100% - 48px); }
  .panel, .hero, .contact { margin-inline: 12px; padding-inline: 0; }
  .hero { padding: 0; }
  .hero-frame { border-radius: var(--r-lg); }
  .topbar-in { gap: 20px; }
  .tb-live { display: inline-flex; }
  .tb-demo { margin-inline: auto; }
  .sec-head.split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 32px; }
  .sec-head.split .lead { justify-self: end; }
  .sec-side { justify-items: end; }
  .sec-side .lead { text-align: right; }
  .lst { grid-template-columns: 1.15fr 1fr; padding: 12px; min-height: 420px; }
  .lst-img { aspect-ratio: auto; min-height: 100%; }
  .lst-info { padding: 22px 22px 14px 14px; }
  .actions { grid-template-columns: repeat(3, 1fr); }
  .action { grid-template-columns: 1fr 24px; grid-template-rows: auto auto auto; row-gap: 6px; padding: 24px; }
  .action .p-ic { grid-row: 1; grid-column: 1; margin-bottom: 18px; }
  .action-t, .action-p { grid-column: 1 / -1; }
  .action-go { grid-column: 2; grid-row: 1; }
  .pin-lbl { font-size: .78rem; padding: 6px 11px; }
  .ft-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .ft-brand { grid-column: auto; }
  .ft-bottom { grid-template-columns: 1fr auto; align-items: end; }
  .ft-sign { justify-items: end; text-align: right; max-width: 42ch; }
}

@media (max-width: 559px) {
  .process-steps { padding-left: 16px; }
  .pstep { grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 14px; }
  .p-ic { width: 40px; height: 40px; }
}

@media (min-width: 900px) {
  .wa-float { display: none; }
  .footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .hero-content { padding-bottom: 28px; }
  .hero-badge { display: inline-flex; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 10, 9, .6) 0%, rgba(8, 10, 9, 0) 22%),
      linear-gradient(0deg, rgba(8, 10, 9, .9) 0%, rgba(8, 10, 9, .45) 30%, rgba(8, 10, 9, 0) 58%),
      linear-gradient(90deg, rgba(8, 10, 9, .6) 0%, rgba(8, 10, 9, 0) 62%);
  }
  .process { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .process-media { display: block; position: sticky; top: calc(var(--nav-h) + 32px); }
  .process-steps ol { gap: clamp(16px, 9vh, 88px); padding-block: 4vh; }
  .pstep { opacity: .42; }
  .pstep.is-on { opacity: 1; }
  .bento { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(2, minmax(250px, auto)); }
  .tile-img { grid-column: auto; grid-row: span 2; }
  .map-card { grid-template-columns: 1.55fr 1fr; align-items: center; gap: 16px; }
  .map-side { padding: 24px 28px; }
  .faq-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--nav-h) + 32px); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .contact-frame::before { background: linear-gradient(90deg, rgba(8, 10, 9, .92) 0%, rgba(8, 10, 9, .72) 55%, rgba(8, 10, 9, .6) 100%); }
  .svc-track { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
  .svc { height: 420px; }
  .svc-nav { display: none; }
  /* stacking listing cards */
  .lst { position: sticky; top: calc(var(--nav-h) + 24px + var(--i) * 20px); }
}

@media (min-width: 1100px) {
  .nav-main { display: block; }
  .menu-btn, .menu-movil { display: none !important; }
  .hero-card { display: grid; }
}
