:root {
  --navy: #001c24;
  --deep: #002f3a;
  --teal: #006f69;
  --cyan: #0c7892;
  --gold: #ffc21a;
  --gold-dark: #f2ad00;
  --ink: #061d25;
  --muted: #778084;
  --white: #ffffff;
  --line: rgba(6, 29, 37, 0.12);
  --shadow: 0 24px 70px rgba(0, 19, 25, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--ink);
  background: #f7f8f7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1710px, calc(100% - 96px));
  margin: 0 auto;
}

.section-panel {
  position: relative;
  scroll-margin-top: 118px;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 26px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1810px, calc(100% - 80px));
  transform: translateX(-50%);
  gap: 30px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.site-header.viewer-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -145%);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-size: clamp(2rem, 2.6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.8;
}

.brand strong {
  color: var(--navy);
  font-size: 1.14em;
  font-weight: 400;
  margin-left: -0.03em;
}

.main-nav,
.contact-pill,
.button,
.floating-label,
.filter {
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.95), 0 6px 15px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.55vw, 32px);
  min-height: 76px;
  padding: 0 38px;
  border-radius: 999px;
  color: var(--navy);
  text-transform: uppercase;
  font-size: clamp(0.9rem, 1.2vw, 1.55rem);
  font-weight: 500;
  white-space: nowrap;
  background: linear-gradient(105deg, rgba(255, 194, 26, 0.9) 0%, rgba(255, 255, 255, 0.88) 46%, rgba(255, 255, 255, 0.7) 100%);
}

.main-nav a {
  position: relative;
}

.main-nav a.active {
  font-weight: 900;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 4px;
  background: var(--gold);
}

.contact-pill {
  display: inline-flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 0 38px;
  border-radius: 999px;
  color: var(--navy);
  font-size: clamp(0.9rem, 1.2vw, 1.45rem);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.76);
}

.dark-header .brand,
.dark-header .brand strong {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.dark-header .brand strong {
  color: var(--gold);
}

.hero {
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--gold);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before,
.light-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0 2px, transparent 3px),
    url("assets/topography.svg");
  background-size: 140px 140px, 760px 760px;
  opacity: 0.55;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(255, 193, 24, 0.98) 0%, rgba(255, 193, 24, 0.9) 41%, rgba(255, 193, 24, 0.34) 56%, rgba(255, 193, 24, 0) 72%),
    radial-gradient(circle at 46% 50%, rgba(255, 255, 255, 0.36), transparent 31%);
}

.hero-content {
  width: min(900px, 50vw);
  padding: clamp(220px, 22vh, 260px) 0 70px;
  margin-left: max(9.4vw, 140px);
}

.hero-title {
  margin: 0;
  color: rgba(0, 58, 70, 0.78);
  font-size: clamp(4.4rem, 5vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-title strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 0.9em;
  font-style: italic;
  font-weight: 900;
}

.hero-copy {
  margin: 30px 0 62px;
  color: rgba(0, 58, 70, 0.76);
  font-size: clamp(1.05rem, 1.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.18;
}

.hero-actions {
  display: grid;
  gap: 28px;
  width: min(660px, 100%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 0 36px;
  border-radius: 999px;
  font-size: clamp(1rem, 1.3vw, 1.7rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.button-primary {
  justify-content: space-between;
  color: #fff;
}

.button-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.button-light {
  min-height: 86px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  text-transform: none;
}

.button-silver {
  width: 100%;
  color: #fff;
  background: linear-gradient(90deg, rgba(255,255,255,0.62), rgba(255,255,255,0.14), rgba(255,255,255,0.62));
}

.arrow-bubble {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-left: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 4rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.95), 0 6px 10px rgba(0, 0, 0, 0.18);
}

.dark-section {
  color: #fff;
  background: #001c24;
}

.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 71% 36%, rgba(0, 120, 146, 0.34), transparent 28%),
    url("assets/topography.svg");
  background-size: auto, 780px 780px;
  opacity: 0.1;
}

.history::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(0, 28, 36, 0.9) 0%, rgba(0, 28, 36, 0.7) 42%, rgba(0, 28, 36, 0.88) 100%),
    url("assets/hero-family-house.png"),
    url("assets/altos-aerial-terrain-v2.jpg");
  background-position: center, left bottom, right center;
  background-size: cover, 58% auto, 58% auto;
  background-repeat: no-repeat;
  opacity: 0.22;
}

.history {
  padding: 112px 0 138px;
  overflow: hidden;
}

.history > .container {
  width: min(1670px, calc(100% - 96px));
}

.history-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  grid-template-columns: 0.9fr 1fr;
  align-items: center;
  gap: 78px;
}

.section-kicker {
  margin: 0 0 18px;
  color: rgba(6, 29, 37, 0.72);
  font-size: clamp(1.2rem, 2vw, 2.6rem);
  font-weight: 300;
}

.section-kicker.loose {
  text-transform: none;
  letter-spacing: 0.36em;
}

.section-kicker.white {
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0;
}

.section-kicker.gold {
  color: var(--gold);
}

.history h1,
.section-head h2,
.altos h2,
.calculator h2,
.contact h2,
.location h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 5.4vw, 7.1rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0;
}

.history h1 {
  max-width: 800px;
  font-size: clamp(3.2rem, 4.15vw, 5.25rem);
  line-height: 0.96;
}

.history h1 span,
.calculator h2 span {
  display: block;
  color: var(--gold);
  font-weight: 900;
}

.history-copy p:not(.section-kicker) {
  max-width: 790px;
  margin: 68px 0 0;
  font-size: clamp(1.05rem, 1.18vw, 1.52rem);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.86);
}

.history-copy p + p {
  margin-top: 28px;
}

.history-copy {
  min-width: 0;
}

.stats-wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: end;
  gap: 48px 64px;
  padding: 58px 0 82px;
  transform: translateY(70px);
}

.big-87 {
  position: absolute;
  inset: -40px 0 auto -80px;
  color: rgba(0, 124, 151, 0.28);
  font-size: clamp(25rem, 41vw, 52rem);
  font-weight: 900;
  line-height: 0.75;
  z-index: -1;
}

.glass-stat,
.why-card,
.contact-links a,
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: linear-gradient(145deg, rgba(22, 103, 112, 0.76), rgba(0, 35, 45, 0.78));
  border: 2px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 16px 18px 36px rgba(255, 255, 255, 0.12),
    inset -20px -18px 38px rgba(0, 0, 0, 0.25),
    0 18px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.glass-stat {
  display: grid;
  place-items: center;
  min-height: 250px;
  border-radius: 48px;
  text-align: center;
}

.glass-stat strong {
  color: var(--gold);
  font-size: clamp(3.2rem, 3.9vw, 5rem);
  font-weight: 300;
  line-height: 1;
}

.glass-stat span {
  font-size: clamp(1rem, 1.3vw, 1.45rem);
}

.timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 86px 110px;
  margin-top: 54px;
  padding: 30px 0 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: -100px;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(var(--cyan), rgba(12, 120, 146, 0.08));
}

.milestone {
  position: relative;
  min-height: 180px;
}

.milestone::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 28, 36, 1) 0 22%, rgba(255, 255, 255, 0.5) 24% 40%, rgba(120, 158, 166, 0.84) 42% 58%, rgba(255, 255, 255, 0.55) 60%);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.26), 0 8px 16px rgba(0, 0, 0, 0.4);
}

.milestone.left {
  text-align: right;
  padding-right: 68px;
}

.milestone.right {
  grid-column: 2;
  padding-left: 68px;
}

.milestone.left::after {
  right: -84px;
}

.milestone.right::after {
  left: -84px;
}

.year {
  display: block;
  color: var(--gold);
  font-size: clamp(2.1rem, 3.1vw, 3.9rem);
  font-weight: 300;
  line-height: 0.9;
}

.milestone h3 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.1rem, 3vw, 3.9rem);
  font-weight: 900;
  line-height: 0.92;
}

.milestone p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.3vw, 1.55rem);
  line-height: 1.15;
}

.light-section {
  overflow: hidden;
  background: #fbfbfa;
}

.portfolio {
  padding: 32px 0 76px;
}

.section-head {
  position: relative;
  z-index: 1;
  text-align: center;
}

.section-head h2,
.altos h2,
.location h2 {
  color: var(--ink);
  font-weight: 900;
}

.section-head p:last-child {
  margin: 18px 0 0;
  color: #3f494d;
  font-size: clamp(1rem, 1.45vw, 1.75rem);
}

.filter-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 45px 0 30px;
}

.filter {
  min-width: 162px;
  min-height: 58px;
  border-radius: 999px;
  color: #3d474b;
  cursor: pointer;
  font-size: 1.35rem;
}

.filter.active {
  border-color: var(--gold);
  background: var(--gold);
}

.project-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 37, 47, 0.08);
}

.project-card.hidden {
  display: none;
}

.project-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.project-card .badge {
  position: absolute;
  top: 18px;
  right: 20px;
  min-width: 118px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #4d575b;
  text-align: center;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.7), 0 4px 8px rgba(0,0,0,0.18);
}

.project-card div {
  padding: 20px 26px 24px;
}

.project-card small {
  display: block;
  color: #5a8b94;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.project-card h3 {
  margin: 12px 0 12px;
  color: #244b51;
  font-size: clamp(1.3rem, 1.55vw, 1.9rem);
  font-weight: 900;
}

.project-card p {
  margin: 0 0 12px;
  color: #80868a;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.altos {
  min-height: 100svh;
  padding: 100px 0;
  overflow: hidden;
  background: var(--gold);
}

.altos-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 193, 24, 0.98) 0 45%, rgba(255, 193, 24, 0.75) 61%, rgba(255, 193, 24, 0.15)),
    url("assets/altos-valley.png") center / cover;
  filter: saturate(0.9);
}

.altos-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 193, 24, 0.32);
  backdrop-filter: blur(7px);
}

.altos-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: center;
  gap: 70px;
}

.floating-label {
  display: inline-flex;
  align-items: center;
  min-height: 70px;
  margin-bottom: 20px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: clamp(1rem, 1.35vw, 1.5rem);
  letter-spacing: 0.1em;
}

.altos-copy > p {
  max-width: 900px;
  margin: 30px 0 78px;
  color: rgba(6, 29, 37, 0.82);
  font-size: clamp(1.25rem, 1.75vw, 2rem);
  line-height: 1.18;
  font-weight: 500;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 34px 46px;
}

.feature-grid article {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 18px;
  align-items: center;
}

.feature-grid span[data-icon],
.contact-links span[data-icon] {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.38);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 9px rgba(255,255,255,0.88), 0 8px 12px rgba(0,0,0,0.2);
}

.feature-grid strong {
  align-self: end;
  font-size: clamp(1.1rem, 1.55vw, 1.8rem);
  font-weight: 900;
}

.feature-grid small {
  align-self: start;
  color: rgba(6, 29, 37, 0.67);
  font-size: clamp(0.92rem, 1.2vw, 1.25rem);
  font-weight: 500;
}

.altos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 100px;
}

.altos-media img {
  width: 100%;
  aspect-ratio: 1.58;
  object-fit: cover;
  border-radius: 70px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.mini-stats article {
  display: grid;
  place-items: center;
  min-height: 140px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 2px 18px rgba(255,255,255,0.5), 0 9px 16px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
}

.mini-stats strong {
  font-size: clamp(2.2rem, 3.1vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.mini-stats span {
  font-weight: 900;
}

.availability {
  padding: 24px 0 82px;
}

.legend {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 30px 0 48px;
  color: #73797c;
  font-size: 1.05rem;
  flex-wrap: wrap;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend .available {
  background: #ffc52d;
}

.legend .offer {
  background: #0c8d83;
}

.legend .reserved {
  background: #5a9dc1;
}

.legend .sold {
  background: #e2524e;
}

.legend .review {
  background: #717879;
}

.availability-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.62fr);
  gap: 34px;
  align-items: start;
}

.plan-card {
  position: relative;
  min-height: 820px;
  border-radius: 8px;
  background: #dce5df;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(0, 31, 40, 0.18);
}

.terrain-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 38, 48, 0.08);
  pointer-events: none;
}

.plan-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dce5df;
  isolation: isolate;
}

.plan-stage:fullscreen {
  border-radius: 0;
  background-color: #dce5df;
}

.plan-stage:not(.terrain-ready):not(.terrain-fallback-ready) .terrain-toolbar,
.plan-stage:not(.terrain-ready):not(.terrain-fallback-ready) .terrain-filters,
.plan-stage:not(.terrain-ready):not(.terrain-fallback-ready) .zoom-label {
  opacity: 0;
  pointer-events: none;
}

.terrain-toolbar,
.terrain-filters,
.zoom-label {
  transition: opacity 0.25s ease;
}

#terrainCanvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  cursor: grab;
  touch-action: none;
  transition: opacity 0.3s ease;
}

.terrain-ready #terrainCanvas {
  opacity: 1;
  pointer-events: auto;
}

#terrainCanvas:active {
  cursor: grabbing;
}

.terrain-fallback-map {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  cursor: grab;
  touch-action: none;
  transition: opacity 0.25s ease;
}

.terrain-fallback-map.dragging {
  cursor: grabbing;
}

.terrain-fallback-ready .terrain-fallback-map {
  opacity: 1;
}

