:root {
  --terracota: #a65332;
  --terracota-dark: #7f432f;
  --ocre: #c18a3c;
  --cantera: #d4ae7d;
  --nogal: #3b2418;
  --nogal-soft: #5b3928;
  --marfil: #f5efe5;
  --paper: #fffaf2;
  --plomo: #898b86;
  --sage: #66705d;
  --white: #ffffff;
  --shadow: 0 28px 70px rgba(59, 36, 24, 0.14);
  --shadow-soft: 0 14px 38px rgba(59, 36, 24, 0.09);
  --serif: "Baskerville", "Libre Baskerville", Georgia, serif;
  --sans: "Avenir Next", Avenir, Inter, "Helvetica Neue", Arial, sans-serif;
  --container: min(1180px, calc(100vw - 48px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--nogal);
  background: var(--marfil);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--terracota);
  border-radius: 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  isolation: isolate;
  z-index: 50;
  top: 58px;
  left: 50%;
  width: var(--container);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 0;
  transform: translateX(-50%);
  background: transparent;
  transition:
    top 0.55s var(--ease),
    left 0.55s var(--ease),
    width 0.55s var(--ease),
    height 0.55s var(--ease),
    padding 0.55s var(--ease),
    transform 0.55s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 214px;
  border: 0;
  border-radius: 999px;
  background: var(--marfil);
  box-shadow: 18px 12px 44px rgba(32, 20, 13, 0.08);
  backdrop-filter: none;
  transition:
    inset 0.55s var(--ease),
    border-radius 0.55s var(--ease),
    background 0.45s,
    box-shadow 0.45s;
}

.site-header.scrolled {
  top: 36px;
}

.brand {
  position: relative;
  z-index: 2;
  width: 195px;
  height: 195px;
  margin-left: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 173px;
  object-fit: contain;
}

.brand-compact {
  position: fixed;
  isolation: isolate;
  z-index: 49;
  top: 18px;
  left: 12px;
  width: 90px;
  height: 106px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px) scale(0.84);
  transform-origin: left top;
  transition:
    opacity 0.42s var(--ease),
    transform 0.52s var(--ease),
    visibility 0.42s;
}

.brand-compact img {
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(32, 20, 13, 0.2));
}

.main-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* El recorrido horizontal solo debe aplicar a la fila del menú cuando está
   arriba de la página (sin scroll). El menú circular condensado (.scrolled)
   usa su propio ancho fijo de 244px y NO debe heredar este max-width, porque
   su contenedor de referencia es el círculo de 68px y quedaría comprimido. */
.site-header:not(.scrolled) .main-nav {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-header:not(.scrolled) .main-nav::-webkit-scrollbar {
  display: none;
}

.site-header:not(.scrolled) .main-nav a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.main-nav a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:not(.nav-cta) {
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--terracota);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 11px 17px;
  color: var(--white);
  background: var(--terracota);
  border-radius: 999px;
}

.menu-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--nogal);
}

.menu-toggle span:not(.sr-only):not(.dock-label) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--marfil);
}

.dock-label {
  display: none;
}

/* Etiqueta "Menú" centrada en la franja vacía del header — solo en móvil,
   ver regla de activación dentro de @media (max-width: 980px). */
.mobile-menu-label {
  display: none;
  pointer-events: none;
}

@media (min-width: 981px) {
  .site-header:not(.scrolled) {
    top: 68px;
  }

  .site-header:not(.scrolled)::before {
    inset: 0 0 0 258px;
  }

  .site-header:not(.scrolled) .brand {
    width: 234px;
    height: 208px;
    transform: translateY(8px);
  }

  .site-header:not(.scrolled) .brand img {
    height: 208px;
  }

  body.nav-condensed .brand-compact {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-header.scrolled {
    top: 50%;
    left: calc(100% - 54px);
    width: 68px;
    height: 68px;
    padding: 0;
    transform: translate(-50%, -50%);
  }

  .site-header.scrolled::before {
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(245, 239, 229, 0.96);
    box-shadow: 0 18px 42px rgba(32, 20, 13, 0.2);
    backdrop-filter: blur(14px);
  }

  .site-header.scrolled .brand {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.7);
  }

  .site-header.scrolled .menu-toggle {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: auto;
    color: var(--marfil);
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.3s;
  }

  .site-header.scrolled .menu-toggle:hover,
  .site-header.scrolled .menu-toggle:focus-visible {
    transform: scale(1.1);
    background: var(--terracota-dark);
  }

  .site-header.scrolled .menu-toggle > span:not(.dock-label):not(.sr-only) {
    display: none;
  }

  .site-header.scrolled .dock-label {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    color: var(--marfil);
    background: transparent;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
  }

  .site-header.scrolled .main-nav {
    position: absolute;
    top: 50%;
    right: 78px;
    width: 244px;
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 24px;
    background: rgba(245, 239, 229, 0.97);
    box-shadow: 0 22px 54px rgba(32, 20, 13, 0.2);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(18px, -50%) scale(0.96);
    transform-origin: right center;
    transition:
      opacity 0.26s,
      transform 0.38s var(--ease),
      visibility 0.26s;
  }

  .site-header.scrolled .main-nav::before {
    content: "";
    position: absolute;
    top: -16px;
    right: -32px;
    width: 32px;
    height: calc(100% + 32px);
  }

  .site-header.scrolled:not(.menu-dismissed):hover .main-nav,
  .site-header.scrolled .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, -50%) scale(1);
  }

  .site-header.scrolled .main-nav a {
    padding: 11px 14px;
    border-radius: 14px;
  }

  .site-header.scrolled .main-nav a:not(.nav-cta):hover,
  .site-header.scrolled .main-nav a:not(.nav-cta):focus-visible {
    background: rgba(212, 174, 125, 0.2);
  }

  .site-header.scrolled .main-nav a:not(.nav-cta)::after {
    display: none;
  }

  .site-header.scrolled .nav-cta {
    margin-top: 6px;
    text-align: center;
  }
}

.hero {
  --hero-reveal: 0;
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--nogal);
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../img/hero-acceso-puerta-san-miguel.jpg");
  background-position: 52% center;
  background-size: cover;
  animation: heroReveal 1.4s var(--ease) both;
  transform: scale(calc(1.025 - (var(--hero-reveal) * 0.025)));
  transition: transform 0.08s linear;
}

.hero-media-night {
  background-image: url("../img/hero-acceso-puerta-san-miguel-noche-definitivo.png");
  /* Anula la animación de entrada heredada de .hero-media (heroReveal), que con
     fill-mode "both" fijaba esta capa en opacity:1 de forma permanente tras 1.4s
     y anulaba el ciclo día/noche controlado por JS. */
  animation: none;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 3.6s ease-in-out;
}

.hero.hero-is-night .hero-media-night {
  opacity: 1;
}

.hero-scrim {
  background:
    linear-gradient(180deg, rgba(18, 13, 9, 0.06) 20%, rgba(18, 13, 9, 0.68) 100%),
    linear-gradient(90deg, rgba(18, 13, 9, 0.54) 0%, rgba(18, 13, 9, 0.05) 62%);
  opacity: calc(0.36 + (var(--hero-reveal) * 0.64));
  transition: opacity 0.08s linear;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 170px 0 94px;
  opacity: calc(1 - (var(--hero-reveal) * 1.18));
  transform: translateY(calc(var(--hero-reveal) * -54px));
  transition: opacity 0.08s linear, transform 0.08s linear;
}

