/* =========================================================================
   BARRIO MACARIO · estilos
   Paleta institucional: verde petróleo #04262a · verde #044427 · dorado #E7B766
   Tipografía: Archivo (eje de ancho: expandida en títulos, como Widescreen)
               + Cormorant Garamond itálica para acentos.
   ========================================================================= */

:root {
  --petrol: #04262a;
  --petrol-2: #062e33;
  --green: #044427;
  --gold: #E7B766;
  --gold-2: #f2cf8e;
  --gold-ink: #8b5e14;
  --cream: #F8F1DF;
  --paper: #F6F2EA;
  --paper-2: #EEE8DA;
  --ink: #0c2a2d;
  --ink-2: #39514f;
  --muted: #5e716d;
  --line: rgba(12, 42, 45, .13);
  --line-light: rgba(248, 241, 223, .15);
  --wa: #25D366;

  /* plano */
  --p-bg: #ECE5D4;
  --p-street: #F8F4EC;
  --p-city: #E2DAC6;
  --p-line: #0f2f32;
  --p-disp: #74C27A;
  --p-disp-ink: #0b3a1b;
  --p-res: #E7B766;
  --p-res-ink: #4a3505;
  --p-vend: #CDD4D0;
  --p-vend-2: #B6C0BB;
  --p-obra: #F2EAD5;
  --p-obra-2: #DDCFA6;
  --p-obra-ink: #85754a;
  --p-ev: #CDE2C1;
  --p-ev-ink: #2c5737;

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4.2vw, 40px);
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, .7, .18, 1);
  --hdr-h: 64px;
  --shadow-1: 0 1px 2px rgba(4, 38, 42, .06), 0 12px 30px -14px rgba(4, 38, 42, .28);
  --shadow-2: 0 2px 6px rgba(4, 38, 42, .08), 0 30px 60px -22px rgba(4, 38, 42, .45);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; scrollbar-gutter: stable; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--f-sans);
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--petrol); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic, .pilar__ic, .tile__ic, .step__ic {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.ic { width: 1.15em; height: 1.15em; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: var(--petrol); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sec:not(.sec--dark):not(.sec--green) :focus-visible, .pilares :focus-visible { outline-color: var(--petrol); }

/* ---------- tipografía ---------- */
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; }
.h2 {
  margin: 14px 0 0;
  font: 700 clamp(29px, 5.1vw, 58px)/1.02 var(--f-sans);
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -.014em;
  text-wrap: balance;
}
.h2 em, .hero__title em {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -.01em;
  font-size: 1.2em;
  line-height: .98;
  color: var(--gold-ink);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 600 12.5px/1.2 var(--f-sans); font-stretch: 118%;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow .ic { width: 16px; height: 16px; }
.lead { margin: 18px 0 0; max-width: 60ch; font-size: clamp(17px, 1.55vw, 19px); line-height: 1.62; color: var(--ink-2); }
.small { font-size: 13.5px; color: var(--muted); }
code { font: 500 .92em ui-monospace, Menlo, Consolas, monospace; }

/* ---------- botones ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--f-sans); font-stretch: 108%; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn .ic { width: 20px; height: 20px; }
.btn--lg { --bh: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { --bh: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--petrol); box-shadow: 0 10px 26px -12px rgba(231, 183, 102, .7); }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(231, 183, 102, .85); }
.btn--ghost { color: var(--cream); border-color: rgba(248, 241, 223, .42); background: rgba(248, 241, 223, .05); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(248, 241, 223, .12); }
.btn--ghost .ic { transition: transform .3s var(--ease); }
.btn--ghost:hover .ic { transform: translateX(3px); }
.btn--dark { background: var(--petrol); color: var(--cream); }
.btn--dark:hover { background: var(--green); transform: translateY(-2px); }
.btn--line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--line:hover { border-color: var(--ink-2); }

/* indicador "en vivo" */
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #6fe08a; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s var(--ease) infinite; }
.live-dot--dark { background: #2f9e4f; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }

/* ---------- encabezado ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h);
  color: var(--cream);
  transition: background-color .35s, box-shadow .35s, transform .45s var(--ease);
}
.hdr::before {
  content: ""; position: absolute; inset: 0 0 -36px; pointer-events: none;
  background: linear-gradient(rgba(4, 38, 42, .6), rgba(4, 38, 42, 0));
  transition: opacity .35s;
}
.hdr.is-solid, .hdr.hdr--page { background: rgba(4, 38, 42, .96); background: color-mix(in srgb, var(--petrol) 96%, transparent); box-shadow: 0 1px 0 var(--line-light), 0 12px 30px -18px rgba(0, 0, 0, .5); }
.hdr.is-solid::before, .hdr.is-open::before, .hdr.hdr--page::before { opacity: 0; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { position: relative; height: 100%; width: min(100% - 2 * var(--gut), 1400px); margin-inline: auto; display: flex; align-items: center; gap: 16px; }
.hdr__logo { display: block; flex: none; }
.hdr__cta { margin-left: auto; }
.hdr__burger {
  width: 44px; height: 44px; margin-right: -8px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 5px;
}
.hdr__burger span { display: block; width: 22px; height: 1.7px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.hdr__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.7px) rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.7px) rotate(-45deg); }

@media (max-width: 1099px) {
  .hdr__nav {
    position: fixed; left: 0; right: 0; top: var(--hdr-h);
    height: calc(100vh - var(--hdr-h)); height: calc(100dvh - var(--hdr-h));
    display: flex; flex-direction: column; padding: 8px var(--gut) 32px; overflow-y: auto;
    background: var(--petrol);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s;
  }
  .hdr.is-open { background: var(--petrol); }
  .hdr.is-open .hdr__nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .35s var(--ease); }
  .hdr__nav a:not(.btn) {
    padding: 17px 0; border-bottom: 1px solid var(--line-light); text-decoration: none;
    font: 600 21px/1 var(--f-sans); font-stretch: 122%; text-transform: uppercase; letter-spacing: .01em;
  }
  .hdr__navcta { margin-top: 28px; min-height: 56px; }
}
@media (max-width: 420px) { .hdr__cta span { display: none; } .hdr__cta { padding: 0 12px; } }
@media (min-width: 1100px) {
  .hdr { --hdr-h: 78px; }
  .hdr__nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .hdr__nav a:not(.btn) {
    position: relative; padding: 10px 11px; text-decoration: none; opacity: .86;
    font: 500 14px/1 var(--f-sans); font-stretch: 108%; transition: opacity .2s;
  }
  .hdr__nav a:not(.btn)::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 1.5px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
  }
  .hdr__nav a:not(.btn):hover, .hdr__nav a.is-active { opacity: 1; }
  .hdr__nav a:not(.btn):hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); }
  .hdr__navcta, .hdr__burger { display: none !important; }
  .hdr__cta { margin-left: 14px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--hdr-h) + 40px) var(--gut) 30px;
  background: var(--petrol); color: var(--cream);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; animation: heroZoom 2s var(--ease) both; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 38, 42, .35) 0%, rgba(4, 38, 42, 0) 24%, rgba(4, 38, 42, .5) 50%, rgba(4, 38, 42, .94) 78%, var(--petrol) 100%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: none; } }
.hero__ghost { display: none; }
.hero__content { position: relative; max-width: 640px; }
.hero__title {
  margin: 14px 0 0; color: var(--cream);
  font: 700 clamp(42px, 10.6vw, 78px)/.9 var(--f-sans); font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -.025em;
}
.hero__title span { display: block; }
.hero__title em { color: var(--gold); font-size: 1.16em; margin-top: .02em; }
.hero__lead { margin: 18px 0 0; max-width: 34ch; font-size: clamp(17px, 2.1vw, 21px); line-height: 1.5; color: rgba(248, 241, 223, .86); }
.hero__lead strong { color: var(--cream); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 500; color: rgba(248, 241, 223, .9); }
.hero__chips li { display: inline-flex; align-items: center; gap: 7px; }
.hero__chips .ic { width: 16px; height: 16px; stroke-width: 2.3; color: var(--gold); }
.hero__in { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 200ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.eyebrow--light { color: rgba(248, 241, 223, .85); }
.eyebrow--light::before { display: none; }
.eyebrow--light .ic { color: var(--gold); }
@media (max-width: 519px) { .hero__ctas .btn { flex: 1 1 100%; --bh: 52px; } }
@media (max-width: 999px) {
  .hero { justify-content: flex-start; padding-top: max(calc(var(--hdr-h) + 40px), 36svh); }
  .hero__media { bottom: auto; height: 58vh; height: 58svh; }
  .hero__media img { object-position: 50% 82%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(4, 38, 42, .55) 0%, rgba(4, 38, 42, 0) 20%, rgba(4, 38, 42, 0) 42%, rgba(4, 38, 42, .72) 68%, var(--petrol) 100%);
  }
  .hero__title, .hero__lead, .hero .eyebrow { text-shadow: 0 2px 22px rgba(4, 38, 42, .7); }
}
@media (min-width: 640px) and (max-width: 999px) {
  .hero { padding-top: max(calc(var(--hdr-h) + 40px), 40svh); }
  .hero__media { height: 64svh; }
}
@media (max-width: 639px) {
  .hero__chips { display: none; }
  .hero__lead { margin-top: 14px; }
  .hero__ctas { margin-top: 22px; gap: 10px; }
  .live { margin-top: 20px; padding: 14px 16px; }
  .live__main b { font-size: 40px; }
}

/* tarjeta de disponibilidad en vivo */
.live {
  position: relative; display: grid; gap: 10px; max-width: 420px; margin-top: 26px; padding: 16px 18px;
  border-radius: var(--r); border: 1px solid rgba(231, 183, 102, .3);
  background: rgba(4, 38, 42, .78); color: var(--cream); text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s;
}
.live:hover { transform: translateY(-3px); border-color: rgba(231, 183, 102, .6); }
.live__top { display: flex; align-items: center; gap: 10px; font: 600 11.5px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(248, 241, 223, .72); }
.live__main { display: flex; align-items: center; gap: 14px; }
.live__main b { font: 700 46px/1 var(--f-sans); font-stretch: 125%; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.live__main span { font-size: 14px; line-height: 1.3; color: rgba(248, 241, 223, .9); }
.live__bar, .avail__bar { display: flex; gap: 2px; height: 6px; border-radius: 4px; overflow: hidden; background: rgba(248, 241, 223, .12); }
.live__bar i, .avail__bar i { display: block; height: 100%; flex: 0 1 0; transition: flex-grow 1.4s var(--ease); }
.live__bar .vend { background: rgba(248, 241, 223, .42); }
.live__bar .res, .avail__bar .res { background: var(--gold); }
.live__bar .disp, .avail__bar .disp { background: var(--p-disp); }
.live__bar .obra { background: repeating-linear-gradient(-45deg, rgba(248, 241, 223, .2) 0 3px, rgba(248, 241, 223, .08) 3px 6px); }
.live__foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: rgba(248, 241, 223, .78); }
.live__go { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; }
.live__go .ic { transition: transform .3s var(--ease); }
.live:hover .live__go .ic { transform: translateX(3px); }
.hero__scroll { display: none; }

@media (min-width: 1000px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 46vw;
    min-height: max(700px, 100vh); padding: 0;
  }
  .hero__media { position: relative; inset: auto; grid-column: 2; grid-row: 1; z-index: 0; border-bottom-left-radius: 260px; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(4, 38, 42, .5), rgba(4, 38, 42, 0) 22%),
                linear-gradient(90deg, rgba(4, 38, 42, .28), rgba(4, 38, 42, 0) 35%);
  }
  .hero__content {
    grid-column: 1; grid-row: 1; align-self: center; max-width: none;
    padding: calc(var(--hdr-h) + 40px) 56px 150px max(var(--gut), calc((100vw - var(--wrap)) / 2));
  }
  .hero__title { font-size: clamp(58px, 5.7vw, 100px); }
  .hero__lead { font-size: 21px; }
  .hero__ghost {
    display: block; position: absolute; z-index: -1; left: 0; bottom: 0; width: 56vw; height: auto;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 85%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 85%);
  }
  .hero__ghost path {
    fill: none; stroke: var(--gold); stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: .3;
    stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.8s var(--ease) forwards;
  }
  .hero__ghost path:nth-child(2n) { animation-delay: .25s; }
  .hero__ghost path:nth-child(3n) { animation-delay: .5s; }
  .live { position: absolute; z-index: 2; right: calc(46vw - 130px); bottom: 56px; width: 330px; margin: 0; background: rgba(4, 38, 42, .82); }
  .hero__scroll {
    display: block; position: absolute; left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); bottom: 36px;
    width: 1px; height: 54px; background: rgba(248, 241, 223, .22); overflow: hidden;
  }
  .hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: var(--gold); animation: scrollcue 2.2s var(--ease) infinite; }
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 1000px) and (hover: hover) {
    .live { background: rgba(4, 38, 42, .55); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes scrollcue { 0% { transform: translateY(-20px); } 100% { transform: translateY(60px); } }

/* ---------- pilares ---------- */
.pilares { background: #FBF8F2; border-bottom: 1px solid var(--line); }
.pilares__grid { display: grid; grid-template-columns: 1fr; }
.pilar { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.pilar:first-child { border-top: 0; }
.pilar__ic { grid-row: 1 / span 2; width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--petrol); color: var(--gold); stroke-width: 1.6; }
.pilar h2 { padding-right: 30px; font: 700 16.5px/1.2 var(--f-sans); font-stretch: 120%; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); align-self: center; }
.pilar p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.pilar__n { position: absolute; right: 0; top: 30px; font: 600 12px/1 var(--f-sans); letter-spacing: .12em; color: var(--gold-ink); }
@media (min-width: 640px) {
  .pilares__grid { grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .pilar:nth-child(2) { border-top: 0; }
}
@media (min-width: 1000px) {
  .pilares__grid { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .pilar { display: block; padding: 46px 28px 50px; border-top: 0; border-left: 1px solid var(--line); }
  .pilar:first-child { border-left: 0; padding-left: 0; }
  .pilar__ic { margin-bottom: 22px; width: 52px; height: 52px; padding: 13px; }
  .pilar h2 { padding: 0; }
  .pilar p { margin-top: 10px; }
  .pilar__n { right: 28px; top: 50px; }
}

/* ---------- secciones ---------- */
.sec { position: relative; padding-block: clamp(76px, 10vw, 136px); }
.sec--dark { background: var(--petrol); color: rgba(248, 241, 223, .8); }
.sec--green { background: var(--green); color: rgba(248, 241, 223, .8); }
.sec--paper { background: var(--paper-2); }
.sec--cream { background: #F1EADB; }
.sec--dark .h2, .sec--green .h2 { color: var(--cream); }
.sec--dark .h2 em, .sec--green .h2 em, .sec--dark .eyebrow, .sec--green .eyebrow { color: var(--gold); }
.sec--dark .lead, .sec--green .lead { color: rgba(248, 241, 223, .78); }
.sec-head { margin-bottom: clamp(34px, 5vw, 60px); }
.sec-head--center { text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
.sec-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.sec-head--split { display: grid; gap: 18px; }
@media (min-width: 1000px) {
  .sec-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; }
  .sec-head--split .lead { margin: 0; }
}

/* revelado al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--rd, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- el barrio ---------- */
.barrio__grid { display: grid; gap: 56px; }
.barrio__quote { margin: 18px 0 0; max-width: 40ch; font: italic 500 clamp(21px, 2.2vw, 25px)/1.35 var(--f-serif); color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 40px 0 0; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px 0 18px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 20px; }
.stat dt { font-size: 13.5px; color: var(--muted); }
.stat dd { margin: 0 0 6px; display: flex; align-items: baseline; gap: 6px; }
.stat b { font: 700 clamp(34px, 4.2vw, 48px)/1 var(--f-sans); font-stretch: 125%; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat small { font-size: 15px; font-weight: 700; color: var(--gold-ink); }
.barrio__media { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: end; }
.ph { margin: 0; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-1); background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--a { aspect-ratio: 4 / 5; border-top-left-radius: 140px; }
.ph--b { aspect-ratio: 3 / 4; margin-bottom: 56px; border-bottom-right-radius: 90px; }
.barrio__badge {
  position: absolute; left: 14px; bottom: 18px; margin: 0; display: grid; gap: 2px;
  padding: 14px 18px; border-radius: 16px; background: var(--petrol); color: var(--cream); box-shadow: var(--shadow-2);
}
.barrio__badge > span { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(248, 241, 223, .7); }
.barrio__badge b { font: 700 26px/1.1 var(--f-sans); font-stretch: 122%; color: var(--gold); }
@media (min-width: 640px) and (max-width: 999px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) { padding: 20px 14px; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}
@media (min-width: 1000px) {
  .barrio__grid { grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
  .barrio__badge { left: -28px; bottom: 36px; padding: 18px 22px; }
  .barrio__badge b { font-size: 30px; }
}

/* ---------- ubicación / mapa ---------- */
.ubic { overflow: hidden; }
.ubic__grid { display: grid; gap: 40px; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: rgba(248, 241, 223, .82); }
.ticks b { color: var(--gold); font-weight: 700; }
.ticks .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; border: 1px solid rgba(231, 183, 102, .35); color: var(--gold); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 1000px) { .ubic__grid { grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: center; } }

.mapa { margin: 0; }
.mapa__stage {
  position: relative; aspect-ratio: 1000 / 781; overflow: hidden; border-radius: var(--r-lg);
  background: #F4EFE5; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(231, 183, 102, .25);
}
@media (max-width: 699px) { .mapa__stage { aspect-ratio: 1 / 1; } }
.mapa__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m-base { transform-box: view-box; transform-origin: 50% 50%; }
.m-major { fill: none; stroke: #A79C84; stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-route { fill: none; stroke: #C38A2B; stroke-width: 3.6px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-route--casing { stroke: #fff; stroke-width: 8px; opacity: .95; }
.m-origin .m-ring { fill: rgba(4, 38, 42, .12); }
.m-origin .m-dot { fill: var(--petrol); stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.m-tick { fill: #fff; stroke: #C38A2B; stroke-width: 2.4px; vector-effect: non-scaling-stroke; }
.m-car__halo { fill: rgba(195, 138, 43, .22); }
.m-car__dot { fill: var(--petrol); stroke: #fff; stroke-width: 2.4px; vector-effect: non-scaling-stroke; }
.m-loteo { fill: #E7B766; stroke: var(--petrol); stroke-width: 1px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-pin__body { fill: var(--petrol); stroke: #fff; stroke-width: 1.6px; vector-effect: non-scaling-stroke; }
.m-pulse { fill: none; stroke: #C38A2B; stroke-width: 1.6px; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.m-aero circle { fill: #fff; stroke: #B9AE96; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.m-aero path { fill: #7E7462; }
.m-north circle { fill: rgba(255, 255, 255, .8); stroke: #CFC5B0; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.m-north path { fill: var(--petrol); }
.m-north text { font: 700 11px var(--f-sans); fill: var(--petrol); }
.m-scale path { fill: none; stroke: #6f6655; stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
.m-scale text { font: 600 13px var(--f-sans); fill: #6f6655; }
.m-lbl {
  font-family: var(--f-sans); font-size: 15px; font-weight: 500; fill: #5d5546;
  paint-order: stroke; stroke: #F4EFE5; stroke-width: 4px; stroke-linejoin: round;
}
.m-lbl--city { font-size: 26px; font-weight: 700; font-stretch: 125%; letter-spacing: .14em; fill: var(--petrol); stroke-width: 6px; }
.m-lbl--cap { font-size: 12px; font-weight: 600; letter-spacing: .4em; fill: #7a705d; }
.m-lbl--town { font-size: 15px; font-weight: 600; fill: #5d5546; }
.m-lbl--minor { font-size: 13px; font-weight: 500; fill: #857b67; }
.m-lbl--road { font-size: 10.5px; font-weight: 700; letter-spacing: .24em; fill: #8b806a; }
.m-lbl--water { font-family: var(--f-serif); font-style: italic; font-size: 17px; font-weight: 600; fill: #5f97a4; }
.m-lbl--mc { font-size: 13px; font-weight: 700; font-stretch: 125%; letter-spacing: .2em; fill: #6b624f; }
.m-lbl--dest { font-family: var(--f-serif); font-style: italic; font-size: 30px; font-weight: 600; fill: var(--petrol); stroke-width: 6px; }
.m-lbl--tag { font-size: 13px; font-weight: 500; fill: #6b624f; }
.m-lbl--tagb { font-size: 15px; font-weight: 700; fill: var(--petrol); }
@media (max-width: 699px) {
  .m-z { transform: scale(1.55); }
  .m-pin .m-z { transform: scale(1.35); }
  .m-lbl { font-size: 23px; stroke-width: 6px; }
  .m-lbl--city { font-size: 36px; stroke-width: 8px; }
  .m-lbl--cap { font-size: 18px; }
  .m-lbl--town { font-size: 24px; }
  .m-lbl--minor, .m-lbl--road { display: none; }
  .m-lbl--water { font-size: 25px; }
  .m-lbl--mc { font-size: 19px; }
  .m-lbl--dest { font-size: 42px; stroke-width: 8px; }
  .m-lbl--tag { font-size: 22px; }
  .m-lbl--tagb { font-size: 25px; }
  .m-scale text { font-size: 19px; }
  .m-north text { font-size: 15px; }
}
/* animación del mapa */
.js .mapa .m-base { opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.js .mapa .m-major { opacity: 0; transition: opacity 1s var(--ease) .25s; }
.js .mapa .m-lbls > * { opacity: 0; transition: opacity .8s var(--ease); transition-delay: calc(.3s + var(--i, 0) * .12s); }
.js .mapa .m-origin, .js .mapa .m-north, .js .mapa .m-scale { opacity: 0; transition: opacity .6s var(--ease) .5s; }
.js .mapa .m-route, .js .mapa .m-car { opacity: 0; }
.js .mapa .m-tag--ix, .js .mapa .m-dest > *, .js .mapa .m-tag--mc { opacity: 0; transition: opacity .7s var(--ease); }
.js .mapa .m-pin .m-pin__in { translate: 0 -26px; transition: translate .7s cubic-bezier(.3, 1.5, .5, 1); }
.js .mapa .m-halo { transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.mapa.is-run .m-base { opacity: 1; transform: none; }
.mapa.is-run .m-major, .mapa.is-run .m-lbls > *, .mapa.is-run .m-origin, .mapa.is-run .m-north, .mapa.is-run .m-scale { opacity: 1; }
.mapa.is-run .m-route, .mapa.is-run .m-car { opacity: 1; }
.mapa.is-ix .m-tag--ix { opacity: 1; }
.mapa.is-done .m-dest > *, .mapa.is-done .m-tag--mc { opacity: 1; }
.mapa.is-done .m-pulse { opacity: 0; animation: mpulse 2.8s ease-out .6s infinite; }
.mapa.is-done .m-pin .m-pin__in { translate: 0 0; }
.mapa.is-done .m-halo { transform: none; }
.mapa.is-done .m-car { opacity: 0; transition: opacity .5s; }
@keyframes mpulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }
.mapa__hud {
  position: absolute; left: 14px; top: 14px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px -14px rgba(4, 38, 42, .35); color: var(--ink);
}
.hud__l { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hud__l .ic { width: 12px; height: 12px; color: #C38A2B; }
.hud__nums { display: flex; align-items: center; gap: 14px; }
.hud__n { display: flex; align-items: baseline; gap: 4px; }
.hud__n b { min-width: 1.3em; font: 700 32px/1 var(--f-sans); font-stretch: 125%; color: var(--petrol); font-variant-numeric: tabular-nums; text-align: right; }
.hud__n small { font-size: 13px; font-weight: 700; color: #C38A2B; }
.hud__sep { width: 1px; height: 26px; background: var(--line); }
.mapa__replay {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; border: 0; background: var(--petrol); color: var(--cream);
  font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(4, 38, 42, .6);
  opacity: 0; pointer-events: none; transition: opacity .4s, background-color .25s;
}
.mapa.is-done .mapa__replay { opacity: 1; pointer-events: auto; }
.mapa__replay:hover { background: var(--green); }
.mapa figcaption { margin-top: 12px; font-size: 12.5px; color: rgba(248, 241, 223, .5); }
@media (max-width: 699px) {
  .mapa__hud { top: auto; bottom: 10px; left: 10px; padding: 10px 13px; }
  .hud__n b { font-size: 26px; }
  .mapa__replay { top: 10px; bottom: auto; left: auto; right: 10px; padding: 8px 12px; }
}

/* ---------- plano de lotes ---------- */
.lotes__head { display: grid; gap: 28px; }
@media (min-width: 1000px) { .lotes__head { grid-template-columns: 1fr 470px; align-items: end; gap: 56px; } }
.avail { padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-1); }
.avail__nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 10px 12px; }
.an { display: grid; gap: 4px; }
.an b { font: 700 32px/1 var(--f-sans); font-stretch: 122%; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.an span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.an span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--c); flex: none; }
.an--disp { --c: var(--p-disp); }
.an--disp b { color: #1d7a3a; }
.an--res { --c: var(--p-res); }
.an--vend { --c: var(--p-vend-2); }
.an--obra { --c: var(--p-obra-2); }
.avail__bar { height: 8px; margin-top: 16px; background: var(--paper-2); }
.avail__bar .vend { background: var(--p-vend-2); }
.avail__bar .obra { background: repeating-linear-gradient(-45deg, var(--p-obra) 0 3px, var(--p-obra-2) 3px 6px); }
.avail__note { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.avail__note b { color: var(--ink); }
.is-zero { display: none !important; }

.planbox { margin-top: clamp(28px, 4vw, 44px); padding: 10px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-1); }
.planbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 6px 8px 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(12, 42, 45, .35); flex: none; }
.sw--disp { background: var(--p-disp); }
.sw--res { background: var(--p-res); }
.sw--vend { background: repeating-linear-gradient(45deg, var(--p-vend) 0 3px, var(--p-vend-2) 3px 5px); }
.sw--obra { background: repeating-linear-gradient(-45deg, var(--p-obra) 0 3px, var(--p-obra-2) 3px 5px); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); transition: background-color .25s, border-color .25s; }
.switch__ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked + .switch__ui { background: #2f9e4f; border-color: #2f9e4f; }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--petrol); outline-offset: 2px; }

.mapwrap { position: relative; height: 440px; overflow: hidden; border-radius: 18px; background: var(--p-bg); outline: none; touch-action: pan-y; }
.mapwrap:focus-visible { box-shadow: inset 0 0 0 2px var(--petrol); }
#plano { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: grab; }
#plano.dragging { cursor: grabbing; }
.tools { position: absolute; z-index: 3; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; }
.tools button {
  width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  box-shadow: 0 6px 14px -8px rgba(4, 38, 42, .35); transition: background-color .2s, transform .2s;
}
.tools button:hover { background: var(--paper); }
.tools button:active { transform: scale(.94); }
.tools .ic { width: 20px; height: 20px; }
@media (min-width: 700px) { .tools { right: auto; left: 12px; } }

.minimap {
  position: absolute; z-index: 3; left: 12px; bottom: 12px; width: 156px; aspect-ratio: 681.62 / 240;
  overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 20px -10px rgba(4, 38, 42, .45); cursor: pointer; touch-action: none;
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.minimap.show { opacity: 1; transform: none; pointer-events: auto; }
.minimap svg { display: block; width: 100%; height: 100%; }
.minimap .mm-lot.disponible { fill: var(--p-disp); }
.minimap .mm-lot.vendido { fill: #c6cecb; }
.minimap .mm-lot.reservado { fill: var(--p-res); }
.minimap .mm-lot.obra { fill: #e7ddc2; }
.minimap .mm-ev { fill: var(--p-ev); }
.minimap .mm-view { fill: rgba(4, 38, 42, .1); stroke: var(--petrol); stroke-width: 1.6px; vector-effect: non-scaling-stroke; }
@media (max-width: 699px) { .minimap { top: 12px; bottom: auto; width: 118px; } }

.coach {
  position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(4, 38, 42, .93); color: var(--cream); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  pointer-events: none; box-shadow: 0 12px 30px -12px rgba(4, 38, 42, .7); transition: opacity .5s, transform .5s var(--ease);
}
.coach.gone { opacity: 0; transform: translate(-50%, 10px); }
.coach__hand { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--petrol); }
.coach__hand .ic { width: 19px; height: 19px; animation: coachDrag 1.8s ease-in-out infinite; }
@keyframes coachDrag { 0%, 100% { transform: translateX(-3px) rotate(-6deg); } 50% { transform: translateX(4px) rotate(4deg); } }
@media (max-width: 420px) { .coach { font-size: 12px; padding-right: 13px; } }

.hint {
  position: absolute; z-index: 5; left: 50%; top: 12px; margin: 0; padding: 8px 14px; border-radius: 999px;
  background: rgba(4, 38, 42, .92); color: var(--cream); font-size: 13px; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, -8px); transition: opacity .3s, transform .3s var(--ease);
}
.hint.show { opacity: 1; transform: translate(-50%, 0); }
.tip {
  position: absolute; z-index: 5; pointer-events: none; padding: 8px 12px; border-radius: 10px;
  background: var(--petrol); color: var(--cream); font-size: 13px; line-height: 1.4; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 14px)); box-shadow: var(--shadow-1);
}
.tip b { font-weight: 700; font-stretch: 112%; }

/* panel de lote / manzana */
.panel {
  position: absolute; z-index: 6; left: 8px; right: 8px; bottom: 8px; max-height: 64%; overflow: auto; overscroll-behavior: contain;
  padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-2);
  animation: cardIn .35s var(--ease);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 700px) { .panel { left: auto; right: 12px; top: 12px; bottom: auto; width: 336px; max-height: calc(100% - 24px); padding: 20px; } }
.panel__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; }
.panel__x .ic { width: 18px; height: 18px; }
.panel__back { display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 4px -8px; padding: 5px 9px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.panel__back:hover { background: var(--paper); color: var(--ink); }
.panel__back .ic { width: 15px; height: 15px; }
.panel__k { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.panel__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; padding-right: 40px; }
.panel h3 { font: 700 26px/1 var(--f-sans); font-stretch: 122%; text-transform: uppercase; color: var(--ink); }
.pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font: 700 11px/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; }
.pill--disponible { background: #dcf1dd; color: #1b6b33; }
.pill--reservado { background: #fbeccd; color: #7a5410; }
.pill--vendido { background: #e5e9e7; color: #4b5d5a; }
.pill--obra { background: #f3ecd9; color: #77653a; }
.panel dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; }
.panel dl div { padding: 9px 12px; border-radius: 12px; background: var(--paper); }
.panel dt { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.panel dd { margin: 3px 0 0; font: 700 15.5px/1.2 var(--f-sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.panel .btn { width: 100%; margin-top: 12px; }
.panel__msg { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.panel__sub { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.panel__sub b { color: #1d7a3a; }
.panel__bar { display: flex; gap: 2px; height: 6px; margin: 12px 0 2px; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.panel__bar i { display: block; height: 100%; }
.panel__bar .disp { background: var(--p-disp); }
.panel__bar .res { background: var(--p-res); }
.panel__bar .vend { background: var(--p-vend-2); }
.panel__bar .obra { background: var(--p-obra-2); }
.panel__lbl { margin: 14px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; cursor: pointer;
  border-radius: 12px; border: 1px solid #cfe7d0; background: #eef8ee; color: #14532d; font: 700 14px/1.1 var(--f-sans);
  transition: background-color .2s, border-color .2s, transform .2s;
}
.chip small { font-size: 11.5px; font-weight: 500; color: #3f7a52; }
.chip:hover { background: #dff2df; border-color: #9fd3a3; transform: translateY(-1px); }
.panel__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (max-width: 699px) {
  .panel h3 { font-size: 23px; }
  .panel dd { font-size: 15px; }
}

/* navegador de manzanas */
.mznav { padding: 16px 4px 4px; }
.mznav__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 4px 12px; font-size: 13.5px; color: var(--muted); }
.mznav__t b { font-size: 14.5px; font-weight: 700; font-stretch: 112%; color: var(--ink); }
.mznav__list { display: grid; grid-auto-flow: column; grid-auto-columns: 124px; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 8px; }
.mznav__list::-webkit-scrollbar { display: none; }
.mzc {
  display: grid; gap: 6px; padding: 12px 12px 11px; scroll-snap-align: start; cursor: pointer; text-align: left; color: var(--ink);
  border-radius: 14px; border: 1px solid var(--line); background: var(--paper);
  transition: border-color .2s, background-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.mzc:hover { border-color: var(--ink-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.mzc.active { background: var(--petrol); border-color: var(--petrol); color: var(--cream); }
.mzc__n { font: 600 11px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mzc__num { font: 700 24px/1 var(--f-sans); font-stretch: 122%; }
.mzc__bar { display: flex; gap: 1px; height: 4px; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.mzc__bar i { display: block; height: 100%; }
.mzc__bar .disp { background: var(--p-disp); }
.mzc__bar .res { background: var(--p-res); }
.mzc__bar .vend { background: var(--p-vend-2); }
.mzc__bar .obra { background: var(--p-obra-2); }
.mzc__s { font-size: 12.5px; font-weight: 600; color: #1d7a3a; }
.mzc__s.is-none { font-weight: 500; color: var(--muted); }
.mzc.active .mzc__n { color: rgba(248, 241, 223, .65); }
.mzc.active .mzc__num { color: var(--gold); }
.mzc.active .mzc__s { color: #9be3a9; }
.mzc.active .mzc__s.is-none { color: rgba(248, 241, 223, .6); }
@media (min-width: 1000px) { .mznav__list { grid-auto-flow: row; grid-template-columns: repeat(9, minmax(0, 1fr)); overflow: visible; } }

.editing-flag { display: none; }
body.editing .editing-flag { display: block; position: absolute; z-index: 4; bottom: 12px; left: 50%; transform: translateX(-50%); margin: 0; padding: 7px 12px; border-radius: 8px; background: var(--petrol); color: var(--gold); font-size: 13px; font-weight: 600; }

/* plano: estilos del SVG */
#plano text { font-family: var(--f-sans); font-stretch: 75%; }
#plano .city { fill: var(--p-city); stroke: #d4cab3; stroke-width: 1px; vector-effect: non-scaling-stroke; }
#plano .street { fill: var(--p-street); }
#plano .street.faded { opacity: .6; }
#plano .alamb { fill: none; stroke: #8d9a95; stroke-width: 1.3px; vector-effect: non-scaling-stroke; }
#plano .corte { fill: none; stroke: #8d9a95; stroke-width: 1.2px; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
#plano .rail, #plano .ties { fill: none; stroke: #7d8a86; stroke-width: 1.4px; vector-effect: non-scaling-stroke; }
#plano .ties { stroke-width: 1px; }
#plano .ev { fill: var(--p-ev); stroke: var(--p-line); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
#plano .lote { fill: var(--p-disp); stroke: var(--p-line); stroke-width: .7px; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .5s ease, opacity .35s; }
#plano .lote.vendido { fill: url(#hatch); }
#plano .lote.reservado { fill: var(--p-res); }
#plano .lote.obra { fill: url(#hatch-obra); }
#plano .lote:hover { stroke-width: 2.2px; }
#plano .h-bg { fill: var(--p-vend); }
#plano .h-ln { fill: var(--p-vend-2); }
#plano .o-bg { fill: var(--p-obra); }
#plano .o-ln { fill: var(--p-obra-2); }
#plano .mzline path { fill: none; stroke: var(--p-line); stroke-width: 1.7px; vector-effect: non-scaling-stroke; pointer-events: none; }
#plano .labels { pointer-events: none; }
#plano .ln { font-size: 4.1px; font-weight: 700; text-anchor: middle; dominant-baseline: central; fill: var(--p-disp-ink); transition: opacity .4s; }
#plano .ln.vendido { fill: #6b7a76; font-weight: 600; }
#plano .ln.reservado { fill: var(--p-res-ink); }
#plano .ln.obra { fill: var(--p-obra-ink); font-weight: 600; }
#plano .mzb circle { fill: var(--petrol); stroke: #fff; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
#plano .mzt { font-size: 3.2px; font-weight: 700; fill: var(--gold); text-anchor: middle; dominant-baseline: central; }
#plano .st { font-size: 3.3px; font-weight: 600; letter-spacing: .14em; fill: #6c7c77; text-anchor: middle; dominant-baseline: central; }
#plano .tiny { font-size: 2.4px; font-weight: 600; letter-spacing: .14em; fill: #7d8a86; text-anchor: middle; }
#plano .evt { font-size: 3.7px; font-weight: 700; letter-spacing: .12em; fill: var(--p-ev-ink); text-anchor: middle; dominant-baseline: central; }
#plano .evs { font-size: 3px; font-weight: 500; letter-spacing: 0; fill: var(--p-ev-ink); }
#plano .north path { fill: var(--petrol); }
#plano .nt { font-size: 4px; font-weight: 700; fill: var(--petrol); text-anchor: middle; dominant-baseline: central; }
#plano #selring { fill: rgba(231, 183, 102, .28); stroke: var(--petrol); stroke-width: 3.5px; vector-effect: non-scaling-stroke; pointer-events: none; }
#plano #selpulse { fill: none; stroke: #C38A2B; stroke-width: 3px; vector-effect: non-scaling-stroke; pointer-events: none; opacity: 0; }
#plano #selpulse.go { animation: selpulse 1.3s ease-out 2; }
@keyframes selpulse { 0% { stroke-width: 3px; opacity: .95; } 100% { stroke-width: 22px; opacity: 0; } }
#plano .mz-hl { fill: rgba(231, 183, 102, .1); stroke: #C38A2B; stroke-width: 3px; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; opacity: 0; transition: opacity .35s; }
#plano .mz-hl--glow { fill: none; stroke: rgba(231, 183, 102, .45); stroke-width: 12px; }
#plano .mz-hl.on { opacity: 1; }
#plano .dim { opacity: .28; }
#plano.only-disp .lote:not(.disponible):not(.reservado) { opacity: .25; }
#plano.only-disp .ln:not(.disponible):not(.reservado) { opacity: .15; }
#plano .lote.is-hover { stroke-width: 2.4px; }
#plano.pre .lote { fill: #E4DDCB; transition: none; }
#plano.pre .ln { opacity: 0; }

.lotlist { margin-top: 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.lotlist summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--ink);
}
.lotlist summary::-webkit-details-marker { display: none; }
.lotlist summary > span { display: inline-flex; align-items: center; gap: 10px; }
.lotlist summary .ic { width: 20px; height: 20px; color: var(--gold-ink); }
.lotlist__chev { transition: transform .3s var(--ease); }
.lotlist[open] .lotlist__chev { transform: rotate(180deg); }
.lotlist__help { margin: -4px 20px 14px; font-size: 13.5px; color: var(--muted); }
.lotlist__body { padding: 0 20px 20px; display: grid; gap: 22px; }
.lotlist h4 { margin: 0 0 8px; font: 700 13px/1 var(--f-sans); font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.lotlist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 760px) { .lotlist ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .lotlist ul { grid-template-columns: repeat(3, 1fr); } }
.lotrow { display: flex; align-items: stretch; gap: 6px; }
.lotrow__main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; text-align: left;
  border-radius: 12px; border: 1px solid transparent; background: var(--paper); color: inherit; font: inherit;
  transition: background-color .2s, border-color .2s;
}
.lotrow__main:hover { background: #eef8ee; border-color: #bfe2c2; }
.lotrow__main.is-sel { background: var(--petrol); border-color: var(--petrol); }
.lotrow__main.is-sel b, .lotrow__main.is-sel span, .lotrow__main.is-sel .lotrow__go { color: var(--cream); }
.lotrow__dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--p-disp); }
.lotrow__info { min-width: 0; font-size: 14px; line-height: 1.3; }
.lotrow__info b { display: block; font-size: 14.5px; font-stretch: 110%; color: var(--ink); }
.lotrow__info span { font-size: 13px; color: var(--muted); }
.lotrow__go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lotrow__go .ic { width: 16px; height: 16px; }
.lotrow__wa { flex: none; width: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--gold); color: var(--petrol); transition: background-color .2s; }
.lotrow__wa:hover { background: var(--gold-2); }
.lotrow__wa .ic { width: 20px; height: 20px; }
@media (max-width: 420px) { .lotrow__go span { display: none; } }
.note { margin: 18px 0 0; max-width: 80ch; font-size: 13px; color: var(--muted); }
.editbox { margin-top: 24px; padding: 20px; display: grid; gap: 10px; border-radius: var(--r); border: 2px dashed var(--gold-ink); background: #fff; }
.editbox h3 { font-size: 18px; }
.editbox .small { margin: 0; }
.editbar { display: flex; flex-wrap: wrap; gap: 8px; }
.editbox textarea { width: 100%; min-height: 140px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 12px/1.45 ui-monospace, Menlo, Consolas, monospace; }

/* ---------- servicios ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 12px; }
.tile { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); background: var(--petrol); color: var(--cream); }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 38, 42, 0) 30%, rgba(4, 38, 42, .88) 100%); }
.tile:hover img { transform: scale(1.045); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; }
.tile__ic { width: 40px; height: 40px; margin-bottom: 12px; padding: 9px; border-radius: 50%; background: var(--gold); color: var(--petrol); stroke-width: 1.8; }
.tile h3 { font: 700 15px/1.15 var(--f-sans); font-stretch: 118%; text-transform: uppercase; letter-spacing: .01em; color: var(--cream); }
.tile p { margin: 8px 0 0; max-width: 42ch; font-size: 14.5px; line-height: 1.45; color: rgba(248, 241, 223, .86); }
.tile--xl { grid-column: span 2; min-height: 360px; }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; min-height: 230px; }
.tile--gold { grid-column: span 2; background: var(--gold); color: var(--petrol); }
.tile--gold::after { display: none; }
.tile--gold .tile__body { position: relative; padding: 24px; }
.tile--gold h3 { font-size: 21px; color: var(--petrol); }
.tile--gold p { color: rgba(4, 38, 42, .82); font-size: 15.5px; }
.tile--gold .tile__ic { background: var(--petrol); color: var(--gold); }
.tile__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding-bottom: 3px; border-bottom: 1.5px solid currentColor; font-weight: 700; text-decoration: none; }
.tile__link .ic { transition: transform .3s var(--ease); }
.tile__link:hover .ic { transform: translateX(4px); }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 16px; }
  .tile, .tile--xl, .tile--wide { min-height: 0; }
  .tile--xl { grid-row: span 2; }
  .tile__body { padding: 24px; }
  .tile h3 { font-size: 16px; }
  .tile--xl h3 { font-size: 26px; }
  .tile--xl p { font-size: 16.5px; }
  .tile--xl .tile__ic { width: 48px; height: 48px; padding: 11px; }
  .tile--gold { display: flex; align-items: center; }
}

/* ---------- avances de obra ---------- */
.av__intro .lead { margin: 0; }
.inline-link { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.av__updated { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink-2); }
.av__updated b { color: var(--ink); }

/* línea de tiempo mes a mes */
.avt { position: relative; margin: -14px -16px 16px; padding: 22px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.avt::-webkit-scrollbar { display: none; }
.avt__nodes { position: relative; display: flex; gap: clamp(36px, 7vw, 96px); width: max-content; min-width: 100%; }
.avt__rail { position: absolute; top: 11px; height: 2px; background: repeating-linear-gradient(90deg, rgba(12, 42, 45, .28) 0 6px, transparent 6px 11px); }
.avt__fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--gold-ink); transition: width .6s var(--ease); }
.avt__node {
  position: relative; display: grid; justify-items: start; gap: 3px; padding: 0; border: 0; background: none;
  font: inherit; color: var(--ink-2); text-align: left; cursor: pointer;
}
.avt__dot {
  position: relative; z-index: 1; width: 24px; height: 24px; margin-bottom: 10px; border-radius: 50%;
  border: 2px solid var(--ink-2); background: #F1EADB; transition: background-color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.avt__dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ink-2); transform: scale(.4); opacity: .5; transition: transform .3s var(--ease), opacity .3s, background-color .3s; }
.avt__m { font: 700 clamp(17px, 1.9vw, 22px)/1 var(--f-sans); font-stretch: 122%; text-transform: uppercase; letter-spacing: .01em; color: inherit; transition: color .3s; }
.avt__y { font-size: 13px; color: var(--muted); }
.avt__badge { margin-top: 6px; padding: 4px 9px; border-radius: 999px; background: var(--petrol); color: var(--gold); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.avt__node:hover .avt__dot { transform: scale(1.12); }
.avt__node.is-active { color: var(--ink); }
.avt__node.is-active .avt__dot { border-color: var(--gold-ink); background: var(--gold); box-shadow: 0 0 0 6px rgba(231, 183, 102, .28); }
.avt__node.is-active .avt__dot::after { background: var(--petrol); transform: scale(1); opacity: 1; }
.avt__node.is-last .avt__dot::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold-ink); animation: avtPing 2.4s var(--ease) infinite; }
@keyframes avtPing { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
.avt__node--next { color: var(--muted); }
.avt__node--next .avt__dot { border-style: dashed; background: transparent; }
.avt__node--next .avt__dot::after { opacity: 0; }

/* tira deslizable: portada de cada mes + fotos */
.av__strip { position: relative; }
.av__track {
  position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; cursor: grab; outline: none; border-radius: var(--r);
}
.av__track::-webkit-scrollbar { display: none; }
.av__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; -webkit-user-select: none; }
.av__track.is-drag .av__item img { transform: none; }
.av__track:focus-visible { box-shadow: 0 0 0 2px var(--petrol); }
.avm, .avn { flex: 0 0 84%; scroll-snap-align: start; display: flex; flex-direction: column; padding: 26px; border-radius: var(--r); }
.avm { position: relative; overflow: hidden; background: var(--petrol); color: rgba(248, 241, 223, .82); transition: box-shadow .4s; }
.avm::before { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(231, 183, 102, .25); box-shadow: 0 0 0 30px rgba(231, 183, 102, .04), 0 0 0 60px rgba(231, 183, 102, .03); pointer-events: none; }
.avm.is-current { box-shadow: inset 0 0 0 2px rgba(231, 183, 102, .55); }
.avm__k { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.avm__k b { color: var(--cream); font-weight: 700; }
.avm__k .ic { width: 16px; height: 16px; }
.avm__t { position: relative; margin-top: 16px; font: 700 clamp(30px, 3.2vw, 40px)/.95 var(--f-sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; color: var(--cream); }
.avm__t span { display: block; margin-top: 4px; font: italic 600 .78em/1 var(--f-serif); font-stretch: 100%; text-transform: none; letter-spacing: 0; color: var(--gold); }
.avm__p { margin: 14px 0 0; font-size: 15px; line-height: 1.55; }
.av__hitos { display: grid; gap: 9px; margin: 16px 0 22px; padding: 0; list-style: none; }
.av__hitos li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--cream); }
.av__hitos .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--gold); stroke-width: 2.2; }
.avm__go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--gold); color: var(--petrol); font: 700 14px/1 var(--f-sans); cursor: pointer; transition: background-color .2s; }
.avm__go:hover { background: var(--gold-2); }
.avm__go .ic { width: 18px; height: 18px; }
.avn { justify-content: center; gap: 0; border: 2px dashed rgba(12, 42, 45, .22); color: var(--ink-2); }
.avn .avm__k { color: var(--gold-ink); }
.avn .avm__t { color: var(--ink); }
.avn .avm__t span { color: var(--gold-ink); }
.avn .btn { align-self: flex-start; margin-top: 20px; }
.av__item { position: relative; flex: 0 0 72%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; cursor: inherit; background: #d8d0bf; }
.av__item img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transition: transform .9s var(--ease); }
.av__item:hover img { transform: scale(1.045); }
.av__item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 14px 13px; text-align: left; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--cream); background: linear-gradient(rgba(4, 38, 42, 0), rgba(4, 38, 42, .88)); }
.av__item .num { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; background: rgba(4, 38, 42, .78); color: var(--cream); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.av__item .num b { padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--petrol); text-transform: uppercase; letter-spacing: .08em; }
.av__foot { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.av__progress { flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.av__progress i { display: block; width: 100%; height: 100%; background: var(--petrol); transform-origin: left; transform: scaleX(.2); transition: transform .15s linear; }
.av__hint { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: opacity .4s; }
.av__hint .ic { width: 18px; height: 18px; color: var(--gold-ink); animation: coachDrag 1.8s ease-in-out infinite; }
.av__hint.gone { opacity: 0; }
@media (min-width: 640px) {
  .avm, .avn { flex-basis: 360px; }
  .av__item { flex-basis: calc((100% - 24px) / 2.4); }
}
@media (min-width: 1000px) {
  .avm, .avn { flex-basis: 380px; padding: 32px; }
  .av__item { flex-basis: calc((100% - 36px) / 3.4); }
}

/* ---------- cómo comprar ---------- */
.steps { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.step__ic { grid-row: span 2; width: 50px; height: 50px; padding: 12px; border-radius: 50%; background: var(--paper-2); color: var(--petrol); }
.step__n { position: absolute; top: 20px; right: 20px; font: 700 12.5px/1 var(--f-sans); letter-spacing: .12em; color: var(--gold-ink); }
.step h3 { margin-top: 4px; font: 700 18px/1.2 var(--f-sans); font-stretch: 120%; text-transform: uppercase; }
.step p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.pasos__cta { display: flex; justify-content: center; margin-top: 36px; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps::before {
    content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 37px; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s;
  }
  .steps.is-in::before { transform: scaleX(1); }
  .step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; border: 0; background: transparent; }
  .step__ic { order: -2; position: relative; z-index: 1; width: 74px; height: 74px; padding: 20px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 0 0 10px var(--paper); }
  .step__n { order: -1; position: static; margin-bottom: 10px; }
}

/* ---------- inversores ---------- */
.inv { overflow: hidden; }
.inv::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(231, 183, 102, .12), rgba(231, 183, 102, 0)); pointer-events: none; }
.inv__grid { position: relative; display: grid; gap: 48px; }
.inv__list { display: grid; gap: 22px; margin: 32px 0 36px; padding: 0; list-style: none; }
.inv__list li { display: flex; gap: 16px; }
.inv__list .ic { width: 48px; height: 48px; padding: 12px; border-radius: 14px; border: 1px solid rgba(231, 183, 102, .28); background: rgba(231, 183, 102, .1); color: var(--gold); }
.inv__list h3 { font: 700 16px/1.2 var(--f-sans); font-stretch: 118%; text-transform: uppercase; color: var(--cream); }
.inv__list p { margin: 5px 0 0; font-size: 15px; color: rgba(248, 241, 223, .74); }
.inv__card { padding: 30px 24px; border-radius: var(--r-lg); border: 1px solid rgba(231, 183, 102, .22); background: rgba(4, 38, 42, .5); text-align: center; }
.ring { position: relative; width: min(230px, 72%); aspect-ratio: 1; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: rgba(248, 241, 223, .1); stroke-width: 12; }
.ring__fg { fill: none; stroke: var(--gold); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2s var(--ease) .2s; }
.ring__c { position: absolute; inset: 0; display: grid; place-content: center; }
.ring__c b { font: 700 54px/1 var(--f-sans); font-stretch: 125%; color: var(--cream); letter-spacing: -.02em; }
.ring__c > span { margin-top: 6px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(248, 241, 223, .7); }
.inv__cap { max-width: 28ch; margin: 22px auto 0; font: italic 500 22px/1.3 var(--f-serif); color: var(--cream); }
.inv__facts { display: grid; grid-template-columns: 1fr 1fr; margin: 26px 0 0; border-top: 1px solid rgba(248, 241, 223, .14); text-align: left; }
.inv__facts div { padding: 14px 0; border-bottom: 1px solid rgba(248, 241, 223, .14); }
.inv__facts div:nth-child(odd) { padding-right: 14px; border-right: 1px solid rgba(248, 241, 223, .14); }
.inv__facts div:nth-child(even) { padding-left: 16px; }
.inv__facts dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(248, 241, 223, .6); }
.inv__facts dd { margin: 5px 0 0; font: 700 17px/1.2 var(--f-sans); font-stretch: 110%; color: var(--cream); }
@media (min-width: 1000px) {
  .inv__grid { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
  .inv__card { padding: 40px 36px; }
}

/* ---------- preguntas ---------- */
.faq__grid { display: grid; gap: 40px; }
.faq__head .btn { margin-top: 28px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 21px 0; cursor: pointer; font: 600 17px/1.35 var(--f-sans); font-stretch: 104%; color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa__ic { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .3s, border-color .3s; }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .35s var(--ease), background-color .3s; }
.qa__ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa summary:hover .qa__ic { border-color: var(--ink-2); }
.qa[open] .qa__ic { background: var(--petrol); border-color: var(--petrol); }
.qa[open] .qa__ic::before, .qa[open] .qa__ic::after { background: var(--gold); }
.qa[open] .qa__ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__a { padding: 0 50px 22px 0; color: var(--ink-2); }
.qa__a p { margin: 0; }
.qa__a a { color: var(--green); font-weight: 600; }
.qa[open] .qa__a { animation: qaIn .45s var(--ease); }
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 1000px) {
  .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .faq__head { position: sticky; top: 120px; }
}

/* ---------- contacto ---------- */
.contacto__grid { display: grid; gap: 40px; }
.contacto__ph { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-lg); border-top-right-radius: 120px; }
.contacto__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.contacto__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 38, 42, 0) 45%, rgba(4, 38, 42, .82)); }
.contacto__ph figcaption {
  position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px;
  font: 700 clamp(21px, 3vw, 30px)/1.02 var(--f-sans); font-stretch: 122%; text-transform: uppercase; color: var(--cream);
}
.contacto__ph figcaption em { display: block; font: italic 500 1.3em/1 var(--f-serif); text-transform: none; color: var(--gold); }
.waform { display: grid; gap: 18px; margin-top: 30px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line-light); background: rgba(248, 241, 223, .04); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(248, 241, 223, .75); }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .7; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(248, 241, 223, .2);
  background: rgba(2, 24, 27, .55); color: var(--cream); font: 400 16px/1.4 var(--f-sans);
  transition: border-color .2s, background-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(248, 241, 223, .4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(2, 24, 27, .8); }
.field input.is-invalid { border-color: #f09a8a; }
.field textarea { min-height: 92px; resize: vertical; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid rgba(248, 241, 223, .14); background: rgba(2, 24, 27, .55); }
.seg label { position: relative; cursor: pointer; text-transform: none; letter-spacing: 0; color: inherit; font-weight: inherit; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 11px 4px; border-radius: 10px; text-align: center; font-size: 14px; font-weight: 600; color: rgba(248, 241, 223, .75); transition: background-color .25s, color .25s; }
.seg input:checked + span { background: var(--gold); color: var(--petrol); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.waform__note { margin: -4px 0 0; text-align: center; font-size: 13px; color: rgba(248, 241, 223, .55); }
.contacto__data { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.contacto__data li { display: flex; align-items: center; gap: 12px; }
.contacto__data .ic { width: 20px; height: 20px; color: var(--gold); }
.contacto__data a { color: var(--cream); font-weight: 600; text-decoration: none; }
.contacto__data a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1000px) {
  .contacto__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
  .contacto__ph { aspect-ratio: 4 / 5; border-top-right-radius: 200px; }
  .waform { padding: 28px; }
}

/* ---------- pie ---------- */
.foot { padding: 64px 0 30px; background: #021b1e; color: rgba(248, 241, 223, .68); font-size: 14.5px; }
.foot__grid { display: grid; gap: 36px; }
.foot__brand p { max-width: 32ch; margin: 16px 0 0; }
.foot__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; align-content: start; }
.foot__nav a { text-decoration: none; transition: color .2s; }
.foot__nav a:hover { color: var(--gold); }
.foot__contact p { margin: 16px 0 0; }
.foot__ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; text-decoration: none; color: var(--cream); }
.foot__ig:hover { color: var(--gold); }
.foot__ig .ic { width: 20px; height: 20px; color: var(--gold); }
.foot__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 12.5px; color: rgba(248, 241, 223, .48); }
.foot__legal p { max-width: 110ch; margin: 0; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; } }

/* ---------- WhatsApp flotante ---------- */
.fab {
  position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  transition: transform .45s var(--ease), opacity .45s;
}
.fab__btn { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .7), 0 4px 12px rgba(0, 0, 0, .18); transition: transform .3s var(--ease); }
.fab__btn .ic { width: 30px; height: 30px; }
.fab:hover .fab__btn { transform: scale(1.07); }
.fab__bubble {
  padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #fff; color: var(--ink); box-shadow: var(--shadow-1);
  font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateX(10px) scale(.96); transform-origin: right center; transition: opacity .35s, transform .4s var(--ease);
}
.fab.show-bubble .fab__bubble { opacity: 1; transform: none; }
.fab.is-away { opacity: 0; transform: translateY(120px); pointer-events: none; }
.fab.nudge .fab__btn { animation: nudge 1.1s var(--ease) 2; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateY(-6px) rotate(-10deg); } 60% { transform: rotate(8deg); } }
@media (max-width: 639px) { .fab__btn { width: 54px; height: 54px; } .fab__btn .ic { width: 28px; height: 28px; } }

/* ---------- visor de fotos ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px 12px 24px; background: rgba(2, 20, 22, .95); animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.lb__fig { display: grid; justify-items: center; gap: 14px; max-width: min(1100px, 100%); margin: 0; }
.lb__fig img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); border-radius: 12px; object-fit: contain; touch-action: pan-y; }
.lb figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; padding: 0 56px; text-align: center; font-size: 15px; color: var(--cream); }
.lb__count { font-size: 13px; color: rgba(248, 241, 223, .55); font-variant-numeric: tabular-nums; }
.lb__x, .lb__nav { position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(248, 241, 223, .12); color: var(--cream); cursor: pointer; transition: background-color .2s; }
.lb__x:hover, .lb__nav:hover { background: rgba(248, 241, 223, .22); }
.lb__x { top: 14px; right: 14px; width: 46px; height: 46px; }
.lb__nav { top: 50%; width: 50px; height: 50px; transform: translateY(-50%); }
.lb__nav--prev { left: 12px; }
.lb__nav--next { right: 12px; }
.lb .ic { width: 22px; height: 22px; }
@media (max-width: 639px) { .lb__nav { top: auto; bottom: 18px; transform: none; width: 46px; height: 46px; } .lb { padding-bottom: 84px; } }

/* ---------- logo vectorial ---------- */
.logo-svg { display: block; width: auto; height: 100%; overflow: visible; }
.hdr__logo { height: 40px; transition: opacity .4s; }
.hdr__logo .logo-svg { height: 40px; width: 117px; }
@media (min-width: 1100px) { .hdr__logo, .hdr__logo .logo-svg { height: 46px; } .hdr__logo .logo-svg { width: 135px; } }
.foot__brand .logo-svg { width: 190px; height: 65px; }

/* ---------- intro animada ----------
   --ixs: multiplicador de duración (Personalizador > Intro animada del logo) */
.intro { display: none; }
html.has-intro .intro, html.intro-out .intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; cursor: pointer;
  animation: introFailsafe .01s linear calc(6.5s * var(--ixs, 1)) forwards;
}
html.intro-noskip .intro { cursor: default; }
@keyframes introFailsafe { to { visibility: hidden; opacity: 0; } }
html.has-intro .hdr__logo { opacity: 0; }
html.intro-landed .hdr__logo { opacity: 1; }
html.has-intro .hero__in { animation-delay: calc(var(--d, 0) * 90ms + 3.5s * var(--ixs, 1)); }
html.has-intro .hero__media img { animation: none; }
html.has-intro .hero__ghost path { animation-delay: calc(3.6s * var(--ixs, 1)); }
.intro__bg {
  position: absolute; inset: 0;
  background: radial-gradient(110% 80% at 50% 46%, #0b3d43 0%, var(--petrol) 52%, #021a1d 100%);
  background: radial-gradient(110% 80% at 50% 46%, color-mix(in srgb, var(--petrol), #2a8f9a 22%) 0%, var(--petrol) 52%, color-mix(in srgb, var(--petrol), #000 35%) 100%);
  transition: opacity .9s var(--ease) .15s;
}
.intro__bg::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: min(900px, 120vw); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(231, 183, 102, .16), rgba(231, 183, 102, 0));
  animation: ixGlow calc(2.6s * var(--ixs, 1)) var(--ease) both;
}
@keyframes ixGlow { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.intro__stage {
  position: relative; display: grid; grid-template-columns: 100%; justify-items: center; gap: 26px; width: min(600px, 82vw);
  transform-origin: 0 0; transition: transform calc(1s * var(--ixs, 1)) cubic-bezier(.75, 0, .2, 1);
}
.intro__logo { display: block; width: 100%; height: auto; overflow: visible; }
.intro__img { width: min(520px, 76vw); animation: ixImg calc(1.6s * var(--ixs, 1)) cubic-bezier(.2, .75, .2, 1) calc(.2s * var(--ixs, 1)) both; }
.intro__img img, .intro__img svg { display: block; width: 100%; height: auto; }
.intro__img .logo-svg { color: var(--cream); }
@keyframes ixImg { from { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.intro__tag {
  display: flex; align-items: center; gap: 14px; margin: 0; white-space: nowrap;
  font: 600 11.5px/1 var(--f-sans); font-stretch: 112%; letter-spacing: .32em; text-transform: uppercase; color: rgba(248, 241, 223, .72);
  opacity: 0; animation: ixRise calc(.9s * var(--ixs, 1)) var(--ease) calc(2s * var(--ixs, 1)) both; transition: opacity .3s;
}
.intro__tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@media (max-width: 520px) { .intro__tag { flex-direction: column; gap: 9px; font-size: 10px; letter-spacing: .26em; } .intro__tag i { display: none; } }
.ix { transform-box: view-box; }
.ix--line-l { transform-origin: 410.8px 569.6px; animation: ixScaleX calc(1s * var(--ixs, 1)) cubic-bezier(.6, 0, .2, 1) calc(.15s * var(--ixs, 1)) both; }
.ix--line-r { transform-origin: 673.8px 569.6px; animation: ixScaleX calc(1s * var(--ixs, 1)) cubic-bezier(.6, 0, .2, 1) calc(.15s * var(--ixs, 1)) both; }
.ix--b { animation: ixRise calc(.8s * var(--ixs, 1)) var(--ease) both; animation-delay: calc((.35s + var(--k) * 65ms) * var(--ixs, 1)); }
.ix--m { animation: ixLetter calc(1.05s * var(--ixs, 1)) cubic-bezier(.2, .75, .2, 1) both; animation-delay: calc((.6s + var(--k) * 90ms) * var(--ixs, 1)); }
.ix--orn-l { transform-origin: 500.5px 759px; animation: ixScaleX calc(1.1s * var(--ixs, 1)) cubic-bezier(.6, 0, .2, 1) calc(1.35s * var(--ixs, 1)) both; }
.ix--orn-r { transform-origin: 590px 758px; animation: ixScaleX calc(1.1s * var(--ixs, 1)) cubic-bezier(.6, 0, .2, 1) calc(1.35s * var(--ixs, 1)) both; }
.ix-wipe { transform-box: view-box; transform-origin: 541px 0; animation: ixScaleX calc(1.1s * var(--ixs, 1)) cubic-bezier(.6, 0, .2, 1) calc(1.2s * var(--ixs, 1)) both; }
.ix--leaves { transform-origin: 542px 766px; animation: ixLeaf calc(1s * var(--ixs, 1)) cubic-bezier(.3, 1.45, .5, 1) calc(1.6s * var(--ixs, 1)) both; }
.ix-shine { animation: ixShine calc(1.2s * var(--ixs, 1)) cubic-bezier(.5, 0, .3, 1) calc(2.15s * var(--ixs, 1)) both; }
@keyframes ixScaleX { from { transform: scaleX(0); opacity: 0; } 25% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes ixRise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes ixLetter { from { opacity: 0; transform: translateY(28px); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ixLeaf { from { opacity: 0; transform: scale(.15) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes ixShine { from { transform: skewX(-18deg) translateX(0); } to { transform: skewX(-18deg) translateX(1150px); } }
html.intro-out .intro { cursor: default; pointer-events: none; }
html.intro-out .intro__bg { opacity: 0; }
html.intro-out .intro__tag { opacity: 0 !important; animation: none; }

/* ---------- opciones del tema (Personalizador > Animaciones) ---------- */
.no-reveal .reveal, .js.no-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.no-hero-anim .hero__in, .no-hero-anim .hero__media img, html.has-intro.no-hero-anim .hero__in { animation: none !important; opacity: 1; transform: none; }
.no-hero-anim .hero__ghost path { animation: none !important; stroke-dashoffset: 0; }

/* logo como imagen (Personalizador > Logo y colores) */
.logo-img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.hdr__logo .logo-img { height: 40px; }
@media (min-width: 1100px) { .hdr__logo .logo-img { height: 46px; } }
.foot__brand .logo-img { height: 65px; }

/* páginas internas (index.php) */
.page { padding: calc(var(--hdr-h, 76px) + 48px) 0 80px; background: var(--paper); min-height: 70vh; }
.page__wrap { max-width: 820px; }
.page__article h1 { margin-bottom: 24px; }
.page__content { font-size: 1.05rem; line-height: 1.7; }
.page__content img { max-width: 100%; height: auto; border-radius: 12px; }
.page__content a { color: var(--petrol); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- movimiento reducido / equipos modestos ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__ghost path { stroke-dashoffset: 0; }
  html.has-intro .intro { display: none; }
}
.lite .live-dot::after, .lite .swipehint .ic, .lite .hero__scroll span { animation: none; }
.lite .mapa.is-done .m-pulse { animation-iteration-count: 3; }
.lite .hero__ghost { display: none; }