.terrain-ready .terrain-fallback-map {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fallback-scene-background {
  fill: url("#fallbackBackdrop");
}

.fallback-terrain-top {
  fill: url("#fallbackTerrainBase");
  opacity: 1;
  pointer-events: none;
}

.fallback-terrain-texture {
  fill: rgba(75, 54, 41, 0.72);
  opacity: 0.52;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.fallback-site-boundary {
  fill: rgba(245, 238, 204, 0.035);
  stroke: rgba(249, 239, 197, 0.62);
  stroke-width: 1.1px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.fallback-hill-shade {
  fill: url("#fallbackHillShade");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.fallback-hill-highlight {
  fill: rgba(249, 239, 196, 0.46);
  filter: blur(0.03px);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.fallback-hill-band {
  fill: none;
  stroke: rgba(248, 241, 211, 0.38);
  stroke-width: 0.75px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.fallback-road-shadow {
  fill: rgba(19, 42, 43, 0.52);
  stroke: rgba(19, 42, 43, 0.45);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.fallback-road-top {
  fill: #4b5758;
  stroke: rgba(252, 247, 225, 0.94);
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
}

.fallback-centerline {
  fill: none;
  stroke: rgba(248, 222, 150, 0.7);
  stroke-width: 0.75px;
  stroke-dasharray: 5 6;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.fallback-lot {
  cursor: pointer;
  outline: none;
}

.fallback-lot.filtered-out {
  display: none;
}

.fallback-lot-top {
  fill-opacity: 0.74;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 0.9px;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity 0.16s ease, filter 0.16s ease;
}

.fallback-lot-shadow {
  fill-opacity: 0.18;
  stroke: rgba(0, 31, 39, 0.14);
  stroke-width: 0.6px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.fallback-lot:hover .fallback-lot-top,
.fallback-lot.hovered .fallback-lot-top,
.fallback-lot:focus .fallback-lot-top {
  fill-opacity: 0.96;
  filter: brightness(1.1);
}

.fallback-lot.selected .fallback-lot-top {
  fill-opacity: 1;
  stroke: #fff4b7;
  stroke-width: 2.5px;
  filter: brightness(1.12) drop-shadow(0 0 3px rgba(255, 239, 156, 0.88));
}

.fallback-lot-label {
  pointer-events: none;
}

.fallback-lots-layer.labels-hidden .fallback-lot-label {
  display: none !important;
}

.fallback-lot-label rect {
  fill: rgba(255, 255, 255, 0.96);
  stroke: rgba(0, 31, 39, 0.18);
  stroke-width: 0.7px;
  vector-effect: non-scaling-stroke;
}

.fallback-lot-label text {
  fill: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.2px;
  font-weight: 900;
}

/* Masterplan 2D principal */
.masterplan-2d-ready {
  background: #294b41;
}

.masterplan-2d-ready .terrain-fallback-map {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fallback-scene-background {
  fill: url("#fallbackBackdrop");
}

.fallback-map-texture {
  fill: rgba(121, 150, 111, 0.28);
  opacity: 0.58;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.fallback-aerial-vignette {
  fill: url("#fallbackAerialVignette");
  pointer-events: none;
}

.fallback-site-buffer {
  fill: rgba(93, 119, 67, 0.66);
  stroke: rgba(225, 233, 203, 0.22);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.fallback-site-shadow {
  fill: rgba(3, 18, 22, 0.34);
  pointer-events: none;
}

.fallback-site-boundary {
  fill: url("#masterplanSiteFill");
  stroke: rgba(255, 255, 245, 0.98);
  stroke-width: 2.4px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.fallback-topography-line {
  fill: none;
  stroke: rgba(225, 232, 204, 0.13);
  stroke-width: 0.62px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.fallback-context-tree {
  fill: #20483a;
  stroke: none;
  opacity: 0.42;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.fallback-context-tree.tree-tone-1 {
  fill: #365d43;
  opacity: 0.36;
}

.fallback-context-tree.tree-tone-2 {
  fill: #647a52;
  opacity: 0.3;
}

.fallback-road-corridor {
  fill: none;
  stroke: #3e494b;
  stroke-width: 0.38;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.fallback-road-shadow {
  display: none;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.fallback-road-top {
  fill: url("#masterplanRoadFill");
  stroke: rgba(251, 249, 231, 0.96);
  stroke-width: 2.5px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.fallback-centerline {
  fill: none;
  stroke: rgba(242, 211, 126, 0.84);
  stroke-width: 0.9px;
  stroke-dasharray: 6 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.fallback-lot-top {
  fill-opacity: 0.62;
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 1.65px;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity 0.16s ease, filter 0.16s ease, stroke-width 0.16s ease;
}

.fallback-lot-shadow {
  display: none;
}

.fallback-lot:hover .fallback-lot-top,
.fallback-lot.hovered .fallback-lot-top,
.fallback-lot:focus .fallback-lot-top {
  fill-opacity: 1;
  stroke-width: 2.2px;
  filter: brightness(1.08) drop-shadow(0 0 2px rgba(255, 255, 255, 0.48));
}

.fallback-lot.selected .fallback-lot-top {
  fill-opacity: 1;
  stroke: #ffd14a;
  stroke-width: 3px;
  filter: brightness(1.1) drop-shadow(0 0 4px rgba(255, 194, 26, 0.95));
}

.fallback-lot-label rect {
  fill: rgba(255, 255, 255, 0.97);
  stroke: rgba(5, 30, 35, 0.22);
  stroke-width: 0.65px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px rgba(3, 21, 25, 0.3));
}

.fallback-lot-label text {
  fill: #102a30;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.145px;
  font-weight: 900;
  letter-spacing: -0.008px;
}

.masterplan-2d-ready .terrain-toolbar,
.masterplan-2d-ready .terrain-filters,
.masterplan-2d-ready .zoom-label {
  opacity: 1;
}

.masterplan-2d-ready .terrain-view-controls,
.masterplan-2d-ready .terrain-icon-controls,
.masterplan-2d-ready .terrain-filters {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 10px;
  background: rgba(248, 250, 247, 0.9);
  box-shadow: 0 14px 34px rgba(3, 22, 27, 0.3);
}

.masterplan-2d-ready .terrain-toolbar button,
.masterplan-2d-ready .terrain-filters button {
  border-radius: 7px;
}

.masterplan-2d-ready .terrain-compass {
  color: #173037;
  background: rgba(250, 251, 248, 0.94);
}

.masterplan-2d-ready .terrain-filters {
  left: 50%;
  transform: translateX(-50%);
}

.terrain-markers {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.terrain-ready .terrain-markers {
  opacity: 1;
}

.terrain-markers.layer-hidden {
  opacity: 0 !important;
  pointer-events: none;
}

.terrain-marker {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 32px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 5px;
  color: var(--ink);
  background: rgba(255,255,255,0.94);
  font-size: 0.64rem;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 18px rgba(0, 24, 31, 0.28);
  transition: opacity 0.18s ease, box-shadow 0.18s ease, scale 0.18s ease;
}

.terrain-marker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 194, 26, 0.16);
}

.terrain-marker.reserved i {
  background: #49a6cf;
  box-shadow: 0 0 0 2px rgba(73, 166, 207, 0.18);
}

.terrain-marker.sold i {
  background: #e44e4b;
  box-shadow: 0 0 0 2px rgba(228, 78, 75, 0.18);
}

.terrain-marker.review i {
  background: #6d7475;
  box-shadow: 0 0 0 2px rgba(109, 116, 117, 0.18);
}

.terrain-marker.offer i {
  background: #0c8d83;
  box-shadow: 0 0 0 2px rgba(12, 141, 131, 0.2);
}

.terrain-marker.active {
  scale: 1.2;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(255, 194, 26, 0.24), 0 13px 24px rgba(0, 25, 32, 0.38);
}

.terrain-view-3d .terrain-marker {
  min-width: 29px;
  height: 21px;
  border-radius: 999px;
  border-color: #fff8eb;
  background: #fffcf0f5;
  box-shadow: 0 3px 9px #241c1566;
}

.terrain-view-3d .terrain-marker.active { background: #ffdc65; }

[data-golden-public][hidden] { display: none !important; }

.terrain-project-chip .terrain-mouse-hint { display: none; }

@media (hover: hover) and (pointer: fine) {
  .terrain-view-3d .terrain-project-chip .terrain-mouse-hint { display: block; margin-top: .28rem; }
}

.terrain-toolbar {
  position: absolute;
  z-index: 7;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.terrain-project-chip {
  position: absolute;
  z-index: 7;
  top: 76px;
  left: 16px;
  display: grid;
  gap: 2px;
  min-width: 172px;
  padding: 9px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  color: #fff;
  background: rgba(5, 29, 33, 0.72);
  box-shadow: 0 12px 26px rgba(2, 18, 22, 0.2);
  backdrop-filter: blur(9px);
  pointer-events: none;
}

.terrain-project-chip strong {
  font-size: 0.78rem;
}

.terrain-project-chip span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6rem;
  font-weight: 700;
}

.terrain-view-controls,
.terrain-icon-controls,
.terrain-filters {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 7px;
  background: rgba(247,250,249,0.82);
  box-shadow: 0 12px 28px rgba(0,24,31,0.22);
  backdrop-filter: blur(13px);
  pointer-events: auto;
}

.terrain-toolbar button,
.terrain-filters button {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  padding: 0 12px;
  color: #203136;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.terrain-toolbar button:hover,
.terrain-filters button:hover {
  background: rgba(255,255,255,0.8);
}

.terrain-toolbar button.active,
.terrain-filters button.active {
  color: var(--ink);
  background: var(--gold);
}

.terrain-view-controls button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.terrain-view-controls button span {
  font-size: 1rem;
}

.terrain-icon-controls button {
  width: 38px;
  padding: 0;
  font-size: 1.18rem;
}

.terrain-layer-panel {
  position: absolute;
  z-index: 8;
  top: 70px;
  right: 68px;
  display: grid;
  width: 176px;
  gap: 2px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 7px;
  background: rgba(247, 250, 249, 0.94);
  box-shadow: 0 16px 34px rgba(0, 24, 31, 0.24);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.terrain-layer-panel.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.terrain-layer-panel label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 12px;
  padding: 0 8px;
  border-radius: 5px;
  color: #24363a;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
}

.terrain-layer-panel label:hover {
  background: rgba(0, 38, 48, 0.06);
}

.terrain-layer-panel input {
  order: 2;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gold);
}

.terrain-compass {
  position: absolute;
  z-index: 7;
  top: 76px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(247, 250, 249, 0.88);
  box-shadow: 0 10px 24px rgba(0, 24, 31, 0.2);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.terrain-compass span {
  position: absolute;
  top: 3px;
  font-size: 0.54rem;
  font-weight: 900;
}

.terrain-compass i {
  position: absolute;
  width: 2px;
  height: 19px;
  transform-origin: 50% 50%;
}

.terrain-compass i::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  border-right: 5px solid transparent;
  border-bottom: 10px solid #d54d49;
  border-left: 5px solid transparent;
}

.terrain-compass i::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -3px;
  border-top: 8px solid #24363a;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.terrain-filters {
  position: absolute;
  z-index: 7;
  left: 14px;
  bottom: 14px;
}

.terrain-filters button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.72rem;
}

.terrain-tooltip {
  position: absolute;
  z-index: 9;
  display: grid;
  gap: 3px;
  min-width: 178px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 16px 35px rgba(0,24,31,0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.terrain-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.terrain-tooltip strong {
  font-size: 0.88rem;
}

.terrain-tooltip span {
  color: #697276;
  font-size: 0.75rem;
}

.terrain-selection-card {
  position: absolute;
  z-index: 8;
  right: 14px;
  bottom: 14px;
  display: none;
  width: min(278px, calc(100% - 28px));
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 18px 36px rgba(0,24,31,0.28);
  backdrop-filter: blur(14px);
}

.terrain-selection-card.visible {
  display: grid;
  gap: 10px;
}

.terrain-selection-card > strong {
  font-size: 1.35rem;
}

.terrain-selection-card > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #5f6b6e;
  font-size: 0.85rem;
  font-weight: 800;
}

.terrain-selection-card > a {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.terrain-selection-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #edf1f0;
  cursor: pointer;
  font-size: 1.1rem;
}

.terrain-loading {
  position: absolute;
  z-index: 10;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 12px 28px rgba(0,24,31,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  font-size: 0.82rem;
  font-weight: 900;
}

.terrain-loading-visible .terrain-loading {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.terrain-loading span {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,38,48,0.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: terrain-spin 0.8s linear infinite;
}

.terrain-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.terrain-error {
  position: absolute;
  z-index: 11;
  left: 50%;
  top: 50%;
  display: none;
  width: min(330px, calc(100% - 32px));
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(0, 24, 31, 0.26);
  transform: translate(-50%, -50%);
  text-align: center;
}

.terrain-failed .terrain-error {
  display: grid;
}

.terrain-fallback-ready.terrain-failed .terrain-error,
.terrain-fallback-ready .terrain-loading {
  display: none;
}

.terrain-error button {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: var(--gold);
  cursor: pointer;
  font-weight: 900;
}

@keyframes terrain-spin {
  to { transform: rotate(360deg); }
}

.zoom-label {
  position: absolute;
  z-index: 8;
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.54);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 8px 22px rgba(0,24,31,0.2);
  backdrop-filter: blur(10px);
  pointer-events: none;
  font-weight: 700;
}

.lot-panel {
  position: sticky;
  top: 128px;
}

.selected-lot {
  min-height: 150px;
  margin-bottom: 18px;
  padding: 0 0 20px 18px;
  border-left: 4px solid var(--gold);
}

.selected-lot h3,
.summary-card h3,
.interest-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  font-weight: 900;
}

.selected-lot p,
.interest-card p {
  margin: 0;
  color: #8a8e91;
  font-size: 1.12rem;
  line-height: 1.2;
}

.lot-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lot-status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lot-status-chip.reserved {
  color: #fff;
  background: #49a6cf;
}

.lot-status-chip.sold {
  color: #fff;
  background: #e44e4b;
}

.lot-status-chip.review {
  color: #fff;
  background: #6d7475;
}

.lot-source {
  color: #8a9395;
  font-size: 0.72rem;
  font-weight: 800;
}

.lot-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 10px;
}

.lot-facts div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lot-facts span {
  color: #8a9395;
  font-size: 0.72rem;
}

.lot-facts strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1rem;
}

.selected-lot .lot-price-note {
  font-size: 0.72rem;
  line-height: 1.35;
}

.lot-selection-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.lot-selection-actions button,
.lot-selection-actions a {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: var(--gold);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.lot-selection-actions a {
  color: #fff;
  background: #18bd63;
}

.summary-card {
  padding: 30px 28px;
  border: 1px solid rgba(6, 29, 37, 0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.74);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.summary-card dl {
  margin: 22px 0 0;
}

.summary-card div {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  color: #6f7376;
  font-size: 0.98rem;
}

.summary-card dt,
.summary-card dd {
  margin: 0;
}

.summary-card dd {
  color: #418b98;
}

.summary-card .yellow {
  color: var(--gold);
}

.summary-card .blue {
  color: #76bad7;
}

.summary-card .red {
  color: #f26f69;
}

.summary-card .gray {
  color: #707879;
}

.summary-note {
  margin: 18px 0 0;
  color: #899092;
  font-size: 0.72rem;
  line-height: 1.4;
}

.plan-audit {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(6, 29, 37, 0.1);
  color: #737c7f;
  font-size: 0.7rem;
  line-height: 1.45;
}

.plan-audit summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.plan-audit p {
  margin: 10px 0 0;
}

.plan-audit strong {
  color: #2e7f8d;
}

.interest-card {
  margin-top: 18px;
  padding: 30px 28px;
  border-radius: 8px;
  background: var(--gold);
}

.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 28px;
  border-radius: 5px;
  color: #fff;
  background: #22d66d;
  font-weight: 900;
  font-size: 0.95rem;
}

.calculator {
  padding: 102px 0 88px;
  background:
    linear-gradient(rgba(0, 31, 40, 0.97), rgba(0, 31, 40, 0.96)),
    url("assets/altos-road.png") center / cover fixed;
}

.calc-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 108px;
  align-items: start;
}

.calculator h2 {
  color: #fff;
  font-weight: 900;
}

.calc-copy > p:not(.section-kicker) {
  max-width: 720px;
  color: rgba(255,255,255,0.45);
  font-size: clamp(1.12rem, 1.45vw, 1.7rem);
  line-height: 1.18;
}

.why-card {
  position: relative;
  min-height: 620px;
  margin-top: 58px;
  padding: 44px 54px;
  border-radius: 46px;
  overflow: hidden;
}

.why-card h3 {
  margin: 0 0 28px;
  color: var(--gold);
  font-size: clamp(2rem, 3vw, 3.45rem);
}

.why-card ul {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  margin: 0;
  padding-left: 28px;
  color: #fff;
  font-size: clamp(1.02rem, 1.45vw, 1.55rem);
}

.why-card li::marker {
  color: var(--gold);
}

.land-piece {
  position: absolute;
  left: 40px;
  right: 36px;
  bottom: 18px;
  height: 190px;
  transform: perspective(700px) rotateX(55deg) rotateZ(-4deg);
  border-radius: 15px;
  background:
    linear-gradient(180deg, #62b83c, #2f801f 54%, #795335 55%, #ba8a60 100%);
  box-shadow: 0 28px 40px rgba(0,0,0,0.45);
}

.pin {
  position: absolute;
  left: 58%;
  top: -70px;
  width: 84px;
  height: 84px;
  transform: rotate(45deg);
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle at 50% 50%, transparent 0 23%, #b98900 24% 35%, var(--gold) 36% 100%);
  box-shadow: -8px 12px 20px rgba(0,0,0,0.35);
}

.calc-tool label {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
  color: var(--gold);
  font-size: clamp(1.05rem, 1.45vw, 1.6rem);
  font-weight: 900;
}

.calc-tool label span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.calc-tool output {
  color: rgba(255,255,255,0.82);
  font-weight: 400;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0 30%, #0b7894 30% 100%);
}

input[type="range"]::-webkit-slider-thumb {
  width: 54px;
  height: 54px;
  appearance: none;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--navy) 0 22%, rgba(255,255,255,0.4) 25% 41%, #8fa6ad 43% 58%, rgba(255,255,255,0.78) 60%);
  box-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.result-card {
  padding: 34px 44px 32px;
  border-radius: 24px;
  color: var(--navy);
  text-align: center;
  background: var(--gold);
}

.result-card > p {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 1.35rem;
}

.result-card > strong {
  display: block;
  font-size: clamp(4rem, 6.3vw, 7.2rem);
  line-height: 0.95;
  font-weight: 900;
}

.result-card > span {
  display: block;
  margin: 16px 0 28px;
  font-size: 1.25rem;
}

.result-card dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 42px;
  margin: 0;
  padding-top: 28px;
  border-top: 2px solid rgba(255, 255, 255, 0.75);
  text-align: left;
}

.result-card dt,
.result-card dd {
  margin: 0;
}

.result-card dt {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
}

.result-card dd {
  margin-top: 14px;
  font-size: 1.8rem;
}

.result-card small {
  display: block;
  margin-top: 26px;
}

.calc-tool .button {
  margin-top: 58px;
}

.location {
  padding: 80px 0;
}

.location-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.location p:not(.section-kicker) {
  font-size: 1.35rem;
  color: #596367;
}

.map-preview {
  min-height: 330px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background:
    linear-gradient(rgba(255,255,255,0.58), rgba(255,255,255,0.58)),
    url("assets/topography.svg"),
    linear-gradient(135deg, #d8e2d2, #f7c724);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.map-preview span {
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--gold);
  font-weight: 900;
}

.contact {
  padding: 0 0 64px;
  background: #006d66;
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 90px;
  padding-top: 8px;
}

.contact h2 {
  max-width: 780px;
  color: #fff;
  font-weight: 900;
}

.contact-copy > p:not(.section-kicker) {
  margin: 34px 0 58px;
  max-width: 900px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 1.5vw, 1.55rem);
  line-height: 1.7;
}

.contact-links {
  display: grid;
  gap: 18px;
}

.contact-links a {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  min-height: 120px;
  padding: 20px 32px;
  border-radius: 18px;
}

.contact-links strong {
  align-self: end;
  font-size: 1.45rem;
}

.contact-links small {
  align-self: start;
  color: rgba(255,255,255,0.46);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 1.45rem;
  font-weight: 900;
}

.contact-form .wide {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 82px;
  padding: 0 26px;
  border-radius: 12px;
  color: #fff;
  outline: none;
}

.contact-form textarea {
  min-height: 152px;
  padding-top: 28px;
  resize: vertical;
}

.contact-form ::placeholder {
  color: rgba(255,255,255,0.38);
}

.contact-form button {
  min-height: 82px;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: var(--gold);
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
}

.footer {
  padding: 46px 0 22px;
  color: rgba(255,255,255,0.48);
  background: #001b22;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.5fr 0.75fr 0.5fr;
  gap: 60px;
  padding-bottom: 58px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.footer-brand,
.footer-brand strong {
  color: var(--gold);
}

.footer p {
  max-width: 560px;
  font-size: 1.3rem;
  font-weight: 500;
}

.footer h3 {
  margin: 0 0 26px;
  color: var(--gold);
  font-size: 1.45rem;
}

.footer nav {
  display: grid;
  align-content: start;
}

.footer nav a {
  font-size: 1.35rem;
  line-height: 1.12;
}

.copyright {
  margin: 30px auto 0;
  text-align: center;
  font-weight: 900;
}

[data-icon]::before {
  content: "";
  width: 36px;
  height: 36px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}

[data-icon="mountain"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 3 4 8 3-5 7 13H2L8 3Z'/%3E%3C/svg%3E"); }
[data-icon="clipboard"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M8 12h8M8 16h8'/%3E%3C/svg%3E"); }
[data-icon="zap"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h8l-1 8 11-14h-8l1-6Z'/%3E%3C/svg%3E"); }
[data-icon="card"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
[data-icon="trend"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 17 6-6 4 4 8-8'/%3E%3Cpath d='M14 7h7v7'/%3E%3C/svg%3E"); }
[data-icon="shield"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
[data-icon="phone"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.32 1.77.6 2.61a2 2 0 0 1-.45 2.11L8 9.71a16 16 0 0 0 6.29 6.29l1.27-1.27a2 2 0 0 1 2.11-.45c.84.28 1.71.48 2.61.6A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E"); }
[data-icon="mail"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
[data-icon="calendar"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }

@media (max-width: 1180px) {
  .site-header {
    width: calc(100% - 34px);
    gap: 16px;
  }

  .main-nav {
    display: none;
  }

  .hero-content {
    width: min(760px, calc(100% - 40px));
    margin-left: 32px;
  }

  .history-grid,
  .altos-grid,
  .availability-grid,
  .calc-grid,
  .contact-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-wrap {
    padding-top: 20px;
  }

  .availability-grid {
    gap: 34px;
  }

  .lot-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .selected-lot {
    grid-column: 1 / -1;
  }

  .interest-card {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 620px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    gap: 8px;
    padding: 7px 8px 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(0, 29, 37, 0.18);
    backdrop-filter: blur(14px);
  }

  .contact-pill {
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    background: var(--gold);
    box-shadow: none;
    font-size: 0.76rem;
  }

  .brand {
    font-size: 1.75rem;
  }

  .hero-content {
    padding-top: 120px;
    margin-left: 16px;
  }

  .hero-title {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .hero-veil {
    background: linear-gradient(100deg, rgba(255,193,24,.97) 0%, rgba(255,193,24,.86) 64%, rgba(255,193,24,.22));
  }

  .hero-photo {
    object-position: 62% center;
  }

  .button {
    min-height: 62px;
    padding: 0 22px;
  }

  .history,
  .altos,
  .calculator {
    padding: 72px 0;
  }

  .history h1,
  .section-head h2,
  .altos h2,
  .calculator h2,
  .contact h2,
  .location h2 {
    font-size: clamp(2.5rem, 10vw, 4.2rem);
  }

  .history h1 {
    max-width: 100%;
  }

  .history-copy p:not(.section-kicker) {
    max-width: 100%;
  }

  .stats-wrap,
  .project-grid,
  .feature-grid,
  .mini-stats,
  .contact-form,
  .result-card dl,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .glass-stat {
    min-height: 170px;
    border-radius: 34px;
  }

  .stats-wrap {
    transform: none;
  }

  .timeline {
    display: block;
    padding-left: 62px;
  }

  .timeline-line {
    left: 22px;
  }

  .milestone,
  .milestone.left,
  .milestone.right {
    text-align: left;
    padding: 0 0 56px;
  }

  .milestone.left::after,
  .milestone.right::after {
    left: -68px;
    right: auto;
  }

  .project-grid {
    gap: 18px;
  }

  .altos-actions {
    margin-top: 50px;
  }

  .plan-card {
    min-height: 620px;
  }

  .plan-stage {
    inset: 0;
  }

  .terrain-toolbar {
    left: 10px;
    right: 10px;
    top: 72px;
    display: block;
  }

  .terrain-project-chip {
    display: none;
  }

  .plan-stage:fullscreen .terrain-toolbar {
    top: 10px;
  }

  .terrain-view-controls {
    width: fit-content;
    max-width: 100%;
  }

  .terrain-icon-controls {
    position: absolute;
    top: 52px;
    right: 0;
  }

  .terrain-toolbar button {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .terrain-icon-controls button {
    width: 32px;
    padding: 0;
    font-size: 0.96rem;
  }

  .terrain-layer-panel {
    top: 162px;
    right: 48px;
    width: 152px;
  }

  .terrain-compass {
    top: 166px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  .plan-stage:fullscreen .terrain-layer-panel {
    top: 100px;
  }

  .plan-stage:fullscreen .terrain-compass {
    top: 104px;
  }

  .terrain-filters {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }

  .terrain-filters button {
    min-width: 0;
    min-height: 30px;
    padding: 0 4px;
    font-size: 0.58rem;
  }

  .terrain-marker {
    min-width: 30px;
    height: 23px;
    padding: 0 5px;
    font-size: 0.61rem;
  }

  .terrain-marker i {
    width: 5px;
    height: 5px;
  }

  .terrain-selection-card {
    right: 10px;
    bottom: 58px;
    width: min(252px, calc(100% - 20px));
  }

  .zoom-label {
    display: none;
  }

  .lot-panel {
    grid-template-columns: 1fr;
  }

  .selected-lot {
    grid-column: auto;
  }

  .lot-facts,
  .lot-selection-actions {
    grid-template-columns: 1fr;
  }

  .legend {
    gap: 14px;
    margin-bottom: 30px;
    font-size: 0.82rem;
  }

  .contact {
    padding-top: 62px;
  }

  .contact-grid,
  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-copy,
  .contact-form,
  .contact-form label {
    min-width: 0;
  }

  .contact-links a {
    grid-template-columns: 54px minmax(0, 1fr);
    min-width: 0;
    padding: 16px;
  }

  .contact-links strong,
  .contact-links small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .contact-links strong {
    font-size: 1rem;
  }

  .contact-links span[data-icon]::before {
    width: 30px;
    height: 30px;
  }

  .contact-form .wide {
    grid-column: auto;
  }
}

@media (min-width: 1600px) {
  .site-header {
    left: calc(50% + 60px);
    padding-left: 40px;
  }
}

/* En escritorio la ficha lateral ya contiene toda la información del lote. */
@media (min-width: 1181px) {
  .masterplan-2d-ready .terrain-selection-card {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .masterplan-2d-ready .terrain-filters {
    left: 10px;
    right: 10px;
    transform: none;
  }
}

/* Composicion oficial entregada por el disenador */
@font-face {
  font-family: "Elms Sans Local";
  src: url("assets/fonts/Elms_Sans/ElmsSans-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat Local";
  src: url("assets/fonts/Montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #00171f;
  --deep: #00171f;
  --teal: #006f69;
  --cyan: #4ba6c5;
  --gold: #ffc21c;
  --gold-dark: #dca900;
  --ink: #00171f;
  --muted: #737c80;
  --line: rgba(0, 23, 31, 0.13);
}

body {
  font-family: "Elms Sans Local", Arial, sans-serif;
  color: var(--ink);
  background: var(--navy);
}

h1, h2, h3, h4, button, .main-nav, .contact-pill, .button, .filter, .floating-label,
.brand, .project-card, .feature-grid, .mini-stats, .summary-card, .interest-card,
.calc-tool, .contact-form, .footer {
  font-family: "Montserrat Local", Arial, sans-serif;
}

.site-header {
  top: 28px;
  width: min(2250px, calc(100% - 110px));
  gap: clamp(20px, 2.2vw, 54px);
}

.brand {
  width: clamp(205px, 14vw, 330px);
  min-width: 0;
  height: auto;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-logo-light {
  display: none;
}

.dark-header .brand-logo-dark,
.footer .brand-logo-dark {
  display: none;
}

.dark-header .brand-logo-light,
.footer .brand-logo-light {
  display: block;
}

.main-nav,
.contact-pill {
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(0, 23, 31, 0.17), inset 0 2px 8px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.main-nav {
  gap: clamp(22px, 2.1vw, 48px);
  padding: 0 clamp(28px, 2.6vw, 60px);
  color: var(--navy);
  font-size: clamp(0.82rem, 1.05vw, 1.32rem);
  font-weight: 500;
}

.main-nav a.active::after {
  bottom: -10px;
  height: 4px;
}

.contact-pill {
  padding: 0 clamp(26px, 2.5vw, 56px);
  color: var(--navy);
  font-size: clamp(0.82rem, 1.05vw, 1.26rem);
}

.hero {
  min-height: 100svh;
  background: #ffc21c;
}

.hero::before,
.hero-veil {
  display: none;
}

.hero-picture {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: min(910px, 52vw);
  padding: clamp(190px, 22vh, 330px) 0 72px;
  margin-left: max(9.4vw, 120px);
}

.hero-title {
  color: rgba(0, 23, 31, 0.84);
  font-family: "Elms Sans Local", Arial, sans-serif;
  font-size: clamp(3.75rem, 5.15vw, 7.3rem);
  font-weight: 300;
  line-height: 0.93;
}

.hero-title strong {
  margin-top: 12px;
  color: #fff;
  font-family: "Montserrat Local", Arial, sans-serif;
  font-size: 0.88em;
  font-weight: 900;
}

.hero-copy {
  max-width: 860px;
  margin: 34px 0 58px;
  color: rgba(0, 23, 31, 0.78);
  font-size: clamp(0.95rem, 1.16vw, 1.45rem);
  line-height: 1.17;
}

.hero-actions {
  gap: 22px;
  width: min(680px, 100%);
}

.button {
  min-height: 74px;
  border-width: 1px;
  font-size: clamp(0.82rem, 1.08vw, 1.35rem);
}

.button-primary {
  color: #fff;
  background: rgba(255, 194, 28, 0.82);
}

.button-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.arrow-bubble {
  width: 60px;
  height: 60px;
  font-size: 3.6rem;
}

.dark-section::before,
.history::after {
  display: none;
}

.history {
  min-height: 2880px;
  padding: clamp(140px, 10vw, 250px) 0 180px;
  background: #00171f url("assets/official/historia-fondo-desktop.jpg") center / 100% 100% no-repeat;
}

.history > .container,
.history-grid,
.timeline {
  width: min(2050px, calc(100% - 180px));
}

.history-grid {
  min-height: 1080px;
  grid-template-columns: 0.92fr 1fr;
  align-items: start;
  gap: clamp(50px, 7vw, 150px);
}

.history-copy {
  padding-top: 30px;
}

.history h1 {
  max-width: 840px;
  font-family: "Elms Sans Local", Arial, sans-serif;
  font-size: clamp(3.2rem, 5.2vw, 6.9rem);
  font-weight: 300;
  line-height: 0.95;
}

.history h1 span {
  font-family: "Montserrat Local", Arial, sans-serif;
  font-weight: 900;
}

.history-copy p:not(.section-kicker) {
  max-width: 860px;
  margin-top: 72px;
  font-size: clamp(1rem, 1.28vw, 1.62rem);
  line-height: 1.16;
}

.history-copy p + p {
  margin-top: 34px;
}

.stats-wrap {
  grid-template-columns: repeat(2, minmax(260px, 380px));
  gap: 48px 62px;
  padding-top: 90px;
  transform: none;
}

.glass-stat {
  min-height: 248px;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(42, 105, 120, 0.2));
  box-shadow: inset 14px 16px 34px rgba(255, 255, 255, 0.13), inset -18px -18px 32px rgba(0, 0, 0, 0.18), 0 14px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.glass-stat strong {
  font-family: "Elms Sans Local", Arial, sans-serif;
  font-size: clamp(3rem, 4vw, 5.8rem);
  font-weight: 300;
}

.glass-stat span {
  font-size: clamp(0.95rem, 1.25vw, 1.42rem);
}

.big-87 {
  color: rgba(0, 91, 115, 0.34);
  font-size: clamp(24rem, 42vw, 52rem);
}

.timeline {
  margin-top: 0;
  gap: 130px 160px;
  padding-top: 12px;
}

.timeline-line {
  background: linear-gradient(var(--cyan), rgba(75, 166, 197, 0.12));
}

.milestone h3 {
  font-size: clamp(2rem, 3vw, 3.5rem);
}

.milestone p {
  font-size: clamp(1rem, 1.22vw, 1.45rem);
}

.portfolio {
  padding: 150px 0 170px;
  background: #fff;
}

.portfolio::before,
.location::before {
  opacity: 0.18;
}

.section-head h2,
.altos h2,
.location h2 {
  font-size: clamp(2.8rem, 4.2vw, 5.6rem);
}

.section-head p:last-child {
  font-size: clamp(1rem, 1.25vw, 1.45rem);
}

.filter-bar {
  margin: 42px 0 42px;
}

.filter {
  min-width: 140px;
  min-height: 54px;
  font-size: 1rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1460px;
  margin: 0 auto;
}

.project-card {
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 23, 31, 0.12);
}

.project-card img {
  height: 260px;
}

.altos {
  min-height: auto;
  padding: 150px 0;
}

.altos-bg {
  background:
    linear-gradient(90deg, rgba(255, 194, 28, 0.98) 0 48%, rgba(255, 194, 28, 0.78) 70%, rgba(255, 194, 28, 0.25)),
    url("assets/altos-aerial-terrain-v2.jpg") center / cover;
}

.altos-bg::after {
  background: rgba(255, 194, 28, 0.12);
  backdrop-filter: none;
}

.feature-grid article > img {
  grid-row: span 2;
  width: 68px;
  height: 68px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 2px 9px rgba(255, 255, 255, 0.88), 0 8px 12px rgba(0, 0, 0, 0.16);
}

.feature-grid article {
  grid-template-columns: 68px 1fr;
  column-gap: 18px;
}

.altos-actions {
  margin-top: 70px;
}

.altos-media img {
  border-radius: 34px;
}

.mini-stats article {
  min-height: 124px;
  border-radius: 28px;
}

.visual-excluded {
  display: none !important;
}

.calculator {
  padding: 160px 0;
}

.location {
  padding: 150px 0;
  background: #fff;
}

.map-preview {
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(0, 23, 31, 0.1);
  border-radius: 20px;
  background: #eef3f1;
}

.map-preview img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.contact {
  padding: 160px 0;
  background: #006f69;
}

.footer-brand {
  width: 235px;
}

.section-panel {
  scroll-margin-top: 0;
}

@media (max-width: 1100px) {
  .site-header {
    width: calc(100% - 42px);
    gap: 16px;
  }

  .brand {
    width: 190px;
  }

  .main-nav {
    gap: 13px;
    padding: 0 18px;
    font-size: 0.74rem;
  }

  .contact-pill {
    padding: 0 18px;
    font-size: 0.72rem;
  }

  .history {
    min-height: 2200px;
    background-image: url("assets/official/historia-fondo-tablet.jpg");
  }

  .history > .container,
  .history-grid,
  .timeline {
    width: min(100% - 60px, 960px);
  }

  .history-grid {
    grid-template-columns: 1fr;
  }

  .stats-wrap {
    justify-content: start;
    transform: none;
  }

  .timeline {
    margin-top: 40px;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 12px;
    display: flex;
    justify-content: space-between;
    width: calc(100% - 24px);
  }

  .brand {
    width: 142px;
  }

  .main-nav {
    display: none;
  }

  .contact-pill {
    min-height: 48px;
    padding: 0 16px;
    font-size: 0.68rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    width: calc(100% - 44px);
    padding: 130px 0 44px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(3rem, 12.8vw, 4.4rem);
  }

  .hero-copy {
    margin: 24px 0 34px;
    font-size: 0.94rem;
  }

  .hero-actions {
    gap: 12px;
  }

  .button {
    min-height: 58px;
    padding: 0 20px;
    font-size: 0.76rem;
  }

  .arrow-bubble {
    width: 44px;
    height: 44px;
    font-size: 2.6rem;
  }

  .history {
    min-height: 3840px;
    padding: 90px 0 120px;
    background-image: url("assets/official/historia-fondo-mobile.jpg");
    background-size: 100% 100%;
  }

  .history > .container,
  .history-grid,
  .timeline {
    width: calc(100% - 40px);
  }

  .history-grid {
    min-height: auto;
    gap: 54px;
  }

  .history h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .history-copy p:not(.section-kicker) {
    margin-top: 38px;
    font-size: 1rem;
  }

  .stats-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 20px;
  }

  .glass-stat {
    min-height: 150px;
    border-radius: 22px;
  }

  .glass-stat strong {
    font-size: 2.55rem;
  }

  .glass-stat span {
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .big-87 {
    inset: 24px 0 auto -12px;
    font-size: 20rem;
  }

  .timeline {
    display: block;
    margin-top: 70px;
    padding-left: 28px;
  }

  .timeline-line {
    left: 8px;
  }

  .milestone,
  .milestone.left,
  .milestone.right {
    min-height: 270px;
    padding: 0 0 0 42px;
    text-align: left;
  }

  .milestone::after,
  .milestone.left::after,
  .milestone.right::after {
    top: 2px;
    left: -12px;
    right: auto;
    width: 42px;
    height: 42px;
  }

  .milestone h3 {
    font-size: 2rem;
  }

  .milestone p {
    font-size: 1rem;
  }

  .portfolio,
  .altos,
  .calculator,
  .location,
  .contact {
    padding: 86px 0;
  }

  .portfolio .container,
  .altos .container,
  .calculator .container,
  .location .container,
  .contact .container {
    width: calc(100% - 36px);
  }

  .section-head h2,
  .altos h2,
  .location h2,
  .calculator h2,
  .contact h2 {
    font-size: 2.7rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 210px;
  }

  .altos-grid,
  .location-grid,
  .calc-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .altos-copy > p {
    margin: 24px 0 42px;
    font-size: 1.05rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .altos-actions {
    margin-top: 46px;
  }

  .altos-media img {
    border-radius: 20px;
  }

  .mini-stats {
    gap: 10px;
  }

  .mini-stats article {
    min-height: 100px;
    border-radius: 20px;
  }

  .mini-stats strong {
    font-size: 1.8rem;
  }

  .map-preview,
  .map-preview img {
    min-height: 300px;
  }

  .footer-brand {
    width: 190px;
  }
}

/* Integración audiovisual dentro de las tarjetas del portafolio. */
.project-card-media {
  position: relative;
  display: block;
  width: 100%;
  height: 260px;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: #fff;
  background: #0b2d31;
  text-align: left;
  cursor: pointer;
}

.project-card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 52%, rgba(0, 27, 34, 0.72) 100%);
  pointer-events: none;
}

.project-card-media img {
  height: 100%;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.project-card-media:hover img,
.project-card-media:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.project-card-media:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: -4px;
}

.project-card-play {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 34, 43, 0.72);
  font-size: 0.66rem;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(0, 20, 26, 0.28);
  backdrop-filter: blur(10px);
}

.project-card-play i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.56rem;
  font-style: normal;
}

/* Golden Days: masterplan 2D limpio, legible y compatible con el scroll de la página. */
.golden-map-stage {
  height: clamp(620px, calc(82svh - 30px), 820px);
  min-height: 620px;
  background: #e8efe9;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}

.golden-map-stage::before {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.95), transparent 38%),
    linear-gradient(145deg, #f3f7f3 0%, #e4ece6 50%, #d5e1d9 100%);
}

.golden-map {
  touch-action: pan-y;
}

.golden-map-mode {
  display: none !important;
}

.golden-map-ground {
  fill: #dfe9df;
}

.plan-mode .golden-contour {
  stroke: rgba(24, 88, 76, 0.16);
  stroke-width: 1.15;
  stroke-dasharray: 2 8;
}

.plan-mode .golden-tree {
  opacity: 0.7;
}

.golden-tree-shadow {
  fill: rgba(13, 56, 44, 0.15);
  filter: blur(1.5px);
}

.golden-tree-crown {
  fill: url(#goldenTreeCanopy);
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 0.9;
}

.golden-tree-crown-secondary {
  opacity: 0.9;
}

.golden-tree-highlight {
  fill: rgba(221, 236, 183, 0.42);
}

.plan-mode .golden-block-road {
  fill: #e9eee7;
  stroke: #fbfaf3;
  stroke-width: 19;
  filter: drop-shadow(0 8px 12px rgba(24, 62, 52, 0.14));
}

.golden-access-road {
  stroke: #fbfaf3;
}

.golden-lot-shape,
.plan-mode .golden-lot-shape {
  fill-opacity: 0.94;
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 1.55;
  filter: drop-shadow(0 2px 3px rgba(12, 52, 43, 0.2));
}

.golden-lot.review .golden-lot-shape {
  fill-opacity: 0.84;
}

.golden-map-hint {
  max-width: 350px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 47, 52, 0.88);
  backdrop-filter: blur(10px);
}

/* Panel comercial de pantalla completa. */
.seller-panel-fab {
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 54px;
  min-height: 54px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: #073b43;
  box-shadow: 0 14px 34px rgba(0, 23, 31, 0.24);
}

.seller-panel-fab svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.seller-panel-overlay {
  display: block;
  background: rgba(0, 23, 31, 0.36);
  opacity: 0;
  backdrop-filter: blur(7px);
}

.seller-panel {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100svh;
  grid-template-rows: 78px minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  background: #f3f6f4;
  box-shadow: none;
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seller-panel-overlay.visible .seller-panel {
  opacity: 1;
  transform: none;
}

.seller-panel-header {
  position: relative;
  top: auto;
  display: flex;
  min-height: 78px;
  margin: 0;
  padding: 14px clamp(18px, 2.5vw, 38px);
  border-bottom: 1px solid rgba(0, 34, 43, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(0, 35, 42, 0.06);
}

.seller-panel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-panel-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.seller-panel-header h2 {
  font-size: 1.28rem;
}

.seller-login {
  display: grid;
  min-height: 0;
  padding: 28px;
  place-items: center;
  overflow-y: auto;
  background:
    linear-gradient(rgba(244, 248, 245, 0.92), rgba(235, 243, 238, 0.95)),
    url("assets/topography.svg") center / 760px;
}

.seller-login-card {
  display: grid;
  width: min(460px, 100%);
  gap: 16px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(0, 54, 58, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(0, 35, 42, 0.14);
}

.seller-login-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: #073f46;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.seller-login-card h3 {
  margin: -7px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
}

.seller-login-card > p:not(.admin-eyebrow) {
  margin: 0;
  color: #657174;
  font-size: 0.82rem;
  line-height: 1.55;
}

.seller-login-card form {
  display: grid;
  gap: 15px;
}

.seller-workspace {
  display: grid;
  min-height: 0;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.seller-dashboard-sidebar {
  display: flex;
  min-width: 0;
  padding: 24px 18px 18px;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 16% 9%, rgba(38, 129, 125, 0.38), transparent 31%),
    #062f37;
}

.seller-session-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 7px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.seller-user-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  color: #062f37;
  background: var(--gold);
  font-size: 0.62rem;
  font-weight: 950;
}

.seller-dashboard-sidebar .seller-user-chip strong {
  color: #fff;
  font-size: 0.74rem;
}

.seller-dashboard-sidebar .seller-user-chip small {
  color: rgba(255, 255, 255, 0.6);
}

.seller-dashboard-nav {
  display: grid;
  gap: 7px;
  margin-top: 22px;
}

.seller-dashboard-nav button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.seller-dashboard-nav button > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
}

.seller-dashboard-nav button > span:last-child {
  display: grid;
  gap: 2px;
}

.seller-dashboard-nav strong,
.seller-dashboard-nav small {
  font-size: 0.68rem;
}

.seller-dashboard-nav small {
  color: inherit;
  font-size: 0.52rem;
  font-weight: 650;
}

.seller-dashboard-nav button:hover,
.seller-dashboard-nav button:focus-visible,
.seller-dashboard-nav button.active {
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.seller-dashboard-nav button.active > span:first-child {
  color: #062f37;
  background: var(--gold);
}

.seller-dashboard-sidebar-note {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.seller-dashboard-sidebar-note strong {
  color: #fff;
  font-size: 0.62rem;
}

.seller-dashboard-sidebar-note span {
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.52rem;
  line-height: 1.5;
}

.seller-dashboard-logout {
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: 800 0.62rem/1 "Montserrat Local", Arial, sans-serif;
  cursor: pointer;
}

.seller-dashboard-main {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(22px, 3vw, 42px);
  background: #f3f6f4;
}

.seller-dashboard-view {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.seller-dashboard-view[hidden],
[data-admin-only][hidden] {
  display: none !important;
}

.seller-dashboard-view-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.seller-dashboard-view-header h3,
.seller-dashboard-view-header p {
  margin: 0;
}

.seller-dashboard-view-header h3 {
  margin-top: 5px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  letter-spacing: -0.045em;
}

.seller-dashboard-view-header p {
  margin-top: 8px;
  color: #6a7678;
  font-size: 0.78rem;
}

.seller-dashboard-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(0, 88, 78, 0.14);
  border-radius: 999px;
  color: #28756a;
  background: #e7f3ed;
  font-size: 0.6rem;
  font-weight: 850;
}

.seller-dashboard-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19b965;
  box-shadow: 0 0 0 4px rgba(25, 185, 101, 0.12);
}

.seller-dashboard-inventory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: start;
  gap: 20px;
}

.seller-dashboard-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid rgba(0, 44, 50, 0.11);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 38, 43, 0.06);
}

.seller-dashboard-card .seller-lot-browser {
  padding: 0;
  border: 0;
}

.seller-dashboard-card .seller-lot-grid {
  max-height: 420px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.seller-dashboard-card .seller-lot-grid button {
  min-height: 66px;
  padding: 11px;
}

.seller-editor-head {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 34, 43, 0.09);
}

.seller-editor-head span {
  color: #18857f;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seller-editor-head h4 {
  margin: 4px 0 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.seller-access-admin {
  width: min(1120px, 100%);
  gap: 20px;
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(0, 44, 50, 0.11);
  border-top: 5px solid #16847e;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 38, 43, 0.07);
}

.seller-access-head h3 {
  font-size: 1.25rem;
}

.seller-access-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.seller-access-fieldset {
  padding: 18px;
  border: 1px solid rgba(0, 44, 50, 0.1);
  border-radius: 9px;
  background: #f6f9f7;
}

.seller-access-fieldset legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 0.74rem;
}

.seller-access-fieldset > p {
  margin: 0 0 12px;
  color: #738083;
  font-size: 0.62rem;
  line-height: 1.45;
}

.seller-danger-button {
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(197, 61, 58, 0.2);
  border-radius: 6px;
  color: #b73f3d;
  background: #fff4f3;
  font: 850 0.72rem/1 "Montserrat Local", Arial, sans-serif;
  cursor: pointer;
}

.seller-danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 1100px) {
  .seller-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .seller-dashboard-inventory-grid {
    grid-template-columns: 1fr;
  }

  .seller-dashboard-card .seller-lot-grid {
    max-height: 330px;
  }
}

@media (max-width: 760px) {
  .project-card-media {
    height: 220px;
  }

  .golden-map-stage {
    height: 430px;
    min-height: 430px;
  }

  .golden-map,
  .golden-map-stage.is-ready .golden-map {
    width: 100%;
    max-width: none;
    transform: none;
  }

  .golden-map-controls {
    top: 12px;
  }

  .seller-panel-fab {
    right: 12px;
    bottom: 12px;
    width: 48px;
    min-height: 48px;
    border-radius: 10px;
  }

  .seller-panel {
    grid-template-rows: 66px minmax(0, 1fr);
  }

  .seller-panel-header {
    min-height: 66px;
    padding: 10px 14px;
  }

  .seller-panel-brand img {
    width: 32px;
    height: 32px;
  }

  .seller-panel-header h2 {
    font-size: 1rem;
  }

  .seller-icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .seller-login {
    padding: 14px;
  }

  .seller-login-card {
    padding: 24px 20px;
  }

  .seller-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .seller-dashboard-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .seller-session-card {
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .seller-user-avatar {
    display: none;
  }

  .seller-dashboard-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
  }

  .seller-dashboard-nav button {
    min-height: 44px;
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 6px 9px;
  }

  .seller-dashboard-nav button > span:first-child {
    width: 24px;
    height: 24px;
  }

  .seller-dashboard-nav small,
  .seller-dashboard-sidebar-note {
    display: none;
  }

  .seller-dashboard-logout {
    min-height: 36px;
    margin: 0;
    padding: 0 10px;
  }

  .seller-dashboard-main {
    padding: 18px 14px 30px;
  }

  .seller-dashboard-view-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .seller-dashboard-view-header h3 {
    font-size: 1.75rem;
  }

  .seller-dashboard-card {
    padding: 16px;
  }

  .seller-dashboard-card .seller-project-grid,
  .seller-access-admin .seller-project-grid,
  .seller-access-columns {
    grid-template-columns: 1fr;
  }

  .seller-dashboard-card .seller-lot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 310px;
  }

  .seller-access-admin {
    padding: 18px 15px;
  }

  .seller-access-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .seller-access-head .seller-secondary-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .seller-dashboard-card .seller-lot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-dashboard-nav small {
    display: none;
  }
}

/* Panel comercial con roles, permisos e inventario navegable. */
.seller-panel {
  width: min(540px, 100%);
}

[data-permission][hidden],
#sellerAccessAdmin[hidden] {
  display: none !important;
}

.seller-user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.seller-user-chip > span {
  display: grid;
  min-width: 0;
}

.seller-user-chip strong,
.seller-user-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-user-chip strong {
  color: var(--ink);
  font-size: 0.72rem;
}

.seller-user-chip small {
  margin-top: 2px;
  color: #758184;
  font-size: 0.58rem;
  font-weight: 750;
}

.seller-lot-browser {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(0, 34, 43, 0.12);
  border-radius: 6px;
  background: #fff;
}

.seller-lot-browser-head,
.seller-access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seller-lot-browser-head > div {
  display: grid;
  gap: 2px;
}

.seller-lot-browser-head span,
.seller-access-head span {
  color: #18857f;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seller-lot-browser-head strong {
  font-size: 0.82rem;
}

.seller-lot-browser-head small {
  color: #748083;
  font-size: 0.62rem;
  font-weight: 800;
}

.seller-lot-search {
  position: relative;
  display: flex;
  align-items: center;
}

.seller-lot-search span {
  position: absolute;
  left: 12px;
  color: #69797a;
  pointer-events: none;
}

.seller-lot-search input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 36px;
  border: 1px solid rgba(0, 34, 43, 0.16);
  border-radius: 5px;
  outline: none;
  color: var(--ink);
  background: #f5f7f5;
  font: 750 0.72rem/1 "Montserrat Local", Arial, sans-serif;
}

.seller-lot-search input:focus {
  border-color: #16847e;
  box-shadow: 0 0 0 3px rgba(22, 132, 126, 0.1);
}

.seller-lot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  max-height: 176px;
  overflow-y: auto;
  padding-right: 3px;
}

.seller-lot-grid button {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(0, 34, 43, 0.12);
  border-radius: 5px;
  color: var(--ink);
  background: #f8faf8;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.seller-lot-grid button::before {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d8887;
  content: "";
}

.seller-lot-grid button.available::before { background: var(--gold); }
.seller-lot-grid button.reserved::before { background: #4fa8c8; }
.seller-lot-grid button.sold::before { background: #e45c58; }

.seller-lot-grid button strong,
.seller-lot-grid button small {
  overflow: hidden;
  padding-right: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-lot-grid button strong { font-size: 0.66rem; }
.seller-lot-grid button small { color: #7a8586; font-size: 0.54rem; }

.seller-lot-grid button:hover,
.seller-lot-grid button:focus-visible,
.seller-lot-grid button.active {
  border-color: #16847e;
  outline: none;
  background: #e9f3ef;
  box-shadow: 0 0 0 2px rgba(22, 132, 126, 0.1);
}

.seller-lot-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  color: #758083;
  text-align: center;
  font-size: 0.68rem;
}

.seller-access-admin {
  display: grid;
  gap: 15px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(0, 34, 43, 0.13);
  border-top: 4px solid #16847e;
  border-radius: 7px;
  background: #eef4f0;
}

.seller-access-head h3 {
  margin: 3px 0 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.seller-access-head .seller-secondary-button {
  min-height: 38px;
  padding: 0 12px;
}

.seller-access-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.seller-access-fieldset legend {
  margin-bottom: 8px;
  color: #526165;
  font-size: 0.7rem;
  font-weight: 850;
}

.seller-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.seller-permission-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 34, 43, 0.1);
  border-radius: 4px;
  background: #fff;
  font-size: 0.64rem;
  font-weight: 760;
}

.seller-permission-grid input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: #16847e;
}

.seller-danger-button {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(195, 65, 62, 0.26);
  border-radius: 6px;
  color: #a83835;
  background: #fff;
  font: 850 0.72rem/1 "Montserrat Local", Arial, sans-serif;
  cursor: pointer;
}

.seller-danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 520px) {
  .seller-lot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seller-permission-grid {
    grid-template-columns: 1fr;
  }
}

/* Galería audiovisual de urbanizaciones. */
.urbanization-reels {
  display: grid;
  gap: 30px;
  margin-top: clamp(70px, 8vw, 120px);
}

.urbanization-reels-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.urbanization-reels-head h3,
.urbanization-reels-head p {
  margin: 0;
}

.urbanization-reels-head h3 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: 0;
}

.urbanization-reels-head > p {
  max-width: 470px;
  color: #697477;
  font-size: 0.95rem;
  line-height: 1.5;
}

.urbanization-reels-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.urbanization-reel {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 16 / 10;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #0b2d31;
  text-align: left;
  box-shadow: 0 14px 34px rgba(0, 35, 40, 0.13);
  cursor: pointer;
}

.urbanization-reel:nth-child(4),
.urbanization-reel:nth-child(5) {
  grid-column: span 6;
  aspect-ratio: 16 / 8;
}

.urbanization-reel::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 38%, rgba(0, 24, 30, 0.86) 100%);
  transition: background 180ms ease;
}

.urbanization-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 180ms ease;
}

.urbanization-reel:hover img,
.urbanization-reel:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}

.urbanization-reel:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 3px;
}

.urbanization-play {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.88rem;
  box-shadow: 0 10px 24px rgba(0, 23, 31, 0.24);
}

.urbanization-reel-copy {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: grid;
  gap: 4px;
}

.urbanization-reel-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
}

.urbanization-reel-copy strong {
  overflow: hidden;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.urbanization-video-dialog {
  width: min(1120px, calc(100% - 40px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #031e25;
  box-shadow: 0 30px 90px rgba(0, 14, 18, 0.48);
}

.urbanization-video-dialog::backdrop {
  background: rgba(0, 17, 22, 0.8);
  backdrop-filter: blur(8px);
}

.urbanization-video-shell header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

.urbanization-video-shell header span {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.urbanization-video-shell h2 {
  margin: 3px 0 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.urbanization-video-shell header button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.6rem;
  cursor: pointer;
}

.urbanization-video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

@media (max-width: 900px) {
  .urbanization-reels-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .urbanization-reel,
  .urbanization-reel:nth-child(4),
  .urbanization-reel:nth-child(5) {
    grid-column: span 6;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 620px) {
  .urbanization-reels {
    margin-top: 60px;
  }

  .urbanization-reels-grid {
    grid-template-columns: 1fr;
  }

  .urbanization-reel,
  .urbanization-reel:nth-child(4),
  .urbanization-reel:nth-child(5) {
    grid-column: auto;
    aspect-ratio: 16 / 10;
  }

  .urbanization-video-dialog {
    width: calc(100% - 20px);
  }
}

/* Ajuste final de la historia para respetar la composicion de las paginas 2 y 3 del PDF. */
@media (min-width: 1101px) {
  .history {
    height: clamp(1800px, 112.5vw, 2880px);
    min-height: 0;
    padding: 80px 0 90px;
  }

  .history-grid {
    min-height: 500px;
  }

  .history h1 {
    font-size: clamp(3.2rem, 3.8vw, 5rem);
  }

  .history-copy p:not(.section-kicker) {
    margin-top: 68px;
    font-size: clamp(1rem, 1.05vw, 1.35rem);
  }

  .history-copy p + p {
    margin-top: 26px;
  }

  .stats-wrap {
    gap: 32px 44px;
    padding-top: 50px;
  }

  .glass-stat {
    min-height: 178px;
    border-radius: 34px;
  }

  .glass-stat strong {
    font-size: clamp(2.8rem, 3.2vw, 4.5rem);
  }

  .glass-stat span {
    font-size: clamp(0.9rem, 1vw, 1.18rem);
  }

  .timeline {
    grid-template-rows: repeat(5, minmax(0, auto));
    row-gap: 38px;
    margin-top: 0;
  }

  .timeline .milestone {
    min-height: 0;
  }

  .timeline .milestone:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline .milestone:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .timeline .milestone:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .timeline .milestone:nth-child(5) {
    grid-column: 2;
    grid-row: 4;
  }

  .timeline .milestone:nth-child(6) {
    grid-column: 1;
    grid-row: 5;
  }

  .milestone h3 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 2.3vw, 3rem);
  }

  .milestone p {
    font-size: clamp(0.95rem, 1vw, 1.22rem);
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .history {
    height: clamp(1900px, 133.4vw, 2732px);
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .history {
    height: auto;
    min-height: 2400px;
  }

  .milestone,
  .milestone.left,
  .milestone.right {
    min-height: 230px;
  }
}

/* Disponibilidad interactiva: 2D, 3D y gestion local de precios. */
.terrain-section {
  display: block !important;
  min-height: 100vh;
  scroll-margin-top: 120px;
  padding: clamp(82px, 8vw, 150px) 0 120px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 194, 28, 0.1), transparent 28%),
    #fff;
}

.terrain-section .section-head {
  max-width: 1120px;
}

.terrain-section .section-head h2 {
  max-width: 980px;
}

.terrain-section .section-head p:last-child {
  max-width: 860px;
}

.terrain-section .availability-grid {
  align-items: stretch;
}

.terrain-section .plan-stage .terrain-toolbar,
.terrain-section .plan-stage .terrain-filters,
.terrain-section .plan-stage .zoom-label {
  opacity: 1;
  pointer-events: auto;
}

.terrain-section .plan-card {
  min-height: clamp(650px, 55vw, 900px);
}

.terrain-section .terrain-view-controls {
  flex-wrap: wrap;
}

.terrain-view-controls [data-terrain-view="2d"] span {
  font-size: 0.93rem;
}

.terrain-view-controls [data-terrain-view="3d"] span {
  color: #0b788d;
  font-size: 1.1rem;
}

.terrain-view-controls [data-terrain-view="2d"].active span {
  color: var(--ink);
}

.plan-stage.terrain-view-2d #terrainCanvas,
.plan-stage.terrain-view-2d .terrain-markers {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none;
}

.plan-stage.terrain-view-2d .terrain-fallback-map {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  transition: none;
}

.plan-stage.terrain-view-3d #terrainCanvas {
  opacity: 1 !important;
  pointer-events: auto;
  transition: none;
}

.plan-stage.terrain-view-3d .terrain-fallback-map {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none;
}

.lot-chip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.lot-status-chip.offer {
  color: #fff;
  background: #0c8d83;
}

.lot-admin-panel {
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid rgba(0, 23, 31, 0.12);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(0, 23, 31, 0.06);
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-panel-heading h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.admin-eyebrow {
  color: #0a7d88;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-local-badge {
  padding: 5px 7px;
  border-radius: 4px;
  color: #6f797b;
  background: #eef3f1;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-field {
  display: grid;
  gap: 6px;
  color: #687578;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-field select,
.admin-field input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(0, 23, 31, 0.16);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
}

.admin-status-field {
  margin: 16px 0;
  padding: 0;
  border: 0;
}

.admin-status-field legend {
  margin-bottom: 7px;
  color: #687578;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.admin-status-grid button,
.admin-save,
.admin-reset {
  min-height: 35px;
  padding: 0 8px;
  border: 1px solid rgba(0, 23, 31, 0.13);
  border-radius: 5px;
  color: var(--ink);
  background: #f5f7f5;
  cursor: pointer;
  font: 800 0.68rem "Montserrat Local", Arial, sans-serif;
}

.admin-status-grid button.active {
  border-color: var(--gold);
  background: var(--gold);
}

.admin-status-grid button[data-admin-status="reserved"].active {
  border-color: #4fa8c8;
  color: #fff;
  background: #4fa8c8;
}

.admin-status-grid button[data-admin-status="sold"].active {
  border-color: #e45c58;
  color: #fff;
  background: #e45c58;
}

.admin-status-grid button[data-admin-status="review"].active {
  border-color: #788382;
  color: #fff;
  background: #788382;
}

.admin-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-offer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  color: #526165;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-offer-toggle input {
  accent-color: var(--gold-dark);
}

.admin-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.admin-save {
  border-color: var(--gold);
  background: var(--gold);
}

.admin-reset {
  color: #687578;
  background: transparent;
}

.admin-feedback {
  min-height: 26px;
  margin: 10px 0 0;
  color: #778285;
  font-size: 0.62rem;
  line-height: 1.35;
}

.admin-feedback.error {
  color: #c94d4a;
}

@media (max-width: 1180px) {
  .terrain-section .plan-card {
    min-height: 720px;
  }
}

@media (max-width: 760px) {
  .terrain-section {
    padding-top: 74px;
  }

  .terrain-section .plan-card {
    min-height: 620px;
  }

  .terrain-view-controls {
    width: 100%;
  }

  .terrain-view-controls button {
    flex: 1 1 auto;
  }

  .admin-price-grid {
    grid-template-columns: 1fr;
  }
}

/* Golden Days */
.golden-days {
  overflow: hidden;
  padding: 138px 0 0;
  background: #f2f5f2;
}

.golden-days::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 560px;
  pointer-events: none;
  background: url("assets/topography.svg") center top / 860px auto;
  opacity: 0.14;
}

.golden-days-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 58px;
}

.golden-days-heading > div {
  max-width: 980px;
}

.golden-days-heading h2 {
  margin: 10px 0 18px;
  color: var(--ink);
  font-size: clamp(3.5rem, 5.6vw, 7rem);
  font-weight: 900;
  line-height: 0.92;
}

.golden-days-heading > div > p:last-child {
  max-width: 820px;
  margin: 0;
  color: #566366;
  font-size: clamp(1rem, 1.3vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
}

.golden-days-cta {
  flex: 0 0 auto;
  min-width: 290px;
  color: #fff;
  border-color: rgba(0, 49, 59, 0.9);
  background: #00313b;
  box-shadow: 0 16px 34px rgba(0, 35, 43, 0.2);
}

.golden-days-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(650px, 78svh, 920px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(245, 248, 246, 0.98), rgba(193, 207, 199, 0.96)),
    #d9e2dd;
}

.golden-days-stage canvas,
.golden-days-poster,
.golden-days-stage-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.golden-days-stage canvas {
  z-index: 2;
  display: block;
  touch-action: none;
  cursor: grab;
}

.golden-days-stage canvas:active {
  cursor: grabbing;
}

.golden-days-poster {
  z-index: 3;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.golden-days-stage.is-ready .golden-days-poster {
  opacity: 0;
  visibility: hidden;
}

.golden-days-stage-shade {
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 27, 34, 0.1), transparent 24%, transparent 68%, rgba(0, 27, 34, 0.2));
}

.golden-days-mark {
  position: absolute;
  z-index: 6;
  bottom: 30px;
  left: max(30px, calc((100vw - 1710px) / 2));
  display: grid;
  gap: 2px;
  min-width: 245px;
  padding: 16px 22px 17px;
  border-left: 5px solid var(--gold);
  border-radius: 0 6px 6px 0;
  color: #fff;
  background: rgba(0, 35, 43, 0.88);
  box-shadow: 0 14px 34px rgba(0, 24, 31, 0.22);
  backdrop-filter: blur(12px);
}

.golden-days-mark span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.golden-days-mark strong {
  font-size: 1.25rem;
  font-weight: 900;
}

.golden-days-controls {
  position: absolute;
  z-index: 7;
  top: 28px;
  right: max(28px, calc((100vw - 1710px) / 2));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 7px;
  background: rgba(248, 250, 249, 0.88);
  box-shadow: 0 16px 34px rgba(0, 24, 31, 0.2);
  backdrop-filter: blur(15px);
}

.golden-days-controls button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-right: 1px solid rgba(0, 38, 48, 0.1);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.golden-days-controls button:last-child {
  border-right: 0;
}

.golden-days-controls button:hover,
.golden-days-controls button:focus-visible,
.golden-days-controls button[aria-pressed="true"] {
  outline: none;
  background: var(--gold);
}

.golden-days-loading,
.golden-days-error {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(0, 24, 31, 0.2);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
}

.golden-days-loading > span {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(0, 38, 48, 0.16);
  border-top-color: var(--gold-dark);
  border-radius: 50%;
  animation: terrain-spin 0.8s linear infinite;
}

.golden-days-stage.is-ready .golden-days-loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.golden-days-error {
  bottom: auto;
  top: 50%;
  display: grid;
  min-width: 280px;
  padding: 18px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.golden-days-error[hidden] {
  display: none;
}

.golden-days-error button {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: var(--gold);
  cursor: pointer;
  font-weight: 900;
}

.golden-days-stage:fullscreen {
  height: 100svh;
  background: #d9e2dd;
}

@media (max-width: 1180px) {
  .golden-days {
    padding-top: 110px;
  }

  .golden-days-heading {
    align-items: start;
    gap: 34px;
  }

  .golden-days-stage {
    height: clamp(620px, 72svh, 800px);
  }
}

@media (max-width: 760px) {
  .golden-days {
    padding-top: 82px;
  }

  .golden-days-heading {
    display: grid;
    gap: 28px;
    padding-bottom: 40px;
  }

  .golden-days-heading h2 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .golden-days-cta {
    width: 100%;
    min-width: 0;
    min-height: 58px;
  }

  .golden-days-stage {
    height: 68svh;
    min-height: 520px;
  }

  .golden-days-poster {
    object-fit: contain;
  }

  .golden-days-controls {
    top: 14px;
    right: 14px;
  }

  .golden-days-controls button {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .golden-days-mark {
    bottom: 14px;
    left: 14px;
    min-width: 0;
    padding: 12px 15px;
  }

  .golden-days-loading {
    top: 72px;
    bottom: auto;
    font-size: 0.72rem;
  }
}

@media (min-width: 1181px) and (max-width: 1919px) {
  .site-header {
    gap: clamp(18px, 1.6vw, 30px);
  }

  .brand {
    width: clamp(190px, 12vw, 230px);
  }

  .main-nav {
    gap: clamp(16px, 1.45vw, 28px);
    padding: 0 clamp(22px, 1.9vw, 34px);
    font-size: clamp(0.76rem, 0.9vw, 0.96rem);
  }

  .contact-pill {
    padding: 0 28px;
    font-size: clamp(0.76rem, 0.9vw, 0.94rem);
  }
}

@media (min-width: 1920px) {
  .site-header {
    left: calc(50% + 54px);
    padding-left: 34px;
  }
}

@media (min-width: 1600px) and (max-width: 1919px) {
  .site-header {
    left: calc(50% + 55px);
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 54px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Catalogo comercial compartido */
.lot-panel-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.commercial-sync-badge,
.seller-session-row > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #526165;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.commercial-sync-badge i,
.seller-session-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19b965;
  box-shadow: 0 0 0 4px rgba(25, 185, 101, 0.12);
}

.commercial-sync-badge.offline i {
  background: #c25753;
  box-shadow: 0 0 0 4px rgba(194, 87, 83, 0.12);
}

.seller-panel-trigger,
.seller-panel-fab,
.seller-primary-button,
.seller-secondary-button,
.seller-icon-button,
.seller-session-row button,
.seller-status-grid button {
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
}

.seller-panel-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  color: var(--ink);
  background: #f0f4f2;
  font-size: 0.68rem;
}

.seller-panel-trigger:hover,
.seller-panel-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.seller-panel-fab {
  position: fixed;
  z-index: 880;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  background: rgba(0, 36, 45, 0.94);
  box-shadow: 0 14px 34px rgba(0, 23, 31, 0.24);
  backdrop-filter: blur(12px);
}

.seller-panel-fab:hover,
.seller-panel-fab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.seller-panel-open {
  overflow: hidden;
}

.seller-panel-overlay {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 23, 31, 0.48);
  opacity: 0;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(4px);
}

.seller-panel-overlay[hidden],
.seller-login[hidden],
.seller-workspace[hidden],
#sellerGoldenIdentity[hidden],
#sellerNewUnit[hidden] {
  display: none !important;
}

.seller-panel-overlay.visible {
  opacity: 1;
}

.seller-panel {
  width: min(470px, 100%);
  height: 100svh;
  overflow-y: auto;
  padding: 26px;
  color: var(--ink);
  background: #f8faf8;
  box-shadow: -24px 0 60px rgba(0, 23, 31, 0.28);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.seller-panel-overlay.visible .seller-panel {
  transform: translateX(0);
}

.seller-panel-header {
  position: sticky;
  z-index: 2;
  top: -26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -26px -26px 24px;
  padding: 25px 26px 20px;
  border-bottom: 1px solid rgba(0, 34, 43, 0.1);
  background: rgba(248, 250, 248, 0.96);
  backdrop-filter: blur(14px);
}

.seller-panel-header h2 {
  margin: 3px 0 0;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.seller-icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--ink);
  background: #e8eeeb;
  font-size: 1.55rem;
  line-height: 1;
}

.seller-login > p {
  margin: 0 0 20px;
  color: #647074;
  font-size: 0.9rem;
  line-height: 1.45;
}

.seller-login form,
.seller-workspace {
  display: grid;
  gap: 18px;
}

.seller-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 34, 43, 0.1);
}

.seller-session-row button {
  padding: 8px 10px;
  color: #667276;
  background: transparent;
  font-size: 0.68rem;
}

.seller-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.seller-field {
  display: grid;
  gap: 7px;
  color: #526165;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.seller-field input,
.seller-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(0, 34, 43, 0.18);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font: 750 0.82rem/1.2 "Montserrat", Arial, sans-serif;
  letter-spacing: 0;
}

.seller-field input:focus,
.seller-field select:focus {
  border-color: var(--gold-dark);
  outline: 2px solid rgba(255, 194, 26, 0.18);
}

.seller-field input:disabled,
.seller-field select:disabled {
  color: #778184;
  background: #edf1ef;
}

.seller-status-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.seller-status-field legend {
  margin-bottom: 8px;
  color: #526165;
  font-size: 0.72rem;
  font-weight: 800;
}

.seller-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.seller-status-grid button {
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(0, 34, 43, 0.14);
  color: var(--ink);
  background: #fff;
  font-size: 0.72rem;
}

.seller-status-grid button.active[data-seller-status="available"] { border-color: var(--gold); background: var(--gold); }
.seller-status-grid button.active[data-seller-status="reserved"] { border-color: #4fa8c8; color: #fff; background: #4fa8c8; }
.seller-status-grid button.active[data-seller-status="sold"] { border-color: #e45c58; color: #fff; background: #e45c58; }
.seller-status-grid button.active[data-seller-status="review"] { border-color: #788382; color: #fff; background: #788382; }

.seller-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #526165;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.seller-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--gold-dark);
}

.seller-color-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(0, 34, 43, 0.12);
  border-radius: 6px;
  background: #fff;
}

.seller-color-field {
  display: grid;
  gap: 7px;
  color: #526165;
  font-size: 0.72rem;
  font-weight: 800;
}

.seller-color-field input {
  width: 72px;
  height: 38px;
  padding: 3px;
  border: 1px solid rgba(0, 34, 43, 0.16);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.seller-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.seller-primary-button,
.seller-secondary-button {
  min-height: 48px;
  padding: 0 16px;
  font-size: 0.76rem;
}

.seller-primary-button {
  color: var(--ink);
  background: var(--gold);
}

.seller-secondary-button {
  border: 1px solid rgba(0, 34, 43, 0.16);
  color: #5e6b6e;
  background: #fff;
}

.seller-primary-button:disabled,
.seller-secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.seller-feedback {
  min-height: 20px;
  margin: 0;
  color: #147b57;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.seller-feedback.error {
  color: #bd4643;
}

.seller-project-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 34, 43, 0.1);
  color: #788184;
  font-size: 0.68rem;
  line-height: 1.45;
}

.lot-color-swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 34, 43, 0.2);
}

.selected-lot {
  border-left-color: var(--lot-accent, var(--gold));
}

/* Ritmo vertical uniforme entre secciones. */
@media (min-width: 1181px) {
  .portfolio { padding-top: 112px; padding-bottom: 124px; }
  .golden-days { padding-top: 104px; }
  .golden-days-heading { padding-bottom: 44px; }
  .golden-days-stage { height: clamp(620px, 72svh, 820px); }
  .altos { padding-top: 112px; padding-bottom: 112px; }
  .terrain-section { padding-top: 96px; padding-bottom: 104px; }
  .calculator { padding-top: 120px; padding-bottom: 120px; }
  .location { padding-top: 110px; padding-bottom: 110px; }
  .contact { padding-top: 120px; padding-bottom: 120px; }
  .terrain-section .availability-grid { align-items: start; }
  .lot-panel { top: 112px; }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .portfolio,
  .altos,
  .calculator,
  .location,
  .contact { padding-top: 96px; padding-bottom: 96px; }
  .terrain-section { padding-top: 84px; padding-bottom: 96px; }
  .golden-days { padding-top: 88px; }
  .golden-days-heading { padding-bottom: 42px; }
}

@media (max-width: 760px) {
  .portfolio,
  .altos,
  .calculator,
  .location,
  .contact { padding-top: 72px; padding-bottom: 72px; }
  .terrain-section { padding-top: 68px; padding-bottom: 78px; }
  .golden-days { padding-top: 68px; }
  .golden-days-heading { padding-bottom: 32px; }
  .golden-days-stage { height: 62svh; min-height: 500px; }
  .lot-panel-tools { align-items: flex-start; }
  .commercial-sync-badge { padding-top: 11px; }
  .seller-panel-fab { right: 12px; bottom: 12px; width: 48px; padding: 0; justify-content: center; }
  .seller-panel-fab strong { display: none; }
  .seller-panel { padding: 20px; }
  .seller-panel-header { top: -20px; margin: -20px -20px 20px; padding: 20px; }
  .seller-project-grid { grid-template-columns: 1fr; }
  .seller-color-row { align-items: flex-start; flex-direction: column; }
  .seller-actions { grid-template-columns: 1fr; }
}

/* Golden Days: masterplan comercial 2D */
@media (min-width: 1181px) {
  .golden-days {
    padding: 0;
  }
}

.golden-days {
  position: relative;
  overflow: hidden;
  min-height: auto;
  border-radius: 0;
  background: #eef2ed;
}

.golden-days::before {
  display: none;
}

.golden-map-app {
  position: relative;
  width: 100%;
  min-width: 0;
  background: #f8faf7;
}

.golden-map-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(215px, auto) minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px clamp(18px, 3vw, 52px);
  border-block: 1px solid rgba(0, 34, 43, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 34px rgba(1, 32, 33, 0.08);
}

.golden-map-project,
.golden-map-search,
.golden-map-filter-toggle,
.golden-map-view-switch {
  min-width: 0;
}

.golden-map-project {
  display: flex;
  align-items: center;
  gap: 12px;
}

.golden-map-project img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.golden-map-project h2,
.golden-map-project span {
  margin: 0;
  letter-spacing: 0;
}

.golden-map-project h2 {
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.05;
}

.golden-map-project span {
  display: block;
  margin-top: 3px;
  color: #778282;
  font-size: 0.68rem;
  font-weight: 700;
}

.golden-map-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: center;
  width: min(100%, 560px);
}

.golden-map-search > span {
  position: absolute;
  left: 15px;
  z-index: 1;
  color: #51706b;
  font-size: 1.2rem;
  pointer-events: none;
}

.golden-map-search input {
  width: 100%;
  height: 46px;
  padding: 0 18px 0 44px;
  border: 1px solid rgba(0, 46, 50, 0.14);
  border-radius: 5px;
  outline: none;
  color: var(--ink);
  background: #f4f7f4;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.golden-map-search input:focus {
  border-color: #188a7d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(24, 138, 125, 0.12);
}

.golden-map-filter-toggle,
.golden-map-view-switch {
  height: 46px;
  border: 1px solid rgba(0, 46, 50, 0.13);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 34, 43, 0.06);
}

.golden-map-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.golden-map-filter-toggle small {
  max-width: 100px;
  overflow: hidden;
  color: #63716f;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.golden-map-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(62px, 1fr));
  overflow: hidden;
  padding: 3px;
}

.golden-map-view-switch button,
.golden-map-mode button {
  border: 0;
  border-radius: 3px;
  color: #62706e;
  background: transparent;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
}

.golden-map-view-switch button.active,
.golden-map-mode button.active {
  color: #fff;
  background: #083f43;
}

.golden-map-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(680px, calc(100svh - 80px), 920px);
  min-height: 680px;
  overflow: hidden;
  background: #dfe7e1;
  touch-action: none;
}

.golden-map-stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.66), transparent 34%),
    linear-gradient(145deg, #edf3ef 0%, #d4dfd8 55%, #c2d1c9 100%);
}

.golden-map {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 360ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.golden-map-stage.is-ready .golden-map {
  opacity: 1;
  transform: none;
}

.golden-map.is-dragging {
  cursor: grabbing;
}

.golden-map-ground {
  fill: #d9e3da;
}

.texture-mode .golden-map-ground {
  fill: url(#goldenGrassTexture);
}

.golden-contour {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.4;
  stroke-dasharray: 3 7;
}

.plan-mode .golden-contour {
  stroke: rgba(24, 74, 71, 0.12);
}

.golden-tree-shadow {
  fill: rgba(5, 38, 31, 0.18);
  filter: blur(2px);
}

.golden-tree-trunk {
  fill: #6f5035;
}

.golden-tree-crown {
  fill: url(#goldenTreeCanopy);
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1;
}

.golden-tree-highlight {
  fill: rgba(208, 224, 161, 0.22);
}

.plan-mode .golden-tree {
  opacity: 0.22;
}

.golden-access-shadow,
.golden-access-road,
.golden-block-road-shadow,
.golden-block-road {
  fill: none;
  stroke-linejoin: round;
}

.golden-access-shadow {
  stroke: rgba(17, 34, 34, 0.2);
  stroke-width: 50;
}

.golden-access-road {
  stroke: #f5f3ec;
  stroke-width: 38;
}

.golden-block-road-shadow {
  stroke: rgba(12, 38, 34, 0.2);
  stroke-width: 25;
}

.golden-block-road {
  fill: rgba(238, 240, 229, 0.82);
  stroke: #f3f2e9;
  stroke-width: 17;
  filter: drop-shadow(0 10px 12px rgba(5, 38, 31, 0.18));
}

.plan-mode .golden-block-road {
  fill: #eef2ed;
  stroke: #fff;
}

.golden-lot {
  --status-color: #829384;
  cursor: pointer;
  outline: none;
  transition: opacity 160ms ease;
}

.golden-lot.available { --status-color: #75a862; }
.golden-lot.reserved { --status-color: #4fa8c8; }
.golden-lot.sold { --status-color: #df5b56; }
.golden-lot.review { --status-color: #8b9789; }

.golden-lot-shape {
  fill: var(--golden-lot-color, var(--status-color));
  fill-opacity: 0.9;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  filter: url(#goldenLotShadow);
  transition: fill-opacity 150ms ease, stroke 150ms ease, stroke-width 150ms ease, filter 150ms ease;
}

.texture-mode .golden-lot-shape {
  fill-opacity: 0.82;
}

.golden-lot.review .golden-lot-shape {
  fill-opacity: 0.72;
}

.golden-lot:hover .golden-lot-shape,
.golden-lot:focus-visible .golden-lot-shape,
.golden-lot.search-match .golden-lot-shape {
  fill-opacity: 1;
  stroke: #fff8cf;
  stroke-width: 3;
  filter: drop-shadow(0 4px 7px rgba(0, 34, 43, 0.36));
}

.golden-lot.selected .golden-lot-shape {
  fill-opacity: 1;
  stroke: #ffc21a;
  stroke-width: 4;
  filter: drop-shadow(0 0 8px rgba(255, 194, 26, 0.9));
}

.golden-lot.filtered-out {
  opacity: 0.08;
  pointer-events: none;
}

.golden-lot-number {
  fill: rgba(0, 34, 43, 0.82);
  font-family: "Montserrat", sans-serif;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 2px;
}

.golden-lot.has-offer .golden-lot-number {
  fill: #9b6100;
}

.golden-road-label {
  fill: rgba(0, 52, 51, 0.44);
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.8px;
  pointer-events: none;
}

.golden-map-mode,
.golden-map-controls,
.golden-map-legend,
.golden-map-hint,
.golden-map-selection,
.golden-filter-panel {
  position: absolute;
  z-index: 8;
}

.golden-map-mode {
  top: 22px;
  left: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 218px;
  height: 44px;
  padding: 4px;
  border: 1px solid rgba(0, 34, 43, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 24px rgba(0, 34, 43, 0.14);
  backdrop-filter: blur(12px);
}

.golden-map-controls {
  top: 22px;
  right: 24px;
  display: grid;
  grid-template-columns: repeat(4, 48px);
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(0, 34, 43, 0.11);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 34, 43, 0.14);
  backdrop-filter: blur(12px);
}

.golden-map-controls button {
  border: 0;
  border-right: 1px solid rgba(0, 34, 43, 0.1);
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.golden-map-controls button:last-child {
  border-right: 0;
}

.golden-map-controls button:hover,
.golden-map-controls button:focus-visible {
  color: #fff;
  background: #0b5554;
}

.golden-filter-panel {
  top: 16px;
  right: clamp(210px, 17vw, 258px);
  display: grid;
  width: 220px;
  padding: 12px;
  border: 1px solid rgba(0, 34, 43, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 46px rgba(0, 34, 43, 0.18);
}

.golden-filter-panel[hidden] {
  display: none;
}

.golden-filter-panel strong {
  padding: 5px 7px 10px;
  color: #667371;
  font-size: 0.65rem;
}

.golden-filter-panel button {
  padding: 10px 11px;
  border: 0;
  border-radius: 3px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 760;
  cursor: pointer;
}

.golden-filter-panel button:hover,
.golden-filter-panel button.active {
  background: #e8efea;
}

.golden-map-legend {
  bottom: 22px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 34, 43, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 34, 43, 0.12);
  backdrop-filter: blur(10px);
}

.golden-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #425451;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.golden-map-legend i,
.golden-list-status i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b9789;
}

.golden-map-legend i.available,
.golden-list-card.available .golden-list-status i { background: #75a862; }
.golden-map-legend i.reserved,
.golden-list-card.reserved .golden-list-status i { background: #4fa8c8; }
.golden-map-legend i.sold,
.golden-list-card.sold .golden-list-status i { background: #df5b56; }
.golden-map-legend i.review,
.golden-list-card.review .golden-list-status i { background: #8b9789; }

.golden-map-hint {
  right: 24px;
  bottom: 24px;
  margin: 0;
  padding: 12px 15px;
  border-left: 3px solid #ffc21a;
  color: #fff;
  background: rgba(3, 48, 49, 0.9);
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 34, 43, 0.18);
}

.golden-map-hint[hidden] {
  display: none;
}

.golden-map-selection {
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 14px;
  width: min(360px, calc(100% - 48px));
  padding: 22px;
  border: 1px solid rgba(0, 34, 43, 0.11);
  border-top: 4px solid #8b9789;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 60px rgba(0, 30, 35, 0.24);
  backdrop-filter: blur(14px);
}

.golden-map-selection[hidden] {
  display: none;
}

.golden-map-selection[data-status="available"] { border-top-color: #75a862; }
.golden-map-selection[data-status="reserved"] { border-top-color: #4fa8c8; }
.golden-map-selection[data-status="sold"] { border-top-color: #df5b56; }

.golden-selection-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #edf1ee;
  font-size: 1rem;
  cursor: pointer;
}

.golden-selection-status {
  width: max-content;
  padding: 6px 9px;
  border-radius: 3px;
  color: #fff;
  background: #778382;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.golden-map-selection[data-status="available"] .golden-selection-status { background: #5f8f4e; }
.golden-map-selection[data-status="reserved"] .golden-selection-status { background: #3789ab; }
.golden-map-selection[data-status="sold"] .golden-selection-status { background: #d94e4a; }

.golden-map-selection h3 {
  max-width: calc(100% - 36px);
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.golden-map-selection dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.golden-map-selection dl div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(0, 34, 43, 0.08);
  background: #f6f8f5;
}

.golden-map-selection dt,
.golden-map-selection dd {
  margin: 0;
}

.golden-map-selection dt {
  color: #75817f;
  font-size: 0.62rem;
}

.golden-map-selection dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
}

.golden-map-selection p {
  margin: 0;
  color: #727e7c;
  font-size: 0.66rem;
  line-height: 1.5;
}

.golden-map-selection > a {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: #0f9f65;
  font-size: 0.72rem;
  font-weight: 900;
}

.golden-map-list-panel {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: auto;
  padding: clamp(78px, 8vw, 104px) clamp(24px, 5vw, 80px) 50px;
  background: rgba(244, 247, 243, 0.98);
}

.golden-map-list-panel[hidden] {
  display: none;
}

.golden-map-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto 28px;
}

.golden-map-list-head span {
  color: #17867d;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.golden-map-list-head h3 {
  margin: 4px 0 0;
  font-size: 1.7rem;
  letter-spacing: 0;
}

.golden-map-list-head button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(0, 34, 43, 0.14);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
}

.golden-map-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1280px;
  margin: auto;
}

.golden-list-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(0, 34, 43, 0.1);
  border-top: 3px solid #8b9789;
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font: inherit;
  box-shadow: 0 8px 22px rgba(0, 34, 43, 0.05);
  cursor: pointer;
}

.golden-list-card.available { border-top-color: #75a862; }
.golden-list-card.reserved { border-top-color: #4fa8c8; }
.golden-list-card.sold { border-top-color: #df5b56; }

.golden-list-card:hover,
.golden-list-card:focus-visible {
  border-color: #188a7d;
  box-shadow: 0 12px 28px rgba(0, 34, 43, 0.12);
}

.golden-list-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6d7977;
  font-size: 0.58rem;
  font-weight: 850;
  text-transform: uppercase;
}

.golden-list-card strong {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.golden-list-card small {
  color: #788280;
  font-size: 0.62rem;
}

.golden-list-card b {
  color: #0d6e67;
  font-size: 0.72rem;
}

.golden-list-empty {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px dashed rgba(0, 34, 43, 0.18);
  color: #687573;
  background: #fff;
  text-align: center;
}

.golden-map-stage:fullscreen {
  height: 100vh;
  min-height: 100vh;
  background: #dfe7e1;
}

@media (max-width: 1100px) {
  .golden-map-header {
    grid-template-columns: minmax(190px, auto) minmax(180px, 1fr) auto;
  }

  .golden-map-view-switch {
    display: none;
  }

  .golden-map-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .golden-days {
    padding: 0;
  }

  .golden-map-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 132px;
    padding: 12px 14px;
  }

  .golden-map-project img {
    width: 30px;
    height: 30px;
  }

  .golden-map-project h2 {
    font-size: 1rem;
  }

  .golden-map-project span {
    font-size: 0.58rem;
  }

  .golden-map-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .golden-map-search input {
    height: 42px;
  }

  .golden-map-filter-toggle {
    grid-column: 2;
    grid-row: 1;
    height: 40px;
    padding: 0 12px;
  }

  .golden-map-filter-toggle small {
    display: none;
  }

  .golden-map-stage {
    height: 690px;
    min-height: 690px;
  }

  .golden-map {
    width: 1180px;
    max-width: none;
    transform: translateX(-365px) scale(0.985);
  }

  .golden-map-stage.is-ready .golden-map {
    transform: translateX(-365px);
  }

  .golden-map-mode {
    top: 12px;
    left: 12px;
    width: 184px;
    height: 42px;
  }

  .golden-map-controls {
    top: 66px;
    right: 12px;
    grid-template-columns: 44px;
    height: auto;
  }

  .golden-map-controls button {
    width: 44px;
    height: 44px;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 34, 43, 0.1);
  }

  .golden-map-controls button:last-child {
    border-bottom: 0;
  }

  .golden-filter-panel {
    top: 12px;
    right: 12px;
    width: min(230px, calc(100% - 24px));
  }

  .golden-map-legend {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: space-between;
    gap: 7px;
    padding: 10px;
  }

  .golden-map-legend span {
    gap: 4px;
    font-size: 0.5rem;
  }

  .golden-map-legend i {
    width: 8px;
    height: 8px;
  }

  .golden-map-hint {
    right: auto;
    bottom: 68px;
    left: 12px;
    max-width: calc(100% - 78px);
  }

  .golden-map-selection {
    right: 12px;
    bottom: 64px;
    left: 12px;
    width: auto;
    padding: 18px;
  }

  .golden-map-selection h3 {
    font-size: 1.1rem;
  }

  .golden-map-selection dl div {
    padding: 10px;
  }

  .golden-map-list-panel {
    padding: 72px 14px 24px;
  }

  .golden-map-list-head {
    align-items: flex-start;
  }

  .golden-map-list-head h3 {
    font-size: 1.3rem;
  }

  .golden-map-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .golden-list-card {
    padding: 13px;
  }
}

@media (max-width: 390px) {
  .golden-map-project span {
    display: none;
  }

  .golden-map-legend span {
    font-size: 0;
  }

  .golden-map-legend span::after {
    font-size: 0.48rem;
  }

  .golden-map-legend span:nth-child(1)::after { content: "Disp."; }
  .golden-map-legend span:nth-child(2)::after { content: "Reserva"; }
  .golden-map-legend span:nth-child(3)::after { content: "Vendido"; }
  .golden-map-legend span:nth-child(4)::after { content: "Pendiente"; }
}

/* Ajuste final de proporcion para el encabezado y los accesos del hero. */
@media (min-width: 1181px) {
  .site-header {
    left: 50%;
    grid-template-columns: auto auto auto;
    justify-content: center;
    width: max-content;
    max-width: calc(100% - 64px);
    gap: 18px;
    padding-left: 0;
  }

  .brand {
    width: clamp(178px, 11vw, 218px);
  }

  .main-nav {
    min-height: 64px;
    gap: clamp(13px, 1vw, 20px);
    padding: 0 clamp(20px, 1.35vw, 28px);
    font-size: clamp(0.74rem, 0.8vw, 0.88rem);
  }

  .main-nav a.active::after {
    bottom: -8px;
  }

  .contact-pill {
    min-height: 64px;
    padding: 0 clamp(22px, 1.55vw, 30px);
    font-size: clamp(0.74rem, 0.8vw, 0.88rem);
  }

  .hero-actions {
    width: min(610px, 100%);
    gap: 16px;
  }

  .hero-actions .button {
    min-height: 66px;
  }

  .hero-actions .button-primary {
    justify-content: center;
    gap: 18px;
  }

  .hero-actions .button-primary .arrow-bubble {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .hero-actions .button-outline {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .hero-actions {
    width: calc(100% - 12px);
  }

  .hero-actions .button-outline {
    width: 100%;
  }

  .hero-actions .button-primary {
    justify-content: center;
    gap: 12px;
  }

  .hero-actions .button-primary .arrow-bubble {
    flex: 0 0 auto;
    margin-left: 0;
  }
}

/* Overrides finales: estas experiencias deben prevalecer sobre estilos heredados. */
.seller-panel-fab {
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 54px;
  min-height: 54px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: #073b43;
}

.seller-panel-fab svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.seller-panel-overlay {
  display: block;
  background: rgba(0, 23, 31, 0.36);
  backdrop-filter: blur(7px);
}

.seller-panel {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100svh;
  grid-template-rows: 78px minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  background: #f3f6f4;
  box-shadow: none;
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seller-panel-overlay.visible .seller-panel {
  opacity: 1;
  transform: none;
}

.seller-panel-header {
  position: relative;
  top: auto;
  min-height: 78px;
  margin: 0;
  padding: 14px clamp(18px, 2.5vw, 38px);
  background: rgba(255, 255, 255, 0.96);
}

.seller-panel-header h2 {
  font-size: 1.28rem;
}

.seller-workspace {
  display: grid;
  min-height: 0;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.seller-access-admin {
  width: min(1120px, 100%);
  gap: 20px;
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(0, 44, 50, 0.11);
  border-top: 5px solid #16847e;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 38, 43, 0.07);
}

.golden-map-stage {
  height: clamp(620px, calc(82svh - 30px), 820px);
  min-height: 620px;
  background: #e8efe9;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}

.golden-map-stage::before {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.95), transparent 38%),
    linear-gradient(145deg, #f3f7f3 0%, #e4ece6 50%, #d5e1d9 100%);
}

.golden-map,
.golden-map-stage.is-ready .golden-map {
  touch-action: pan-y;
}

.golden-map-mode {
  display: none !important;
}

.golden-map-ground {
  fill: #dfe9df;
}

.plan-mode .golden-tree {
  opacity: 0.7;
}

.plan-mode .golden-block-road {
  fill: #e9eee7;
  stroke: #fbfaf3;
  stroke-width: 19;
  filter: drop-shadow(0 8px 12px rgba(24, 62, 52, 0.14));
}

.golden-lot-shape,
.plan-mode .golden-lot-shape {
  fill-opacity: 0.94;
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 1.55;
  filter: drop-shadow(0 2px 3px rgba(12, 52, 43, 0.2));
}

@media (max-width: 1100px) {
  .seller-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .seller-panel-fab {
    right: 12px;
    bottom: 12px;
    width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 10px;
  }

  .seller-panel {
    grid-template-rows: 66px minmax(0, 1fr);
    padding: 0;
  }

  .seller-panel-header {
    top: auto;
    min-height: 66px;
    margin: 0;
    padding: 10px 14px;
  }

  .seller-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
  }

  .golden-map-stage {
    height: 430px;
    min-height: 430px;
  }

  .golden-map,
  .golden-map-stage.is-ready .golden-map {
    width: 100%;
    max-width: none;
    transform: none;
  }
}

.contact-link-text {
  display: grid;
  min-width: 0;
  gap: 5px;
  overflow-wrap: anywhere;
}

.contact-links a { column-gap: 12px; }
.contact-links small { color: #c1d7d8; }

.map-touch-open { display: none; }
html.map-explorer-open,
html.map-explorer-open body { overflow: hidden; overscroll-behavior: none; }
.map-explorer {
  color: var(--ink);
  background: #e8efe9;
}

.map-explorer[open] {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  border: 0;
  overflow: hidden;
}

.map-explorer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: #fff;
}

.map-explorer-header strong,
.map-explorer-header span { display: block; }
.map-explorer-header span { margin-top: 2px; color: #476265; font-size: .75rem; line-height: 1.35; }

.map-explorer-header button,
.map-touch-open {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #0c4247;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.map-explorer-stage { position: relative; min-height: 0; }
.map-explorer-stage > :is(.plan-stage, .golden-map-stage) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
}

.terrain-interaction { position: absolute; inset: 0; pointer-events: none; }
.terrain-view-2d .terrain-interaction { visibility: hidden; }
.terrain-interaction,
#terrainCanvas,
#terrainFallbackSvg { touch-action: pan-y; }
.map-explorer .golden-map-stage,
.map-explorer .golden-map-stage:is(.is-ready, .plan-mode) .golden-map,
.map-explorer .terrain-interaction,
.map-explorer #terrainCanvas,
.map-explorer #terrainFallbackSvg { touch-action: none; }

.map-explorer :is([data-golden-action="fullscreen"], [data-terrain-action="fullscreen"]) { display: none; }
.golden-map-controls { grid-template-columns: repeat(5, 48px); }
.map-explorer .golden-map-controls { grid-template-columns: repeat(4, 48px); }
.map-explorer .terrain-project-chip,
.map-explorer .golden-map-hint { display: none; }
.golden-map-stage.list-view .golden-map-selection,
.golden-map-stage.list-view .map-touch-open { display: none; }
.golden-lot-shape,
.plan-mode .golden-lot-shape { filter: none; }

@media (max-width: 1100px) {
  .golden-map-header {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 1fr) auto auto;
    gap: 12px;
  }
  .golden-map-view-switch { display: grid; }
}

@media (max-width: 760px) {
  .golden-map-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 0;
    padding: 12px;
  }

  .golden-map-project { grid-column: 1 / -1; }
  .golden-map-search input { height: 44px; font-size: 16px; }

  .golden-map-view-switch {
    grid-row: 3;
    justify-self: start;
  }

  .golden-map-filter-toggle { grid-row: 3; height: 44px; }
  .golden-map-view-switch { height: 52px; }
  .golden-map-view-switch button { min-height: 44px; }
  .golden-map-hint { display: none; }

  .golden-map-stage { height: clamp(355px, 64svh, 480px); min-height: 0; }
  .golden-map-stage.plan-mode .golden-map-controls,
  .map-explorer .golden-map-stage.plan-mode .golden-map-controls {
    top: 10px;
    right: 10px;
    grid-template-columns: repeat(4, 44px);
    height: auto;
  }

  .golden-map-stage.plan-mode .golden-map-controls button {
    width: 44px;
    height: 44px;
    border-bottom: 0;
  }
  .golden-map-controls [data-golden-action="fullscreen"],
  .terrain-icon-controls [data-terrain-action="fullscreen"] { display: none; }

  .map-touch-open {
    position: absolute;
    z-index: 7;
    top: 10px;
    left: 10px;
    display: block;
  }

  .terrain-touch-open { top: 70px; }
  .plan-stage:not(.terrain-ready):not(.terrain-fallback-ready) .terrain-touch-open { display: none; }
  .terrain-section .plan-card { min-height: clamp(460px, 71svh, 590px); }
  .plan-stage .terrain-toolbar { top: 10px; }
  .plan-stage .terrain-icon-controls { top: 60px; }
  .plan-stage .terrain-toolbar button { min-height: 44px; }
  .plan-stage .terrain-icon-controls button { width: 44px; }
  .plan-stage .terrain-layer-panel { top: 128px; }
  .plan-stage .terrain-compass { top: 128px; }
  .plan-stage .terrain-filters button { min-height: 44px; }

  .plan-stage .terrain-selection-card,
  .golden-map-selection {
    bottom: 66px;
    max-height: 50%;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .terrain-selection-close,
  .golden-selection-close { width: 44px; height: 44px; }
  .terrain-selection-card > strong { padding-right: 40px; }
  .contact-grid { gap: 38px; }
  .contact-links { gap: 12px; }

  .contact-links a {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 88px;
    padding: 12px;
  }

  .contact-links span[data-icon] {
    grid-row: auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .contact-links span[data-icon]::before { width: 24px; height: 24px; }
  .contact-form :is(input, select, textarea) { min-width: 0; font-size: 16px; }
  .contact-form { gap: 16px; }
}

@media (max-width: 365px) {
  .terrain-touch-open { top: 128px; }
}

@media (max-width: 700px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-content {
    order: 1;
    width: min(550px, calc(100% - 36px));
    margin-inline: auto;
    padding: clamp(28px, 8vw, 56px) 0 22px;
  }

  .hero-title {
    font-size: clamp(1.92rem, 8vw, 3.4rem);
    line-height: 1.04;
    text-wrap: balance;
  }

  .hero-title br,
  .hero-copy br { display: none; }
  .hero-title strong { display: block; margin-top: 5px; font-size: 1.08em; }
  .hero-copy { margin-top: 16px; font-size: .94rem; line-height: 1.45; text-wrap: pretty; }

  .hero-actions {
    width: 100%;
    display: grid;
    justify-items: start;
    gap: 9px;
    margin-top: 18px;
  }

  .hero-actions :is(.button-primary, .button-outline) {
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    padding: 5px 12px;
    font-size: clamp(.7rem, 3vw, .87rem);
    text-shadow: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .hero-actions .button-primary { color: #fff; background: #0a3840; border-color: #0a3840; }
  .hero-actions .button-outline { color: #0a3840; border-color: #734e00; background: #ffe18a; }

  .hero-actions .button-primary .arrow-bubble {
    width: 28px;
    height: 28px;
    font-size: 1.6rem;
    color: #0a3840;
    background: #fbd98a;
    box-shadow: none;
  }

  .hero-picture {
    order: 2;
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    height: clamp(240px, 68vw, 420px);
  }
  .hero-picture .hero-photo {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
    object-position: center bottom;
  }
  .hero-picture::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--gold), transparent 28%);
    pointer-events: none;
  }
}