.hero-content h1 {
  font-weight: 600;
}

/* Móvil y tablet en vertical (hasta 980px, mismo punto donde entra el menú
   hamburguesa): el clamp base de h1 tiene un piso de 3rem (48px) que en estos
   anchos no reduce con el viewport y "llena" la pantalla. Aquí se aligera el
   peso visual y se deja que el tamaño sí escale hacia abajo. */
@media (max-width: 980px) {
  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    letter-spacing: -0.03em;
  }

  .hero-content .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }

  .hero-copy {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--terracota);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--cantera);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* En escritorio, la narrativa se recorre a la derecha para conservar libre la
   barda izquierda, donde vive el logotipo integrado del acceso. */
@media (min-width: 981px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(18, 13, 9, 0.01) 16%, rgba(18, 13, 9, 0.42) 100%),
      linear-gradient(90deg, rgba(18, 13, 9, 0) 0%, rgba(18, 13, 9, 0.03) 42%, rgba(18, 13, 9, 0.50) 100%);
    opacity: calc(0.42 + (var(--hero-reveal) * 0.58));
  }

  .hero-content {
    display: grid;
    justify-items: end;
    text-align: right;
    padding-top: 216px;
    padding-bottom: 94px;
  }

  .hero-content .eyebrow {
    width: min(42vw, 620px);
    margin-bottom: 14px;
  }

  .hero-content h1 {
    max-width: min(42vw, 650px);
    margin-left: auto;
    margin-bottom: 20px;
    font-size: clamp(2.3rem, 3.4vw, 3.9rem);
    line-height: 1.08;
  }

  .hero-copy {
    max-width: min(34vw, 500px);
    margin-left: auto;
    margin-bottom: 28px;
    font-size: clamp(0.98rem, 1.16vw, 1.1rem);
  }

  .hero-actions {
    justify-content: flex-end;
  }
}

/* Tablet / laptop angosto: el logo y el menú completo (7 links + CTA) no caben
   en una sola fila cómodamente. Se reduce el logo, se acorta el gap y se
   permite que el menú se recorra horizontalmente (ver overflow-x en .main-nav)
   en vez de amontonarse o encimarse con el contenido del hero. */
@media (min-width: 981px) and (max-width: 1320px) {
  .site-header:not(.scrolled) {
    top: 42px;
  }

  .site-header:not(.scrolled)::before {
    inset: 0 0 0 168px;
  }

  .site-header:not(.scrolled) .brand {
    width: 150px;
    height: 140px;
    transform: none;
  }

  .site-header:not(.scrolled) .brand img {
    height: 118px;
  }

  .main-nav {
    gap: 14px;
    padding-right: 6px;
  }

  .main-nav a {
    font-size: 0.68rem;
  }

  .nav-cta {
    padding: 10px 14px;
  }
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--terracota);
}

.button-primary:hover {
  background: var(--terracota-dark);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.button-ghost:hover {
  color: var(--nogal);
  background: var(--white);
}

.button-light {
  color: var(--nogal);
  background: var(--marfil);
}

.button-outline {
  color: var(--nogal);
  border-color: rgba(59, 36, 24, 0.28);
  background: transparent;
}

.button-outline:hover {
  color: var(--white);
  background: var(--nogal);
  border-color: var(--nogal);
}

.button:disabled {
  cursor: default;
  opacity: 0.72;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: max(18px, calc((100vw - 1180px) / 2 - 36px));
  bottom: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
}

.scroll-cue i {
  display: block;
  width: 54px;
  height: 1px;
  background: var(--cantera);
}

.facts {
  position: relative;
  z-index: 4;
  width: min(900px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 36px auto 0;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.facts article {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 24px;
  border-right: 1px solid rgba(127, 67, 47, 0.13);
}

.facts article:last-child {
  border-right: 0;
}

.facts strong {
  color: var(--terracota);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1;
}

.facts span {
  margin-top: 7px;
  color: rgba(59, 36, 24, 0.62);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.facts .fact-payment strong {
  max-width: 210px;
  font-family: var(--sans);
  font-size: clamp(0.92rem, 1.35vw, 1.14rem);
  font-weight: 700;
  line-height: 1.2;
}

.section {
  padding: 130px 0;
}

main > section[id] {
  scroll-margin-top: 0;
}

.editorial {
  width: var(--container);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: clamp(54px, 8vw, 116px);
  margin-right: auto;
  margin-left: auto;
}

.editorial-copy {
  max-width: 500px;
}

.editorial-copy .lead {
  color: var(--terracota-dark);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.55;
}

.editorial-copy > p:not(.eyebrow):not(.lead) {
  color: rgba(59, 36, 24, 0.7);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--terracota);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease);
}

.text-link:hover span {
  transform: translateX(5px);
}

.editorial-image {
  position: relative;
  margin: 0;
}

.editorial-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -24px;
  left: -24px;
  width: 62%;
  height: 75%;
  border-radius: 3px;
  background: var(--cantera);
}

.editorial-image img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.editorial-image figcaption {
  position: absolute;
  right: -22px;
  bottom: 28px;
  max-width: 265px;
  padding: 18px 22px;
  color: var(--marfil);
  background: var(--nogal);
  font-family: var(--serif);
  font-size: 0.94rem;
}

.visual-story {
  color: var(--marfil);
  background: var(--nogal);
}

.section-heading,
.story-grid,
.lot-intro,
.lot-toolbar,
.explorer-shell,
.advisor-section,
.contact-card {
  width: var(--container);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
  gap: 30px;
  margin-bottom: 56px;
}

.section-heading h2 {
  max-width: 780px;
  margin: 0;
  text-align: right;
}

.heading-note {
  max-width: 520px;
  padding-right: 24px;
  border-right: 1px solid rgba(212, 174, 125, 0.72);
  text-align: right;
}

.heading-note .eyebrow {
  margin-bottom: 10px;
}

.heading-note > p:last-child {
  margin: 0;
  color: rgba(245, 239, 229, 0.8);
  font-size: 0.98rem;
  line-height: 1.65;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  grid-template-rows: repeat(2, minmax(250px, 1fr));
  gap: 20px;
}

.story-card {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  background: var(--terracota-dark);
}

.story-card-large {
  grid-row: 1 / 3;
  min-height: 620px;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.story-card:hover img {
  transform: scale(1.035);
}

.story-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(transparent, rgba(28, 17, 12, 0.88));
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-card figcaption span {
  color: var(--cantera);
}

.story-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 38px 38px 0;
  background: var(--terracota);
}

.story-card-copy blockquote {
  max-width: 96%;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.28;
}

.story-card-copy p {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  color: rgba(245, 239, 229, 0.65);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.lot-section {
  background:
    radial-gradient(circle at 85% 10%, rgba(212, 174, 125, 0.19), transparent 30%),
    var(--marfil);
}

.lot-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 42px;
}

.lot-intro h2 {
  margin-bottom: 0;
}

.lot-intro > p {
  max-width: 480px;
  margin-bottom: 8px;
  color: rgba(59, 36, 24, 0.66);
}

.lot-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-button {
  padding: 9px 15px;
  color: var(--nogal);
  border: 1px solid rgba(59, 36, 24, 0.18);
  border-radius: 999px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-button.active {
  color: var(--white);
  border-color: var(--terracota);
  background: var(--terracota);
}

.availability-summary {
  margin-left: auto;
  color: rgba(59, 36, 24, 0.58);
  font-size: 0.76rem;
}

.explorer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(127, 67, 47, 0.13);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.masterplan-panel {
  min-width: 0;
  padding: 28px;
}

.masterplan-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-color: var(--cantera) rgba(212, 174, 125, 0.18);
}

.masterplan {
  position: relative;
  width: 100%;
  min-width: 1050px;
  overflow: hidden;
  border-radius: 12px;
  background: #e8e3d7;
}

.masterplan-image {
  width: 100%;
  height: auto;
  display: block;
}

.lot-hotspots {
  position: absolute;
  inset: 0;
}

.lot-button {
  position: absolute;
  padding: 0;
  color: transparent;
  border: 0;
  border-radius: 3px;
  background: transparent;
  font-size: 0;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lot-button[data-row="north"] {
  clip-path: polygon(3% 0, 100% 2%, 94% 100%, 0 98%);
}

.lot-button[data-row="south"] {
  clip-path: polygon(0 2%, 94% 0, 100% 98%, 3% 100%);
}

.lot-button:hover,
.lot-button:focus-visible,
.lot-button.selected {
  z-index: 3;
  background: rgba(166, 83, 50, 0.2);
  box-shadow:
    inset 0 0 0 3px var(--terracota),
    inset 0 0 0 6px rgba(255, 250, 242, 0.72);
}

.lot-button::before {
  content: attr(data-lot-number);
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 2px solid rgba(255, 250, 242, 0.88);
  border-radius: 50%;
  background: var(--nogal);
  box-shadow: 0 8px 18px rgba(32, 20, 13, 0.3);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.2s, transform 0.28s var(--ease);
}

.lot-button:hover::before,
.lot-button:focus-visible::before,
.lot-button.selected::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.lot-button.reserved {
  /* El plano sigue visible, pero el lote queda inequívocamente bloqueado. */
  background: rgba(74, 43, 30, 0.3);
  box-shadow: inset 0 0 0 2px rgba(74, 43, 30, 0.72);
}

.lot-button.review::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  left: auto;
  width: 10px;
  height: 10px;
  transform: none;
  border-radius: 50%;
  background: var(--ocre);
}

.lot-button.hidden-by-filter {
  opacity: 0;
  pointer-events: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  color: rgba(59, 36, 24, 0.62);
  font-size: 0.7rem;
}

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

.legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 2px;
}

