:root {
  --forest-900: #062f20;
  --forest-800: #0d3d2d;
  --forest-700: #144a37;
  --forest-600: #1f6347;
  --gold-500: #d5b26c;
  --gold-400: #e7c98b;
  --sand-100: #f5efe7;
  --sand-200: #ece1d0;
  --text-900: #1b1b1b;
  --text-700: #4a4a4a;
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(8, 31, 24, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #edeae3;
  color: var(--text-900);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.section-kicker {
  display: inline-block;
  color: var(--gold-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-kicker.alt {
  color: rgba(255, 255, 255, 0.8);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--forest-800);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 48, 39, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 150px;
  height: auto;
}

.site-header .brand-logo,
.footer-brand .brand-logo {
  filter: brightness(0) invert(1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

.site-nav a {
  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  opacity: 0.8;
}

.site-nav .nav-cta {
  margin-left: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--forest-900);
  box-shadow: 0 18px 35px rgba(213, 178, 108, 0.28);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background-image: linear-gradient(110deg, rgba(5, 31, 22, 0.2), rgba(10, 55, 38, 0.04)), url("images/fondo-acceso-alameda-real-claro.png?v=1");
  background-size: cover;
  background-position: center;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slideshow-track {
  display: flex;
  width: 500%;
  height: 100%;
  animation: hero-slide-left 20s infinite;
}

.hero-slideshow-track img {
  flex: 0 0 20%;
  width: 20%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes hero-slide-left {
  0%, 4% { transform: translateX(0); }
  21%, 25% { transform: translateX(-20%); }
  42%, 46% { transform: translateX(-40%); }
  63%, 67% { transform: translateX(-60%); }
  84%, 88%, 100% { transform: translateX(-80%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(5, 31, 22, 0.32), rgba(10, 55, 38, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 760px;
  gap: 40px;
  padding-top: 34px;
}

.hero-brand-box {
  position: absolute;
  top: 32px;
  left: max(16px, calc((100% - 1180px) / 2));
  width: 190px;
  max-width: calc(100% - 32px);
}

.hero-brand-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.48));
}

.hero-copy {
  width: min(560px, 100%);
  padding: 0;
  text-align: right;
  color: var(--white);
}

.eyebrow {
  color: #f4d995;
  letter-spacing: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-copy h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 6vw, 6.5rem);
  line-height: 0.92;
  font-weight: 700;
  color: var(--gold-400);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.8);
}

.hero-location {
  font-weight: 600;
  letter-spacing: 0.12rem;
  color: var(--white);
  margin-top: 12px;
  font-size: 1.1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-text {
  margin-top: 18px;
  font-size: 1.08rem;
  max-width: 560px;
  margin-left: auto;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-meta {
  position: relative;
  z-index: 2;
  background: rgba(3, 29, 22, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.hero-meta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 84px;
  gap: 24px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.meta-item i {
  color: var(--gold-500);
  font-size: 1.3rem;
}

.intro {
  background: linear-gradient(180deg, #f6f2eb 0%, #edf3f0 100%);
}

.two-column {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 42px;
  align-items: center;
}

.section-copy h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  color: var(--forest-800);
  margin-bottom: 18px;
}

.section-copy p {
  color: var(--text-700);
  margin-bottom: 18px;
  font-size: 1.04rem;
}

.highlight-card {
  background: linear-gradient(180deg, #fffdfb, #f1eadc);
  border: 1px solid rgba(17, 63, 42, 0.08);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(17, 63, 42, 0.04);
}

.mini-stat strong {
  color: var(--forest-800);
  font-size: 1.8rem;
  line-height: 1;
}

.mini-stat span {
  color: var(--text-700);
  font-size: 0.95rem;
}

.location-showcase {
  background: linear-gradient(180deg, #eaf0ed 0%, #f5f1eb 100%);
}

.location-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}

.location-copy-wrap {
  background: #f7f3ee;
  border-radius: 22px;
  padding: 34px 28px;
  border: 1px solid rgba(16, 58, 42, 0.08);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.mini-brand .brand-logo {
  width: 160px;
}

.location-copy-wrap h3 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
  margin-bottom: 22px;
  color: var(--forest-800);
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.02em;
}

.location-copy-wrap p {
  color: var(--text-700);
  font-size: 1.05rem;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(17, 63, 42, 0.04);
  border-radius: 18px;
  padding: 16px 18px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest-700), var(--forest-600));
  color: var(--white);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-item h4 {
  margin-bottom: 4px;
  color: var(--forest-800);
}

.location-visuals {
  display: grid;
  gap: 20px;
}

.aerial-card,
.map-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(16, 58, 42, 0.08);
  box-shadow: var(--shadow);
  background: var(--white);
}

.aerial-card {
  position: relative;
  min-height: 430px;
}

.aerial-photo {
  min-height: 430px;
  background-image: url("images/ubicacion-aerea.png?v=1");
  background-size: cover;
  background-position: center;
}

.tag-box {
  position: absolute;
  right: 24px;
  top: 18px;
  background: rgba(6, 47, 32, 0.82);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 18px 24px;
  border-radius: 14px;
  font-size: 0.85rem;
}

.map-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 250px;
}

.location-map-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  border: 0;
}

.map-copy {
  padding: 22px 20px 18px;
  background: #f8f5ef;
}

.map-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--forest-800);
  font-family: "Cormorant Garamond", serif;
  margin-bottom: 16px;
}

.map-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.map-row strong {
  display: block;
  color: var(--forest-800);
  margin-bottom: 4px;
}

.map-row p {
  margin: 0;
  color: var(--text-700);
}

.map-pin {
  font-size: 1.5rem;
  color: var(--forest-700);
}

.map-divider {
  border-top: 2px solid rgba(18, 73, 54, 0.3);
  margin: 18px 0 14px;
}

.quote {
  color: var(--forest-800);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.map-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--forest-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-directions-link:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 4px;
}

.location-grid,
.services-grid,
.social-grid,
.price-grid,
.home-grid {
  display: grid;
  gap: 28px;
}

.location-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.location-card,
.service-item,
.price-card,
.home-card,
.social-card {
  background: var(--white);
  border: 1px solid rgba(16, 58, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 18px 32px rgba(8, 31, 24, 0.05);
}

.location-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.location-card,
.service-item,
.price-card,
.home-card,
.social-card {
  background: var(--white);
  border: 1px solid rgba(16, 58, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 18px 32px rgba(8, 31, 24, 0.05);
}

.location-card {
  padding: 30px 26px;
}

.location-card i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: rgba(21, 74, 55, 0.08);
  color: var(--forest-700);
  border-radius: 16px;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.location-card h4,
.service-item h4,
.card-body h4,
.home-content h4 {
  color: var(--forest-800);
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.project-progress {
  background: linear-gradient(180deg, #f6f4ee 0%, #eef5ef 100%);
}

.progress-disclosure {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.progress-disclosure summary {
  list-style: none;
  cursor: pointer;
}

.progress-disclosure summary::-webkit-details-marker {
  display: none;
}

.progress-disclosure summary::after {
  content: " +";
}

.progress-disclosure[open] summary::after {
  content: " −";
}

.progress-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.progress-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(16, 58, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 20px 34px rgba(8, 31, 24, 0.05);
}

.progress-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.progress-card img.progress-roadwork-image {
  object-position: center 18%;
}

.progress-card figcaption {
  padding: 16px 18px 20px;
  color: var(--text-700);
  font-size: 0.94rem;
  line-height: 1.5;
}

.location-card p,
.service-item p,
.card-body p,
.home-content p,
.price-card li,
.contact-copy p,
.site-footer p,
.site-footer li {
  color: var(--text-700);
  font-size: 0.97rem;
}

.stages {
  background: linear-gradient(180deg, #eef5ef 0%, #f7f5f0 100%);
}

.stage-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.stage-card {
  background: var(--white);
  border-radius: 26px;
  padding: 28px 24px;
  border: 1px solid rgba(16, 58, 42, 0.08);
  box-shadow: 0 24px 38px rgba(8, 31, 24, 0.04);
}

.stage-card.stage-active {
  background: linear-gradient(180deg, #0d3f2d 0%, #114a39 100%);
  color: var(--white);
}

.stage-card span {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.92;
}

.stage-card h4 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.stage-card p {
  opacity: 0.9;
}

.infrastructure {
  background: linear-gradient(180deg, #f9f5f0 0%, #f3f8f5 100%);
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-item {
  padding: 28px 22px;
}

.service-item i {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(20, 74, 55, 0.08);
  color: var(--forest-700);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.social-areas {
  background: linear-gradient(180deg, #f2f4ee 0%, #f8f5ef 100%);
}

.social-grid {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.social-card {
  overflow: hidden;
}

.social-card.large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.terrace-gallery {
  flex: 1;
  min-height: 440px;
}

.image-terrace {
  height: 100%;
  background-image: url("images/terrasa.PNG?v=1");
}

.image-park {
  background-image: url("images/parque%20infantil.PNG?v=1");
}

.image-biosaludable {
  background-image: url("images/parque%20biosaludable.PNG?v=1");
}

.image-sport {
  background-image: url("images/cancha%20de%20futbol.PNG?v=1");
}

.sports-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.image-volleyball {
  background-image: url("images/cancha%20de%20volebol.PNG?v=1");
}

.image-commercial {
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=900&q=80");
}

.card-body {
  padding: 20px 20px 24px;
}

.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  padding: 28px 24px;
}

.price-card.featured {
  background: linear-gradient(180deg, #0d3f2d 0%, #123d2f 100%);
  color: var(--white);
  transform: translateY(-10px);
}

.price-card.sold-out .price-box strong {
  color: #ffd18a;
}

.price-card.sold-out .price-box span {
  font-weight: 600;
}

.price-card.featured * {
  color: var(--white);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.label {
  display: inline-flex;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(213, 178, 108, 0.12);
  color: var(--forest-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.featured .label {
  background: rgba(255,255,255,0.12);
}

.card-top h4 {
  font-size: 1.6rem;
  color: var(--forest-800);
}

.featured .card-top h4 {
  color: var(--white);
}

.price-box {
  display: flex;
  flex-direction: column;
  margin: 18px 0 20px;
}

.price-box strong {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--forest-800);
}

.featured .price-box strong,
.featured .price-box span {
  color: var(--white);
}

.price-card ul,
.home-content ul,
.site-footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.price-card li::before,
.home-content li::before,
.site-footer li::before {
  content: "•";
  color: var(--gold-500);
  margin-right: 8px;
  font-weight: 700;
}

.note {
  font-size: 0.92rem;
  color: var(--text-700);
  margin-top: 12px;
}

.featured .note {
  color: rgba(255,255,255,0.82);
}

.available-lots {
  background: linear-gradient(145deg, #edf2ed 0%, #f6f5ef 72%, #e8eee9 100%);
  padding-top: 30px;
}

.available-lots-heading {
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 28px;
}

.available-lots-heading h3 {
  color: var(--forest-800);
}

.available-lots-heading p {
  margin: 12px auto 0;
  color: var(--text-700);
}

.available-lots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.available-lot-card {
  padding: 22px;
  border: 1px solid rgba(16, 58, 42, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(8, 31, 24, 0.04);
}

.available-lot-card-diamonds {
  border-color: rgba(179, 137, 54, 0.45);
  background: linear-gradient(145deg, #fffdf6, #fff);
}

.available-lot-card-diamonds .available-lot-card-heading h4,
.available-lot-card-diamonds .available-lot-card-heading span {
  color: #8b6820;
}

.available-lot-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.available-lot-card-heading h4 {
  color: var(--forest-800);
  font-size: 1.2rem;
}

.available-lot-card-heading span {
  color: var(--forest-700);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.available-lot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.available-lot-list li {
  list-style: none;
}

.available-lot-list button {
  display: flex;
  min-width: 68px;
  min-height: 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(31, 99, 71, 0.18);
  border-radius: 10px;
  background: #edf5ef;
  color: var(--forest-800);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.available-lot-number {
  line-height: 1.1;
}

.available-lot-area {
  font-size: 0.62rem;
  line-height: 1.1;
  white-space: nowrap;
}

.available-lot-list button:hover,
.available-lot-list button:focus-visible {
  border-color: var(--forest-600);
  background: var(--forest-700);
  color: var(--white);
  transform: translateY(-1px);
}

.available-lot-list button[aria-pressed="true"] {
  border-color: var(--forest-800);
  background: var(--forest-800);
  color: var(--white);
}

.available-lot-list button:focus-visible,
.lot-map-dialog button:focus-visible,
.lot-map-dialog a:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

.lot-map-action {
  position: fixed;
  z-index: 30;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 14px max(20px, calc((100vw - 1000px) / 2));
  border-top: 1px solid rgba(16, 58, 42, 0.14);
  background: var(--white);
  box-shadow: 0 -10px 30px rgba(8, 31, 24, 0.12);
  text-align: center;
}

.lot-map-action-close {
  position: absolute;
  top: 50%;
  left: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(16, 58, 42, 0.18);
  border-radius: 50%;
  background: #f4f6f3;
  color: var(--forest-800);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.lot-map-action-close:hover {
  background: #e8eee9;
}

.lot-map-action[hidden] {
  display: none;
}

.lot-map-action p {
  margin: 0;
  color: var(--forest-800);
  font-weight: 600;
}

.lot-map-action .btn-secondary {
  border-color: var(--forest-700);
  background: var(--forest-700);
  color: var(--white);
}

@media (max-width: 640px) {
  .lot-map-action {
    gap: 10px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }

  .lot-map-action p {
    flex-basis: 100%;
    padding-left: 36px;
    padding-right: 36px;
  }

  .lot-map-action-close {
    top: 12px;
    left: 14px;
    transform: none;
  }

  .lot-map-action .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.88rem;
  }
}

.lot-quote {
  display: grid;
  gap: 22px;
  width: min(820px, 100%);
  margin: 34px auto 0;
  padding: 28px;
  border: 1px solid rgba(16, 58, 42, 0.12);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(8, 31, 24, 0.07);
}

.lot-quote[hidden] {
  display: none;
}

.lot-quote-heading,
.lot-quote-downpayment > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lot-quote-heading h3 {
  color: var(--forest-800);
  font-size: 1.55rem;
}

.lot-quote-heading p {
  margin-top: 4px;
  color: var(--text-700);
}

.lot-quote-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf2ed;
  color: var(--forest-800);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.lot-quote-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lot-quote-fields label,
.lot-quote-downpayment label {
  display: grid;
  gap: 8px;
  color: var(--text-700);
  font-weight: 500;
}

.lot-quote-fields input,
.lot-quote-fields select,
.lot-quote-fields output {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(16, 58, 42, 0.2);
  border-radius: 14px;
  background: #fff;
  color: var(--text-900);
  font: inherit;
}

.lot-quote-fields output {
  display: flex;
  align-items: center;
}

.lot-quote-fields input:focus-visible,
.lot-quote-fields select:focus-visible,
.lot-quote-downpayment input:focus-visible {
  outline: 3px solid rgba(213, 178, 108, 0.7);
  outline-offset: 2px;
}

.lot-quote-downpayment {
  display: grid;
  gap: 10px;
}

.lot-quote-downpayment > div {
  justify-content: flex-start;
}

.lot-quote-downpayment label,
.lot-quote-downpayment output {
  color: var(--forest-800);
  font-size: 1.1rem;
  font-weight: 700;
}

.lot-quote-downpayment input {
  width: 100%;
  accent-color: var(--forest-700);
  cursor: pointer;
}

.lot-quote-results {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
  background: #f2f3f1;
}

.lot-quote-results span {
  display: block;
  color: var(--text-700);
}

.lot-quote-results strong {
  display: block;
  margin-top: 5px;
  color: var(--text-900);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
}

.lot-quote-total,
.lot-quote-breakdown {
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(16, 58, 42, 0.1);
}

.lot-quote-total strong {
  margin-top: 8px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.lot-quote-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lot-quote-monthly strong {
  color: var(--forest-700);
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.lot-quote-monthly small {
  display: block;
  margin-top: 7px;
  color: var(--text-700);
  font-size: 0.9rem;
}

.lot-quote-disclaimer,
.lot-quote-status {
  color: var(--text-700);
  font-size: 0.88rem;
  line-height: 1.5;
}

.lot-quote-copy {
  width: 100%;
}

.lot-quote-copy:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.lot-map-dialog {
  width: min(1200px, calc(100vw - 28px));
  height: min(920px, calc(100vh - 28px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 22px;
  border: 0;
  border-radius: 20px;
  background: #f7f8f5;
  color: var(--text-900);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.lot-map-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.lot-map-dialog::backdrop {
  background: rgba(4, 20, 15, 0.78);
  backdrop-filter: blur(4px);
}

.lot-map-dialog-header,
.lot-map-dialog-footer,
.lot-map-dialog-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lot-map-dialog-header .section-kicker {
  margin-bottom: 2px;
  color: var(--forest-600);
  font-size: 0.66rem;
}

.lot-map-dialog-header h2 {
  color: var(--forest-900);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  line-height: 1.2;
}

.lot-map-close:not(.btn) {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(16, 58, 42, 0.15);
  border-radius: 50%;
  background: var(--white);
  color: var(--forest-900);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lot-map-viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 58, 42, 0.14);
  border-radius: 12px;
  background: #fff;
  cursor: grab;
  touch-action: none;
}

.lot-map-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.lot-map-scene {
  position: absolute;
  transform-origin: top left;
  transition: transform 1.45s cubic-bezier(0.18, 0.75, 0.2, 1);
  will-change: transform;
}

.lot-map-scene img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.15) saturate(1.05);
}

.lot-map-marker {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #075fbd;
  box-shadow: 0 0 0 1px rgba(7, 95, 189, 0.75), 0 0 8px rgba(7, 95, 189, 0.55);
  transform: translate(-50%, -50%) scale(var(--lot-marker-scale, 1));
  transform-origin: center;
}

.lot-map-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(16, 58, 42, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(8, 31, 24, 0.14);
}

.lot-map-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--forest-700);
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.lot-map-controls button:hover {
  background: var(--forest-900);
}

.lot-map-controls output {
  color: var(--forest-900);
  font-size: 0.68rem;
  font-weight: 700;
}

.lot-map-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-700);
  font-size: 0.72rem;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.lot-map-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
  color: #8c2c22;
  text-align: center;
}

.lot-map-error[hidden] {
  display: none;
}

.lot-map-dialog-footer a {
  color: var(--forest-700);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lot-map-dialog-footer .btn {
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
}

.available-lots-total {
  margin-top: 26px;
  color: var(--forest-800);
  text-align: center;
}

.available-lots-total strong {
  color: var(--forest-700);
}

.house-showcase {
  background: linear-gradient(180deg, #f5f2ec 0%, #eef3ef 100%);
}

.house-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.house-visual-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(16, 58, 42, 0.08);
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.house-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-image: url("images/terrasa%20nuevo.PNG?v=1");
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.house-photo-two-story {
  background-image: url("images/vivienda-fachada-dos-plantas.png?v=1");
}

.one-story-house-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-image: url("images/Casa%20moderna%20con%20jard%C3%ADn%20tropical.png?v=1");
}

.one-story-complement {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--forest-800);
}

.one-story-details {
  display: grid;
  line-height: 1.3;
}

.one-story-details strong {
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  font-weight: 800;
}

.one-story-details > span {
  font-size: 0.82rem;
  font-weight: 600;
}

.one-story-details p {
  margin-top: 5px;
  color: var(--text-700);
  font-size: 0.65rem;
  line-height: 1.35;
}

.one-story-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.one-story-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  font-size: 0.6rem;
  line-height: 1.2;
}

.one-story-feature i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 74, 55, 0.1);
  color: var(--forest-700);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .one-story-complement {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .one-story-features {
    gap: 4px;
  }

  .one-story-feature {
    font-size: 0.58rem;
  }

  .one-story-feature i {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow-track {
    animation: none;
  }

  .lot-map-scene,
  .available-lot-list button {
    transition-duration: 0.01ms;
  }
}

.house-secondary-heading {
  margin: 64px auto 36px;
}

.house-plan-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #ffffff;
}

.house-plan-image.single-story-plan {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-width: 100%;
  object-fit: contain;
  margin-block: auto;
}

.house-visual-card figcaption {
  padding: 16px 20px;
  color: var(--forest-800);
  font-weight: 700;
  text-align: center;
}

.home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-card {
  overflow: hidden;
}

.home-illustration {
  height: 280px;
  background-size: cover;
  background-position: center;
}

.illustration-one {
  background-image: url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80");
}

.illustration-two {
  background-image: url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1200&q=80");
}

.home-content {
  padding: 24px 22px 28px;
}

@media (max-width: 980px) {
  .location-layout {
    grid-template-columns: 1fr;
  }

  .house-gallery {
    grid-template-columns: 1fr;
  }

  .progress-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .progress-gallery {
    grid-template-columns: 1fr;
  }
}

.cta-band {
  padding-top: 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--forest-800), var(--forest-700));
  border-radius: 30px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-box h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  line-height: 1.1;
}

.contact {
  background: linear-gradient(180deg, #f2f6f3 0%, #f0f0eb 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-copy h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--forest-800);
  margin-bottom: 18px;
}

.contact-info {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-info div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest-800);
  font-weight: 500;
}

.contact-info i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(17, 63, 42, 0.08);
  color: var(--forest-700);
}

.contact-form {
  background: var(--white);
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: 0 24px 36px rgba(8, 31, 24, 0.06);
  border: 1px solid rgba(12, 48, 35, 0.08);
}

.contact-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form-actions .btn {
  width: 100%;
  white-space: normal;
}

.contact-form-status {
  margin-top: 14px;
  color: var(--forest-800);
  font-size: 0.9rem;
}

.contact-form-status a {
  color: var(--forest-700);
  font-weight: 700;
  text-decoration: underline;
}

.field-row {
  margin-bottom: 18px;
}

.field-row.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: block;
  color: var(--forest-800);
  font-weight: 500;
}

label span {
  display: inline-block;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 58, 42, 0.15);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #fafaf8;
  color: var(--text-900);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(24, 93, 64, 0.5);
  box-shadow: 0 0 0 4px rgba(25, 92, 63, 0.07);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.site-footer {
  background: #072a1f;
  color: var(--white);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand .brand-logo {
  width: 180px;
}

.site-footer h5 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--gold-400);
}

.site-footer ul {
  display: grid;
  gap: 10px;
}

.site-footer p,
.site-footer li {
  color: rgba(255,255,255,0.8);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: transform 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ed46b, #1da851);
  color: var(--white);
  box-shadow: 0 18px 35px rgba(31, 153, 75, 0.28);
  font-size: 1.7rem;
}

@media (max-width: 980px) {
  .available-lots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: rgba(7, 31, 22, 0.97);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content,
  .two-column,
  .contact-grid,
  .stage-layout,
  .location-grid,
  .services-grid,
  .social-grid,
  .price-grid,
  .home-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding-top: 150px;
    padding-bottom: 48px;
  }

  .hero-copy {
    width: 100%;
    text-align: left;
    margin-top: auto;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(2, 22, 16, 0.02) 30%, rgba(2, 22, 16, 0.5));
  }

  .hero-brand-box {
    top: 24px;
    left: 16px;
    width: 170px;
  }

  .hero-text {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .social-card.large {
    grid-row: auto;
  }

  .terrace-gallery {
    flex: none;
    min-height: 360px;
  }

  .image-terrace {
    min-height: 360px;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body.lot-actions-open .whatsapp-float {
    bottom: calc(142px + env(safe-area-inset-bottom));
    z-index: 29;
  }

  .map-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-map-embed {
    height: 260px;
    min-height: 260px;
  }

  .available-lots-grid {
    grid-template-columns: 1fr;
  }

  .lot-quote {
    gap: 18px;
    padding: 20px 16px;
    border-radius: 18px;
  }

  .lot-quote-fields {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lot-quote-breakdown {
    grid-template-columns: 1fr;
  }

  .lot-quote-results {
    padding: 18px 15px;
  }

  .lot-map-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    padding: 14px;
    border-radius: 14px;
  }

  .lot-map-controls {
    top: 10px;
    right: 10px;
  }

  .lot-map-controls button {
    width: 42px;
    height: 42px;
  }

  .lot-map-hint {
    bottom: 8px;
    font-size: 0.65rem;
  }

  .lot-map-dialog-header,
  .lot-map-dialog-footer {
    gap: 10px;
  }

  .lot-map-dialog-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .lot-map-dialog-footer > div {
    width: 100%;
    justify-content: flex-end;
  }

  .lot-map-dialog-footer .btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    min-height: 760px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h2 {
    font-size: clamp(3.6rem, 15vw, 4.8rem);
  }

  .eyebrow {
    font-size: 0.95rem;
    letter-spacing: 0.16rem;
  }

  .hero-location {
    font-size: 0.94rem;
    letter-spacing: 0.08rem;
  }

  .section {
    padding: 82px 0;
  }

  .field-row.split {
    grid-template-columns: 1fr;
  }

  .contact-form-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  html {
    font-size: 93.75%;
  }

  .section {
    padding: 88px 0;
  }

  .hero,
  .hero-content {
    min-height: 680px;
  }

  .hero-copy h2 {
    font-size: clamp(3.75rem, 5.5vw, 6rem);
  }

  .section-heading h3,
  .section-copy h3 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  }
}
