/* ═══════════════════════════════════════════════════════════════
   Tokens
   ═══════════════════════════════════════════════════════════════ */
:root {
  --paper:      #FFFFFF;
  --mist:       #F1F2F5;
  --navy:       #101A2C;
  --navy-deep:  #0A1220;
  --ink:        #131A26;
  --ink-soft:   #4E5666;
  --ink-faint:  #6B7180;
  --gold:       #C6A053;
  --gold-deep:  #8A6C22;
  --gold-soft:  #D8B76A;
  --gold-line:  #E2D3AE;
  --rule:       #E4E6EA;

  --font: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --shell: 1240px;
  --pad-x: clamp(1.5rem, 5vw, 5.5rem);
  --rail:  clamp(0rem, 4vw, 4.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: light;
}

/* ═══════════════════════════════════════════════════════════════
   Base
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* El header es sticky: los anclajes tienen que despejarlo. */
[id] { scroll-margin-top: 7rem; }

a, button, select, summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--gold) 22%, transparent);
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection { background: var(--gold-line); color: var(--ink); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── Shared type roles ───────────────────────────────────────── */
.eyebrow {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: clamp(1.5rem, 4vw, 3rem);
  height: 1px;
  background: var(--gold);
  flex: none;
}

.display {
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   Signature: the plumb line — a gold thread that fills with scroll
   ═══════════════════════════════════════════════════════════════ */
.plumb {
  position: fixed;
  left: max(1.75rem, calc((100vw - var(--shell)) / 2 - 2.75rem));
  top: 8.5rem;
  bottom: 6rem;
  width: 1px;
  background: var(--rule);
  z-index: 15;
  pointer-events: none;
}

.plumb__fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-line), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

.plumb__node {
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--paper);
  border: 1px solid var(--gold-deep);
  transform: rotate(45deg);
  will-change: top;
}

.plumb__label {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform-origin: left bottom;
  transform: rotate(-90deg) translateX(0.9rem);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  transition: opacity .4s var(--ease);
}

@media (max-width: 1150px) { .plumb { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════════ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.masthead.is-stuck { border-bottom-color: var(--rule); }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.25rem;
}

.mark {
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
  line-height: 1;
}
.mark__name {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mark__name b { font-weight: 500; }
.mark__sub {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}
.nav a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  position: relative;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 660px) {
  .nav__link { display: none; }
}

/* ── Botones: vidrio líquido ─────────────────────────────────── */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 1.1rem 2.3rem;
  border: 1px solid rgba(19, 26, 38, 0.10);
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.40));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(19,26,38,0.05),
    0 8px 24px -10px rgba(19,26,38,0.30);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform .45s var(--ease),
    box-shadow .45s var(--ease),
    border-color .45s var(--ease);
}

/* Reflejo especular que barre el cristal */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,0.55) 50%, transparent 64%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(19,26,38,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(19,26,38,0.05),
    0 14px 34px -12px rgba(19,26,38,0.38);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.99); }

/* Primario: cristal dorado */
.btn--gold {
  color: var(--ink);
  border-color: rgba(138,108,34,0.40);
  background: linear-gradient(180deg, rgba(211,178,110,0.92), rgba(184,148,72,0.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    0 8px 22px -12px rgba(138,108,34,0.45);
}
.btn--gold:hover {
  border-color: rgba(138,108,34,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 14px 30px -14px rgba(138,108,34,0.55);
}

/* Secundario: enlace discreto, sin cristal */
.btn--quiet {
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  color: var(--ink-soft);
}
.btn--quiet::after { display: none; }
.btn--quiet:hover {
  transform: none;
  box-shadow: none;
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.btn--sm { padding: 0.85rem 1.7rem; font-size: 0.63rem; }

/* ═══════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════ */
.hero {
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 6rem);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.1rem, 4.1vw, 3.5rem);
  margin-block: 1.6rem 1.5rem;
}
.hero__title em {
  font-style: normal;
  color: var(--gold-deep);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2.6rem;
}

.hero__figure {
  position: relative;
  isolation: isolate;
}
.hero__frame {
  position: absolute;
  inset: clamp(1rem, 2.5vw, 2rem) calc(-1 * clamp(1rem, 2.5vw, 2rem)) calc(-1 * clamp(1rem, 2.5vw, 2rem)) clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--gold-line);
  z-index: -1;
}
.viewport {
  overflow: hidden;
  background: var(--mist);
}
.viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero__viewport { aspect-ratio: 4 / 5; max-height: 72vh; }
.hero__viewport img { height: 118%; margin-top: -9%; }

.hero__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .hero__viewport { aspect-ratio: 3 / 2.4; }
}

/* ═══════════════════════════════════════════════════════════════
   Paquete llave en mano — banda oscura
   ═══════════════════════════════════════════════════════════════ */