.legend-available {
  background: #f8f1e3;
  border: 1px solid rgba(59, 36, 24, 0.24);
}

.legend-reserved {
  background: rgba(137, 139, 134, 0.42);
}

.legend-review {
  background: var(--ocre);
  border-radius: 50% !important;
}

.plan-reference {
  margin-top: 22px;
  border-top: 1px solid rgba(59, 36, 24, 0.12);
}

.plan-reference summary {
  padding: 16px 0 4px;
  color: var(--terracota-dark);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan-reference img {
  margin-top: 14px;
  border: 1px solid rgba(59, 36, 24, 0.12);
}

.lot-detail {
  min-height: 0;
  display: grid;
  grid-template-columns:
    minmax(190px, 0.55fr)
    minmax(390px, 1.2fr)
    minmax(340px, 1fr);
  align-items: center;
  gap: 30px;
  padding: 30px 36px;
  color: var(--marfil);
  border-top: 1px solid rgba(245, 239, 229, 0.12);
  background: var(--nogal);
}

.detail-empty {
  grid-column: 1 / -1;
  height: 100%;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.detail-empty span {
  font-family: var(--serif);
  font-size: 1.8rem;
}

.detail-empty p {
  max-width: 260px;
  color: rgba(245, 239, 229, 0.55);
}

.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
}

.detail-kicker {
  color: var(--cantera);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-top h3 {
  margin: 3px 0 0;
  font-size: 2.8rem;
}

.status-pill {
  padding: 7px 10px;
  border: 1px solid rgba(212, 174, 125, 0.45);
  border-radius: 999px;
  color: var(--cantera);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill.reserved {
  color: rgba(245, 239, 229, 0.58);
  border-color: rgba(245, 239, 229, 0.23);
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 0;
  border-top: 1px solid rgba(245, 239, 229, 0.14);
  border-left: 1px solid rgba(245, 239, 229, 0.14);
}

.detail-specs div {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  border-right: 1px solid rgba(245, 239, 229, 0.14);
  border-bottom: 1px solid rgba(245, 239, 229, 0.14);
}

.detail-specs strong {
  font-family: var(--serif);
  font-size: 1.12rem;
}

.detail-specs span {
  color: rgba(245, 239, 229, 0.48);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-box {
  padding: 0 0 0 28px;
  border-top: 0;
  border-left: 1px solid rgba(245, 239, 229, 0.14);
}

.quote-box label {
  display: block;
  margin-bottom: 8px;
  color: rgba(245, 239, 229, 0.6);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-box select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--nogal);
  border: 0;
  border-radius: 6px;
  background: var(--marfil);
}

.quote-total {
  display: grid;
  grid-template-columns: minmax(72px, 0.34fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin: 22px 0;
}

.quote-total span {
  color: rgba(245, 239, 229, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-total strong {
  min-width: 0;
  color: var(--cantera);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.15vw, 1.95rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  text-align: right;
}

.quote-note {
  margin-bottom: 22px;
  color: rgba(245, 239, 229, 0.46);
  font-size: 0.68rem;
  line-height: 1.5;
}

.detail-action {
  width: 100%;
}

.detail-warning {
  padding: 16px;
  color: var(--nogal);
  border-radius: 6px;
  background: var(--cantera);
  font-size: 0.78rem;
}

.advisor-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  padding: 0;
  color: var(--marfil);
  background: var(--terracota-dark);
}

.advisor-image {
  min-height: 620px;
}

.advisor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advisor-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(54px, 8vw, 110px);
}

.advisor-copy h2 {
  font-size: clamp(2.5rem, 4vw, 4.3rem);
}

.advisor-copy > p:not(.eyebrow) {
  color: rgba(245, 239, 229, 0.67);
}

.advisor-copy ul {
  padding: 0;
  margin: 12px 0 32px;
  list-style: none;
}

.advisor-copy li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid rgba(245, 239, 229, 0.12);
}

.advisor-copy li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--cantera);
  font-size: 1.6rem;
  line-height: 1;
}

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(166, 83, 50, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(166, 83, 50, 0.04),
    0 0 0 140px rgba(166, 83, 50, 0.025);
}

.contact-card {
  position: relative;
  z-index: 1;
  max-width: 890px;
  margin: 0 auto;
  text-align: center;
}

.contact-card p:not(.eyebrow) {
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(59, 36, 24, 0.65);
}

.contact-actions {
  justify-content: center;
  margin-top: 32px;
}

.contact-phone {
  padding: 12px;
  color: var(--terracota-dark);
  font-family: var(--serif);
  font-size: 1.08rem;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px 32px;
  color: rgba(245, 239, 229, 0.62);
  background: #251710;
  text-align: center;
}

.footer-brand-lockup {
  display: block;
  width: min(100%, 620px);
  margin: 0 auto;
}

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

.footer-note {
  max-width: 680px;
  margin: 28px auto 20px;
  font-size: 0.72rem;
}

.site-footer > span {
  font-size: 0.68rem;
}

.site-footer > span a {
  color: var(--cantera);
  text-decoration: none;
}

.site-footer > span a:hover {
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  isolation: isolate;
  z-index: 70;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 4px solid rgba(245, 239, 229, 0.9);
  border-radius: 31px 31px 9px 9px;
  background: #1f9d5a;
  box-shadow: 0 12px 28px rgba(31, 157, 90, 0.32);
  font-family: var(--sans);
  font-size: 1.55rem;
  line-height: 1;
  text-decoration: none;
  animation: whatsappFloat 3.2s ease-in-out infinite;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 24px 24px 5px 5px;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #168c4d;
  box-shadow: 0 16px 34px rgba(31, 157, 90, 0.44);
  transform: translateY(-3px) scale(1.04);
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
  transform: translateY(3px);
}

@keyframes whatsappFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes heroReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 981px) {
  .editorial.section {
    min-height: min(760px, 100svh);
    padding: 72px 0;
  }

  .editorial-copy h2 {
    font-size: clamp(2.65rem, 3.55vw, 3.8rem);
  }

  .editorial-image img {
    max-height: 500px;
  }

  .visual-story.section {
    padding: 44px 0 52px;
  }

  .visual-story .section-heading {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
  }

  .visual-story .section-heading h2 {
    grid-column: 1;
    justify-self: end;
    max-width: 100%;
    font-size: clamp(2.4rem, 3.2vw, 3.6rem);
  }

  .visual-story .heading-note {
    grid-column: 2;
    align-self: end;
    max-width: 100%;
  }

  .visual-story .story-grid {
    grid-template-rows: repeat(2, minmax(195px, 1fr));
  }

  .visual-story .story-card {
    min-height: 210px;
  }

  .visual-story .story-card-large {
    min-height: 460px;
  }

  .visual-story .story-card-copy {
    padding: 28px 28px 0;
  }

  .visual-story .story-card-copy blockquote {
    font-size: clamp(1.18rem, 1.55vw, 1.65rem);
  }

  .lot-section.section {
    padding: 40px 0 48px;
  }

  .lot-section .lot-intro {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    align-items: center;
    gap: 48px;
    margin-bottom: 18px;
  }

  .lot-section .lot-intro h2 {
    font-size: clamp(2.55rem, 3.45vw, 3.7rem);
  }

  .lot-section .lot-intro > p {
    max-width: 440px;
    margin: 0;
    padding-right: 22px;
    border-right: 1px solid rgba(166, 83, 50, 0.36);
    font-size: 0.94rem;
    line-height: 1.55;
    text-align: right;
  }

  .lot-section .lot-toolbar {
    min-height: 40px;
    margin-bottom: 12px;
  }

  .lot-section .masterplan-panel {
    padding: 18px 22px 14px;
  }

  .lot-section .masterplan-scroll {
    padding-bottom: 4px;
  }

  .lot-section .legend {
    margin-top: 10px;
  }

  .lot-section .lot-detail {
    gap: 24px;
    padding: 20px 28px;
  }

  .lot-section .detail-top h3 {
    font-size: 2.35rem;
  }

  .lot-section .detail-specs div {
    min-height: 72px;
    padding: 12px;
  }

  .lot-section .quote-box {
    padding-left: 22px;
  }

  .lot-section .quote-box select {
    min-height: 44px;
  }

  .lot-section .quote-total {
    margin: 14px 0;
  }

  .lot-section .quote-note {
    margin-bottom: 14px;
    line-height: 1.35;
  }

  .lot-section .detail-action {
    min-height: 46px;
  }

  .advisor-section.section {
    min-height: min(680px, 100svh);
  }

  .advisor-section .advisor-image {
    min-height: 0;
  }

  .advisor-section .advisor-copy {
    padding: clamp(46px, 5.5vw, 82px);
  }

  .advisor-section .advisor-copy h2 {
    font-size: clamp(2.5rem, 3.45vw, 3.75rem);
  }

  .contact-section.section {
    min-height: min(620px, 100svh);
    display: flex;
    align-items: center;
    padding: 72px 0;
  }
}

@media (min-width: 1300px) {
  .visual-story .section-heading h2 {
    white-space: nowrap;
  }

  .lot-section .lot-intro h2 {
    white-space: nowrap;
  }
}

/*
 * Composición para laptops y ventanas panorámicas con poca altura útil.
 * Mantiene cada sección completa al navegar desde el menú, sin convertir
 * el sitio en una presentación ni alterar el recorrido vertical libre.
 */
@media (min-width: 981px) and (max-height: 760px),
  (min-width: 1200px) and (min-aspect-ratio: 3 / 2) {
  .editorial.section {
    min-height: calc(100svh - 36px);
    padding: 26px 0;
    gap: clamp(32px, 5vw, 64px);
  }

  .editorial-copy h2 {
    font-size: clamp(2rem, 3vw, 2.7rem);
  }

  .editorial-copy .lead {
    font-size: 1rem;
    line-height: 1.4;
  }

  .editorial-copy > p:not(.eyebrow, .lead) {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .editorial-image img {
    max-height: 360px;
  }

  .editorial-image figcaption {
    padding: 12px 16px;
    font-size: 0.78rem;
  }

  .visual-story.section {
    min-height: 100svh;
    padding: 20px 0 24px;
  }

  .visual-story .section-heading {
    margin-bottom: 14px;
  }

  .visual-story .section-heading h2 {
    font-size: clamp(2rem, 3vw, 2.7rem);
  }

  .visual-story .heading-note > p:last-child {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .visual-story .story-grid {
    grid-template-rows: repeat(2, minmax(125px, 1fr));
    gap: 12px;
  }

  .visual-story .story-card {
    min-height: 135px;
  }

  .visual-story .story-card-large {
    min-height: 300px;
  }

  .visual-story .story-card-copy {
    padding: 18px 18px 0;
  }

  .visual-story .story-card-copy blockquote {
    font-size: 1rem;
  }

  .visual-story .story-card figcaption {
    padding: 14px;
    font-size: 0.65rem;
  }

  .lot-section.section {
    padding: 12px 0;
  }

  .lot-section .lot-intro {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 24px;
    width: calc(100% - 120px);
    margin-left: 120px;
    margin-bottom: 6px;
  }

  .lot-section .lot-intro .eyebrow {
    margin-bottom: 5px;
    font-size: 0.58rem;
  }

  .lot-section .lot-intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    white-space: nowrap;
  }

  .lot-section .lot-intro > p {
    max-width: 320px;
    padding-right: 14px;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .lot-section .lot-toolbar {
    min-height: 28px;
    width: calc(100% - 120px);
    margin-left: 120px;
    margin-bottom: 6px;
    gap: 7px;
  }

  .lot-section .filter-button {
    padding: 6px 10px;
    font-size: 0.62rem;
  }

  .lot-section .availability-summary {
    font-size: 0.62rem;
  }

  .lot-section .masterplan-panel {
    padding: 9px 12px 7px;
  }

  .lot-section .masterplan-scroll {
    padding-bottom: 0;
  }

  .lot-section .legend {
    gap: 12px;
    margin-top: 5px;
    font-size: 0.58rem;
  }

  .lot-section .lot-detail {
    grid-template-columns:
      minmax(150px, 0.5fr)
      minmax(290px, 1.15fr)
      minmax(260px, 1fr);
    gap: 12px;
    padding: 10px 16px;
  }

  .lot-section .detail-top h3 {
    font-size: 1.65rem;
  }

  .lot-section .detail-kicker,
  .lot-section .status-pill {
    font-size: 0.52rem;
  }

  .lot-section .detail-specs div {
    min-height: 50px;
    padding: 7px;
  }

  .lot-section .detail-specs strong {
    font-size: 0.88rem;
  }

  .lot-section .detail-specs span {
    font-size: 0.5rem;
  }

  .lot-section .quote-box {
    padding-left: 12px;
  }

  .lot-section .quote-box label {
    margin-bottom: 4px;
    font-size: 0.55rem;
  }

  .lot-section .quote-box select {
    min-height: 34px;
    font-size: 0.72rem;
  }

  .lot-section .quote-total {
    gap: 7px;
    margin: 7px 0;
  }

  .lot-section .quote-total span {
    font-size: 0.52rem;
  }

  .lot-section .quote-total strong {
    font-size: 1.2rem;
  }

  .lot-section .quote-note {
    margin-bottom: 7px;
    font-size: 0.52rem;
    line-height: 1.25;
  }

  .lot-section .detail-action {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.62rem;
  }

  .advisor-section.section {
    height: 100svh;
    min-height: 100svh;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

  .advisor-section .advisor-image {
    min-height: 0;
    overflow: hidden;
  }

  .advisor-section .advisor-image img {
    object-position: 50% 52%;
  }

  .advisor-section .advisor-copy {
    padding: 24px clamp(34px, 4vw, 64px);
  }

  .advisor-section .advisor-copy h2 {
    max-width: 620px;
    font-size: clamp(2rem, 2.7vw, 2.8rem);
    line-height: 1.02;
  }

  .advisor-section .advisor-copy > p,
  .advisor-section .advisor-copy li {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .advisor-section .advisor-copy li {
    padding: 6px 0 6px 22px;
  }

  .advisor-section .advisor-copy ul {
    width: 100%;
    margin: 4px 0 14px;
  }

  .contact-section.section {
    min-height: 100svh;
    padding: 36px 0;
  }

  .contact-card h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
  }
}

/*
 * Vista editorial completa para computadoras panorámicas.
 * Experiencia recupera la altura y las proporciones del diseño original;
 * Lotes y Asesores conservan sus composiciones específicas para caber
 * completos cuando se abren desde el menú.
 */
@media (min-width: 1200px) and (min-height: 761px) and (min-aspect-ratio: 3 / 2) {
  .visual-story.section {
    height: 100svh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    padding: clamp(38px, 4.2vh, 56px) 0 clamp(34px, 3.8vh, 50px);
  }

  .visual-story .section-heading {
    align-self: start;
    margin-bottom: clamp(24px, 3vh, 38px);
  }

  .visual-story .section-heading h2 {
    font-size: clamp(2.75rem, 3.55vw, 4rem);
  }

  .visual-story .heading-note > p:last-child {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .visual-story .story-grid {
    height: 100%;
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .visual-story .story-card,
  .visual-story .story-card-large {
    min-height: 0;
  }

  .visual-story .story-card-copy {
    padding: clamp(28px, 3.2vw, 46px) clamp(28px, 3.2vw, 46px) 0;
  }

  .visual-story .story-card-copy blockquote {
    font-size: clamp(1.35rem, 1.7vw, 1.95rem);
    line-height: 1.34;
  }

  .visual-story .story-card figcaption {
    padding: 20px 22px;
    font-size: 0.76rem;
  }
}

/*
 * Tablet horizontal: conserva una vista completa sin heredar la compresión
 * panorámica de computadora ni el apilado vertical propio del celular.
 */
@media (min-width: 981px) and (max-width: 1199px) {
  .visual-story.section {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .visual-story .story-grid {
    height: 100%;
  }
}

@media (min-width: 1200px) and (min-height: 761px) and (min-aspect-ratio: 3 / 2) {
  .lot-section.section {
    grid-template-rows: auto auto auto;
    align-content: center;
    gap: 14px;
    padding: 42px 0;
  }

  .lot-section .lot-intro,
  .lot-section .lot-toolbar,
  .lot-section .explorer-shell {
    width: min(1640px, calc(100vw - 180px));
    margin-right: auto;
    margin-left: auto;
  }

  .lot-section .lot-intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: 56px;
    margin-bottom: 0;
  }

  .lot-section .lot-intro .eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  .lot-section .lot-intro h2 {
    font-size: clamp(2.65rem, 3.55vw, 4.1rem);
  }

  .lot-section .lot-intro > p {
    max-width: 520px;
    padding-right: 22px;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .lot-section .lot-toolbar {
    min-height: 42px;
    margin-bottom: 0;
  }

  .lot-section .filter-button {
    padding: 9px 16px;
    font-size: 0.72rem;
  }

  .lot-section .availability-summary {
    font-size: 0.72rem;
  }

  .lot-section .masterplan-panel {
    padding: 18px 22px 14px;
  }

  .lot-section .legend {
    margin-top: 10px;
    font-size: 0.72rem;
  }

  .lot-quote-shell {
    width: min(1640px, calc(100vw - 180px));
  }
}

@media (max-width: 980px) {
  :root {
    --container: min(100% - 36px, 760px);
  }

  .site-header {
    top: 40px;
    height: 68px;
  }

  .brand-compact {
    display: none;
  }

  .site-header.scrolled {
    top: 30px;
  }

  .site-header::before {
    left: 142px;
  }

  .brand {
    width: 124px;
    height: 124px;
    margin-left: -10px;
  }

  .brand img {
    height: 110px;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu-label {
    display: block;
    color: var(--terracota-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .main-nav {
    position: fixed;
    top: 86px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 0;
    padding: 18px;
    border-radius: 18px;
    background: rgba(245, 239, 229, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .main-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 13px 12px;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .facts article:nth-child(2) {
    border-right: 1px solid rgba(127, 67, 47, 0.13);
  }

  .facts article:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .editorial,
  .section-heading,
  .lot-intro,
  .advisor-section {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .lot-intro {
    gap: 24px;
  }

  .heading-note {
    max-width: min(100%, 520px);
  }

  .story-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .story-card-large {
    grid-row: auto;
    min-height: 460px;
  }

  .story-card {
    min-height: 340px;
  }

  .explorer-shell {
    grid-template-columns: 1fr;
  }

  .lot-detail {
    min-height: 0;
    grid-template-columns: minmax(180px, 0.55fr) minmax(360px, 1.2fr);
  }

  .quote-box,
  .detail-warning {
    grid-column: 1 / -1;
  }

  .quote-box {
    padding: 24px 0 0;
    border-top: 1px solid rgba(245, 239, 229, 0.14);
    border-left: 0;
  }

  .detail-empty {
    min-height: 220px;
  }

  .advisor-section {
    width: 100%;
  }

  .advisor-image {
    min-height: 470px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 28px);
  }

  body {
    font-size: 15px;
  }

  .site-header {
    top: 34px;
    padding-left: 0;
  }

  .site-header.scrolled {
    top: 24px;
  }

  .site-header::before {
    left: 118px;
    background: var(--marfil);
    border-radius: 999px;
  }

  .brand {
    width: 104px;
    height: 104px;
    margin-left: -8px;
  }

  .brand img {
    height: 92px;
  }

  .hero-media {
    background-position: 63% center;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(18, 13, 9, 0.08) 15%, rgba(18, 13, 9, 0.86) 100%);
  }

  .hero-content {
    padding-bottom: 70px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.25rem);
  }

  h2 {
    font-size: clamp(2.25rem, 11vw, 3.6rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .facts {
    margin-top: 0;
    grid-template-columns: 1fr;
    border-radius: 0;
    width: 100%;
  }

  .facts article {
    min-height: 88px;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(127, 67, 47, 0.13);
  }

  .facts article:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 88px 0;
  }

  .editorial {
    gap: 58px;
  }

  .editorial-image figcaption {
    right: -8px;
    bottom: -28px;
  }

  .story-card-large {
    min-height: 380px;
  }

  .story-card {
    min-height: 290px;
  }

  .lot-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .filter-button {
    flex: 1 1 auto;
  }

  .availability-summary {
    width: 100%;
    margin: 8px 0 0;
  }

  .explorer-shell {
    width: 100%;
    border-radius: 0;
  }

  .masterplan-panel,
  .lot-detail {
    padding: 22px 16px;
  }

  .lot-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .quote-box,
  .detail-warning {
    grid-column: auto;
  }

  .detail-specs {
    width: 100%;
  }

  .detail-top {
    align-items: center;
  }

  .advisor-image {
    min-height: 340px;
  }

  .advisor-copy {
    padding: 70px 24px;
  }

  .contact-actions .button {
    width: 100%;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 68px;
    border-radius: 28px 28px 8px 8px;
  }
}

/*
 * Navegación editorial por pantallas completas.
 * El plano y la ficha comercial viven en secciones independientes para que
 * ninguna de las dos compita por altura ni aparezca recortada.
 */
.lot-quote-section {
  color: var(--marfil);
  background:
    radial-gradient(circle at 78% 15%, rgba(166, 83, 50, 0.26), transparent 34%),
    var(--nogal);
}

.lot-quote-shell {
  width: var(--container);
  margin: 0 auto;
}

.lot-quote-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.lot-quote-heading .eyebrow {
  margin-bottom: 8px;
}

.lot-quote-heading h2 {
  max-width: 760px;
  margin: 0;
  color: var(--marfil);
  font-size: clamp(2.35rem, 4.2vw, 4.7rem);
  line-height: 0.98;
}

.lot-quote-section .lot-detail {
  width: 100%;
  border: 1px solid rgba(245, 239, 229, 0.14);
  border-radius: 22px;
  background: rgba(91, 57, 40, 0.42);
  box-shadow: 0 32px 80px rgba(20, 11, 7, 0.26);
}

@media (min-width: 981px) {
  .lot-section.section {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: center;
    padding: clamp(30px, 4vh, 54px) 0;
  }

  .lot-section .explorer-shell {
    align-self: center;
  }

  .lot-quote-section.section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: clamp(42px, 6vh, 76px) 0;
  }

  .lot-quote-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(30px, 5vh, 62px);
  }

  .lot-quote-section .lot-detail {
    align-self: center;
    min-height: min(500px, 58svh);
    padding: clamp(30px, 4vw, 58px);
  }

  .lot-quote-section .detail-top h3 {
    font-size: clamp(3rem, 5vw, 5.5rem);
  }

  .lot-quote-section .detail-specs div {
    min-height: 118px;
    padding: 20px;
  }

  .lot-quote-section .quote-box {
    padding-left: clamp(24px, 3vw, 44px);
  }

  .advisor-section.section,
  .contact-section.section {
    min-height: 100svh;
  }
}

@media (min-width: 981px) and (max-height: 760px),
  (min-width: 1200px) and (min-aspect-ratio: 3 / 2) {
  .lot-section.section {
    height: 100svh;
    min-height: 100svh;
    padding: 18px 0;
  }

  .lot-section .lot-intro {
    margin-bottom: 8px;
  }

  .lot-section .masterplan-panel {
    padding: 12px 16px 10px;
  }

  .lot-quote-section.section {
    height: 100svh;
    min-height: 100svh;
    padding: 30px 0;
  }

  .lot-quote-shell {
    gap: 3px;
  }

  .lot-quote-heading h2 {
    font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  }

  .lot-quote-section .lot-detail {
    min-height: min(430px, 64svh);
    padding: 28px 34px;
  }

  .lot-quote-section .detail-top h3 {
    font-size: 3.6rem;
  }

  .lot-quote-section .detail-specs div {
    min-height: 92px;
    padding: 14px;
  }

  .lot-quote-section .quote-total strong {
    font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  }

  .advisor-section.section,
  .contact-section.section {
    height: 100svh;
    min-height: 100svh;
  }
}

@media (max-width: 980px) {
  .lot-quote-section.section {
    padding: 92px 0;
  }

  .lot-quote-shell {
    display: grid;
    gap: 38px;
  }

  .lot-quote-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .lot-quote-section.section {
    padding: 82px 0;
  }

  .lot-quote-heading h2 {
    font-size: clamp(2.2rem, 12vw, 3.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/*
 * Revisión 38 · Lotes como mesa de trabajo única.
 * El plano permanece arriba y la ficha-cotizador se actualiza debajo,
 * sin enviar al visitante a otra pantalla.
 */
@media (min-width: 981px) {
  .lot-section.section {
    min-height: 100svh;
    height: 100svh;
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-content: center;
    gap: 10px;
    padding: 18px 0;
  }

  .lot-section .lot-intro,
  .lot-section .lot-toolbar,
  .lot-section .explorer-shell,
  .lot-section .lot-detail {
    width: min(1640px, calc(100vw - 180px));
    margin-right: auto;
    margin-left: auto;
  }

  .lot-section .lot-intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    align-items: center;
    gap: 48px;
    margin-bottom: 0;
  }

  .lot-section .lot-intro .eyebrow {
    margin-bottom: 4px;
    font-size: 0.62rem;
  }

  .lot-section .lot-intro h2 {
    font-size: clamp(2rem, 2.8vw, 3.3rem);
    line-height: 1;
    white-space: nowrap;
  }

  .lot-section .lot-intro > p {
    max-width: 500px;
    margin: 0;
    padding-right: 18px;
    border-right: 1px solid rgba(166, 83, 50, 0.34);
    font-size: 0.76rem;
    line-height: 1.4;
    text-align: right;
  }

  .lot-section .lot-toolbar {
    min-height: 32px;
    margin-bottom: 0;
  }

  .lot-section .filter-button {
    padding: 7px 12px;
    font-size: 0.65rem;
  }

  .lot-section .availability-summary {
    font-size: 0.65rem;
  }

  .lot-section .explorer-shell {
    border-radius: 18px 18px 0 0;
    box-shadow: none;
  }

  .lot-section .masterplan-panel {
    padding: 10px 16px 8px;
  }

  .lot-section .masterplan-scroll {
    padding-bottom: 0;
  }

  .lot-section .masterplan {
    min-width: 980px;
  }

  .lot-section .legend {
    gap: 14px;
    margin-top: 5px;
    font-size: 0.6rem;
  }

  .lot-section .lot-detail {
    grid-template-columns:
      minmax(150px, 0.5fr)
      minmax(360px, 1.2fr)
      minmax(330px, 1fr);
    gap: 18px;
    min-height: 172px;
    padding: 14px 22px;
    border: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 24px 54px rgba(59, 36, 24, 0.18);
  }

  .lot-section .detail-empty {
    min-height: 136px;
  }

  .lot-section .detail-top h3 {
    font-size: 2rem;
  }

  .lot-section .detail-kicker,
  .lot-section .status-pill {
    font-size: 0.55rem;
  }

  .lot-section .detail-specs div {
    min-height: 58px;
    padding: 9px 11px;
  }

  .lot-section .detail-specs strong {
    font-size: 0.95rem;
  }

  .lot-section .detail-specs span {
    font-size: 0.52rem;
  }

  .lot-section .quote-box {
    padding-left: 18px;
  }

  .lot-section .quote-box label {
    margin-bottom: 5px;
    font-size: 0.56rem;
  }

  .lot-section .quote-box select {
    min-height: 38px;
    font-size: 0.76rem;
  }

  .lot-section .quote-total {
    gap: 2px;
    margin: 8px 0;
  }

  .lot-section .quote-total span,
  .lot-section .quote-note {
    font-size: 0.54rem;
  }

  .lot-section .quote-total strong {
    font-size: clamp(1.3rem, 2vw, 2rem);
  }

  .lot-section .quote-note {
    margin-bottom: 8px;
    line-height: 1.25;
  }

  .lot-section .detail-action {
    min-height: 36px;
    padding: 0 16px;
    font-size: 0.64rem;
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .lot-section.section {
    gap: 6px;
    padding: 10px 0;
  }

  .lot-section .lot-intro > p {
    display: none;
  }

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

  .lot-section .lot-intro h2 {
    font-size: clamp(1.75rem, 2.4vw, 2.7rem);
  }

  .lot-section .masterplan-panel {
    padding-top: 7px;
    padding-bottom: 6px;
  }

  .lot-section .lot-detail {
    min-height: 154px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 980px) {
  .lot-section .lot-detail {
    width: var(--container);
    margin: 20px auto 0;
    border-radius: 18px;
  }

  .footer-brand-lockup { width: min(100%, 520px); }
}

@media (max-width: 640px) {
  .site-footer { padding: 54px 22px 30px; }

  .footer-brand-lockup { width: min(100%, 360px); }
}

/* Ubicación · mapa conceptual de referencias del entorno */
.location-section {
  position: relative;
  overflow: hidden;
  color: var(--marfil);
  background:
    radial-gradient(circle at 84% 8%, rgba(212, 174, 125, 0.18), transparent 29%),
    linear-gradient(135deg, #2d1a10 0%, var(--nogal) 62%, #301b11 100%);
}

.location-section::before {
  content: "";
  position: absolute;
  right: -210px;
  bottom: -300px;
  width: 660px;
  height: 660px;
  border: 1px solid rgba(212, 174, 125, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(212, 174, 125, 0.05),
    0 0 0 116px rgba(212, 174, 125, 0.025);
}

.location-intro,
.location-layout {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin-right: auto;
  margin-left: auto;
}

.location-intro {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 16px;
  margin-bottom: clamp(24px, 4vh, 46px);
}

.location-intro h2 {
  max-width: 790px;
  margin-bottom: 0;
  font-size: clamp(1.9rem, 2.65vw, 3.3rem);
  line-height: 1.05;
}

.location-intro > p {
  max-width: 620px;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid rgba(212, 174, 125, 0.68);
  color: rgba(245, 239, 229, 0.82);
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(300px, 0.56fr);
  align-items: end;
  gap: clamp(18px, 2vw, 24px);
}

.location-map {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(245, 239, 229, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(64, 40, 26, 0.055) 1px, transparent 1px) 0 0 / 62px 62px,
    linear-gradient(rgba(64, 40, 26, 0.055) 1px, transparent 1px) 0 0 / 62px 62px,
    linear-gradient(145deg, #f4eee3 0%, #e9ddca 100%);
  box-shadow: 0 28px 54px rgba(18, 10, 6, 0.2);
}

.location-map::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(64, 40, 26, 0.1);
  border-radius: 13px;
  pointer-events: none;
  z-index: 2;
}

.location-map-real {
  background: #e9e5da;
}

.location-map-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.location-map-label {
  position: absolute;
  z-index: 3;
  transform: translate(calc(-100% - 12px), -50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--nogal);
  color: var(--marfil);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(18, 10, 6, 0.3);
}

.location-map-label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 8px;
  height: 8px;
  background: var(--nogal);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 1px;
}

@media (max-width: 640px) {
  .location-map-label { padding: 4px 9px; font-size: 0.58rem; }
}

.map-caption {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 30px;
  color: rgba(64, 40, 26, 0.56);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.map-road {
  position: absolute;
  display: block;
  pointer-events: none;
}

.map-road-main {
  z-index: 1;
  top: 52%;
  left: -5%;
  width: 114%;
  height: 62px;
  border-top: 3px solid rgba(64, 40, 26, 0.34);
  border-bottom: 3px solid rgba(64, 40, 26, 0.34);
  background: rgba(158, 148, 129, 0.28);
  box-shadow: 0 0 0 8px rgba(158, 148, 129, 0.12);
  transform: rotate(-4deg);
}

.map-road-main::before,
.map-road-main::after {
  content: "";
  position: absolute;
  top: 29px;
  left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(64, 40, 26, 0.42) 0 17px, transparent 17px 34px);
}

.map-road-main b {
  position: absolute;
  top: -29px;
  left: 43%;
  color: var(--nogal);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.map-road-secondary {
  z-index: 0;
  width: 34px;
  height: 71%;
  border-right: 2px solid rgba(64, 40, 26, 0.23);
  border-left: 2px solid rgba(64, 40, 26, 0.23);
  background: rgba(214, 203, 184, 0.28);
}

.road-one { top: 9%; left: 29%; transform: rotate(34deg); }
.road-two { right: 24%; bottom: 5%; transform: rotate(-29deg); }

.map-road-tertiary {
  z-index: 0;
  top: 29%;
  right: 8%;
  width: 51%;
  height: 2px;
  background: rgba(64, 40, 26, 0.18);
  transform: rotate(22deg);
}

.map-pin {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 210px;
  color: var(--nogal);
}

.map-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(64, 40, 26, 0.28);
  border-radius: 7px;
  background: rgba(245, 239, 229, 0.94);
  box-shadow: 0 7px 14px rgba(39, 23, 14, 0.11);
}

.map-symbol svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--terracota);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.map-symbol-project {
  width: 38px;
  height: 38px;
  border-color: var(--terracota);
  border-radius: 10px;
  background: var(--nogal);
}

.map-symbol-project svg {
  stroke: var(--cantera);
}

.map-pin strong,
.map-pin small { display: block; }

.map-pin strong {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}

.map-pin small {
  margin-top: 2px;
  color: rgba(64, 40, 26, 0.62);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-pin-project { top: 42%; left: 39%; }
.map-pin-project strong { color: var(--nogal); font-size: 0.94rem; }
.map-pin-health { top: 18%; left: 14%; }
.map-pin-school { top: 16%; right: 10%; }
.map-pin-plaza { right: 9%; bottom: 16%; }
.map-pin-general { bottom: 13%; left: 13%; }
.map-pin-market { top: 30%; right: 32%; }
.map-pin-gas { bottom: 28%; left: 33%; }

.location-panel {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 24px;
  border: 1px solid rgba(212, 174, 125, 0.4);
  border-radius: 20px;
  background: rgba(75, 45, 28, 0.72);
  box-shadow: 0 28px 54px rgba(18, 10, 6, 0.16);
}

.location-panel h3 {
  margin: 0 0 18px;
  color: var(--marfil);
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
  line-height: 1.12;
}

.location-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-list li {
  display: grid;
  grid-template-columns: 29px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(245, 239, 229, 0.12);
}

.location-list .dot {
  display: block;
  width: 13px;
  height: 13px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--dot, var(--cantera));
  box-shadow: 0 0 0 3px rgba(245, 239, 229, 0.14);
}

.location-list p {
  margin: 0;
  color: rgba(245, 239, 229, 0.72);
  font-size: 0.78rem;
  line-height: 1.45;
}

.location-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--marfil);
  font-size: 0.76rem;
}

.location-disclaimer {
  margin: auto 0 0;
  padding-top: 12px;
  color: rgba(245, 239, 229, 0.48);
  font-size: 0.62rem;
  line-height: 1.45;
}

@media (min-width: 1100px) {
  .location-section.section {
    min-height: 100svh;
    height: 100svh;
    display: grid;
    align-content: center;
    padding: clamp(30px, 5vh, 52px) 0;
  }

  .location-intro { margin-bottom: clamp(18px, 3vh, 30px); }
  .location-intro h2 {
    max-width: none;
    font-size: clamp(2.4rem, 2.6vw, 2.85rem);
    white-space: nowrap;
  }
  .location-intro > p {
    max-width: 720px;
    font-size: 1.15rem;
    line-height: 1.6;
  }
  .location-map { min-height: 0; height: clamp(350px, 49svh, 500px); }
  .location-panel {
    min-height: 0;
    max-height: clamp(460px, 62svh, 660px);
    padding: 20px 24px 16px;
    overflow-y: auto;
  }
  .location-panel h3 { margin-bottom: 8px; font-size: clamp(1.15rem, 1.5vw, 1.55rem); }
  .location-list li { padding: 6px 0; }
  .location-list .dot { width: 10px; height: 10px; margin-top: 3px; }
  .location-list p { font-size: 0.66rem; line-height: 1.35; }
  .location-list strong { font-size: 0.7rem; margin-bottom: 1px; }
  .location-disclaimer { padding-top: 8px; font-size: 0.56rem; }
}

@media (max-width: 980px) {
  .location-intro,
  .location-layout { grid-template-columns: 1fr; }

  .location-intro { gap: 20px; }
  .location-intro > p {
    max-width: 620px;
    padding: 0 0 0 18px;
    border-top: 0;
    border-right: 0;
    border-left: 1px solid rgba(212, 174, 125, 0.68);
    text-align: left;
  }

  .location-layout { gap: 20px; }
  .location-panel { min-height: 0; }
}

@media (max-width: 640px) {
  .location-section.section { padding: 80px 0; }
  .location-map { min-height: 500px; }
  .location-map::after { inset: 15px; }
  .map-caption { top: 24px; left: 24px; }
  .map-road-main { top: 51%; height: 52px; }
  .map-road-main::before,
  .map-road-main::after { top: 24px; }
  .map-road-main b { top: -24px; left: 34%; font-size: 0.86rem; }
  .map-pin { max-width: 155px; gap: 7px; }
  .map-pin strong { font-size: 0.67rem; }
  .map-pin small { font-size: 0.52rem; }
  .map-pin-project { top: 42%; left: 31%; }
  .map-pin-project strong { font-size: 0.78rem; }
  .map-pin-health { top: 18%; left: 8%; }
  .map-pin-school { top: 20%; right: 5%; }
  .map-pin-plaza { right: 5%; bottom: 16%; }
  .map-pin-general { bottom: 13%; left: 8%; }
  .map-pin-market { top: 31%; right: 26%; }
  .map-pin-gas { bottom: 29%; left: 29%; }
  .location-panel { padding: 28px 22px 24px; }
}

/* =======================================================
   AMENIDADES — sección nueva (ago 2026)
   ======================================================= */
.amenities-section {
  padding: 116px 0 96px;
  background:
    radial-gradient(circle at 88% 8%, rgba(212, 174, 125, 0.22), transparent 32%),
    var(--marfil);
}

.amenities-intro {
  width: var(--container);
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 64px;
}

.amenities-intro h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.14;
}

.amenities-intro > p {
  max-width: 440px;
  margin: 0 0 8px;
  color: rgba(59, 36, 24, 0.66);
}

.amenities-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.amenity-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(127, 67, 47, 0.13);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.amenity-card .amenity-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: zoom-in;
}

.amenity-card .amenity-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.amenity-card .amenity-media:hover img,
.amenity-card .amenity-media:focus-visible img {
  transform: scale(1.05);
}

.amenity-card .amenity-media::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--marfil);
  background: rgba(24, 14, 9, 0.5);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.amenity-card .amenity-media:hover::after,
.amenity-card .amenity-media:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.amenity-card .amenity-media:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
}

/* Lightbox de amenidades */
body.lightbox-open {
  overflow: hidden;
}

.amenity-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(24, 14, 9, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.amenity-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.amenity-lightbox figure {
  position: relative;
  margin: 0;
  max-width: min(1100px, 92vw);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}

.amenity-lightbox.is-open figure {
  transform: scale(1);
}

.amenity-lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.amenity-lightbox figcaption {
  margin-top: 16px;
  color: var(--marfil);
  font-family: var(--serif);
  font-size: 1.05rem;
  text-align: center;
}

.amenity-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 239, 229, 0.35);
  border-radius: 50%;
  background: rgba(24, 14, 9, 0.6);
  color: var(--marfil);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.amenity-lightbox-close:hover,
.amenity-lightbox-close:focus-visible {
  background: var(--terracota);
  border-color: var(--terracota);
}

@media (max-width: 560px) {
  .amenity-lightbox { padding: 20px; }
  .amenity-lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 1.4rem; }
}

.amenity-card .amenity-body {
  padding: 18px 18px 20px;
}

.amenity-card .amenity-body .tag {
  display: block;
  margin-bottom: 6px;
  color: var(--ocre);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.amenity-card h3 {
  margin-bottom: 6px;
  font-size: 1.04rem;
}

.amenity-card p {
  margin: 0;
  color: rgba(59, 36, 24, 0.66);
  font-size: 0.85rem;
  line-height: 1.5;
}

.amenities-disclaimer {
  width: var(--container);
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(127, 67, 47, 0.16);
  color: rgba(59, 36, 24, 0.5);
  font-size: 0.75rem;
  font-style: italic;
}

@media (max-width: 1080px) {
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .amenities-intro { grid-template-columns: 1fr; gap: 18px; }
  .amenities-intro > p { text-align: left; max-width: none; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* =======================================================
   Franja del menú un poco más ancha — para que quepa
   "Amenidades" sin encimar el resto de las palabras.
   Solo afecta el header; el resto del sitio conserva
   --container sin cambios.
   ======================================================= */
@media (min-width: 981px) {
  .site-header {
    width: min(1280px, calc(100vw - 40px));
  }

  .main-nav {
    gap: 19px;
  }
}

/* ===== Modal de registro — gate de acceso al brochure digital ===== */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 14, 9, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.lead-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lead-modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--marfil);
  border-radius: 22px;
  padding: 36px 30px;
  box-shadow: 0 28px 70px rgba(59, 36, 24, 0.24);
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.lead-modal.is-open .lead-modal-card {
  transform: translateY(0);
}

.lead-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--nogal);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lead-modal-close:hover {
  background: var(--cantera);
}

.lead-modal-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 10px;
  color: var(--nogal);
}

.lead-modal-copy {
  color: var(--nogal-soft);
  font-size: 0.92rem;
  margin: 0 0 22px;
}

.lead-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nogal-soft);
  margin-bottom: 14px;
}

.lead-form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e6d9c4;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--nogal);
  background: #fff;
}

.lead-form input:focus {
  outline: none;
  border-color: var(--terracota);
}

.lead-form .lead-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}

.lead-form-note {
  font-size: 0.72rem;
  color: var(--plomo);
  margin-top: 14px;
  text-align: center;
}

body.lead-modal-open {
  overflow: hidden;
}