.package {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.package .eyebrow { color: var(--gold-soft); }
.package .eyebrow::before { background: var(--gold-soft); }

.package__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.package__title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  margin-top: 1.4rem;
}
.package__title b { font-weight: 400; color: var(--gold-soft); }
.package__aside {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.85;
  max-width: 38ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.step {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; padding-right: 0; }

.step__icon {
  display: block;
  width: clamp(3rem, 4.5vw, 3.6rem);
  height: auto;
  margin-bottom: 1.75rem;
  color: var(--gold-soft);
}
.step__icon path,
.step__icon circle,
.step__icon rect {
  vector-effect: non-scaling-stroke;
}

.step__n {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
}
.step__t {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 1.1rem;
}
.step__d {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 860px) {
  .package__head { grid-template-columns: 1fr; align-items: start; }
  .steps { grid-template-columns: 1fr; }
  .step {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .step:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Manifiesto
   ═══════════════════════════════════════════════════════════════ */
.manifesto {
  background: var(--mist);
  padding-block: clamp(5rem, 12vw, 9.5rem);
  position: relative;
  overflow: hidden;
}
.manifesto__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.manifesto__inner { max-width: 34rem; }

.manifesto__art {
  color: var(--gold);
  will-change: transform;
}
.manifesto__art svg {
  display: block;
  width: 100%;
  height: auto;
}
.manifesto__art path,
.manifesto__art circle { vector-effect: non-scaling-stroke; }

@media (max-width: 860px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__art { order: -1; }
}
.manifesto__text {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 200;
  line-height: 1.5;
  letter-spacing: -0.015em;
  margin-top: 2rem;
  text-wrap: pretty;
}
.manifesto__text b {
  font-weight: 400;
  color: var(--gold-deep);
}
.manifesto__sign {
  margin-top: 2.5rem;
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ═══════════════════════════════════════════════════════════════
   Proyectos
   ═══════════════════════════════════════════════════════════════ */
.work { padding-block: clamp(5rem, 11vw, 9rem); }

.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.work__title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  margin-top: 1.5rem;
}

.work__list {
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.project:nth-child(even) .project__figure { order: 2; }
.project:nth-child(even) .project__figure .project__viewport { margin-left: auto; }

/* Retrato 2:3 — el mismo encuadre para las tres fichas.
   El desborde del parallax es mínimo para no recortar la foto. */
.project__viewport {
  aspect-ratio: 2 / 3;
  width: 100%;
  max-width: 26rem;
}
.project__viewport img { height: 104%; margin-top: -2%; }

.project__body { max-width: 30rem; }

.project__index {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--gold-deep);
}
.project__name {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 0.9rem;
}
.project__place {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.project__meta b {
  font-weight: 500;
  color: var(--gold-deep);
}

.project__map { margin-top: 1.75rem; }

@media (max-width: 780px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__figure { order: 0; }
  .project:nth-child(even) .project__figure .project__viewport { margin-left: 0; }
  .project__viewport { max-width: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Loteo — plano interactivo, extraído del plano real del desarrollo
   ═══════════════════════════════════════════════════════════════ */
.lots { background: var(--mist); padding-block: clamp(5rem, 11vw, 9rem); }
.lots[hidden] { display: none; }

.lots__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.lots__title { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-top: 1.5rem; }

.lots__count {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-align: right;
}
.lots__count b {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  color: var(--gold-deep);
  line-height: 1;
}
.lots__count span {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  max-width: 10ch;
  line-height: 1.5;
}

.lotmap {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
  touch-action: none;
}
.lotmap__frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  cursor: grab;
}
.lotmap__frame.is-grabbing { cursor: grabbing; }

.lotmap__stage {
  width: 100%;
  height: 100%;
}
.lotmap__svg { display: block; width: 100%; height: 100%; }

/* Mar */
.lotmap__sea polygon {
  fill: color-mix(in srgb, var(--navy) 16%, transparent);
}

/* Línea de costa */
.lotmap__coast path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
}

/* Reserva natural */
.lotmap__reserve path {
  fill: color-mix(in srgb, var(--gold) 4%, transparent);
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-dasharray: 4 3;
  opacity: 0.7;
  vector-effect: non-scaling-stroke;
}

/* Arbolado */
.lotmap__trees polygon {
  fill: var(--navy);
  opacity: 0.14;
  stroke: none;
}

/* Manzanas disponibles */
.lotmap__free polygon {
  fill: var(--gold);
  opacity: 0.34;
  stroke: none;
  transition: opacity .3s var(--ease);
}
.lotmap__frame:hover .lotmap__free polygon { opacity: 0.42; }

/* Calles y divisiones de parcela */
.lotmap__lines path {
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.15;
  opacity: 0.75;
  vector-effect: non-scaling-stroke;
}

/* Lotes ya tomados por Eden Rock */
.lotmap__taken polygon {
  fill: var(--navy);
  opacity: 0.88;
  stroke: none;
}

/* Carteles de ruta (Ruta 10, San Ignacio, Punta del Este) */
.lotmap__signs path,
.lotmap__signs polygon {
  fill: var(--gold-deep);
  opacity: 0.7;
}

.lotmap__controls {
  position: absolute;
  right: clamp(0.75rem, 2vw, 1.25rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.lotmap__ctrl {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
  border: 1px solid rgba(19, 26, 38, 0.10);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 16px -8px rgba(19,26,38,0.35);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.lotmap__ctrl:hover { transform: translateY(-1px); }
.lotmap__ctrl--reset { width: auto; padding-inline: 1rem; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

.lotmap__legend {
  position: absolute;
  left: clamp(0.75rem, 2vw, 1.25rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  gap: 1.25rem;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.lotmap__legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.lotmap__legend i {
  width: 0.6rem;
  height: 0.6rem;
  display: inline-block;
}
.lotmap__legend i.is-free {
  background: color-mix(in srgb, var(--gold) 30%, transparent);
  border: 1px solid var(--gold-deep);
}
.lotmap__legend i.is-taken { background: var(--navy); opacity: 0.88; }

/* ── WhatsApp flotante ──────────────────────────────────────── */
.wa {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 45;
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid rgba(138, 108, 34, 0.40);
  background: linear-gradient(180deg, rgba(211,178,110,0.94), rgba(184,148,72,0.96));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    0 10px 26px -12px rgba(19, 26, 38, 0.55);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.wa:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 16px 34px -14px rgba(19, 26, 38, 0.6);
}
.wa svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }

@media (max-width: 560px) {
  .wa { width: 3rem; height: 3rem; }
  .wa svg { width: 1.35rem; height: 1.35rem; }
}

.lots__note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  max-width: 52ch;
}

@media (max-width: 640px) {
  .lotmap__frame { aspect-ratio: 4 / 3; }
  .lotmap__legend { font-size: 0.58rem; gap: 0.8rem; padding: 0.5rem 0.7rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Contacto
   ═══════════════════════════════════════════════════════════════ */
.contact {
  background: linear-gradient(200deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
  padding-block: clamp(5rem, 11vw, 9rem);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 40rem at 88% -10%, rgba(198, 160, 83, 0.16), transparent 62%),
    radial-gradient(40rem 30rem at -5% 105%, rgba(198, 160, 83, 0.08), transparent 60%);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.75rem, 6vw, 5.5rem);
}

.contact .eyebrow { color: var(--gold-soft); }
.contact .eyebrow::before { background: var(--gold-soft); }

.contact__title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  margin-top: 1.5rem;
}
.contact__text {
  margin-top: 1.4rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 34ch;
  line-height: 1.85;
}

.contact__details {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.detail__k {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.detail__v {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
a.detail__v:hover { border-bottom-color: var(--gold); }

/* ── Form ────────────────────────────────────────────────────── */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
  align-content: start;
}
.field { display: grid; gap: 0.55rem; }
.field--wide { grid-column: 1 / -1; }

.field > label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.field > label .req { color: var(--gold-soft); }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem; /* 16px: evita el zoom automático al enfocar en iOS */
  font-weight: 300;
  color: var(--paper);
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.7;
}
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-soft) 50%),
    linear-gradient(135deg, var(--gold-soft) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  background-position: right 1.15rem center, right 0.8rem center, 0 0;
  background-size: 6px 6px, 6px 6px, auto;
  background-repeat: no-repeat, no-repeat, repeat;
  padding-right: 2.4rem;
  cursor: pointer;
}
.field select option { color: var(--ink); background: var(--paper); }

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.30); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.26); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 0 0 3px rgba(198, 160, 83, 0.20);
}
.field :focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #E08A6A; }

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 0.75rem;
}
.form__note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.6;
}
/* Trampa antispam de Netlify: oculta para personas, visible para bots. */
.form__trap { position: absolute; left: -9999px; opacity: 0; }

.form__status {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--gold-soft);
  min-height: 1.2rem;
  line-height: 1.6;
}

@media (max-width: 880px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════ */
.foot {
  padding-block: 2.75rem;
  border-top: 1px solid var(--rule);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ═══════════════════════════════════════════════════════════════
   Motion
   ═══════════════════════════════════════════════════════════════ */
/* Sólo se ocultan si hay JS para volver a mostrarlas. */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s var(--ease) var(--d, 0ms),
    transform 1.1s var(--ease) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease) var(--d, 0ms);
}
.js .reveal-line.is-in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-line { transform: none; }
  .hero__viewport img,
  .project__viewport img { height: 100%; margin-top: 0; }
}
