/* ============================================
   Loteo Los Condes — Estilos de marca
   Paleta: navy #111827 · oro #C5A059 · charcoal #1E2229
   ============================================ */

:root {
  --color-navy: #111827;
  --color-charcoal: #1e2229;
  --color-gold: #c5a059;
  --color-gold-hover: #b08d45;
  --color-gold-soft: rgba(197, 160, 89, 0.12);
  --color-bg: #fafafa;
  --color-bg-muted: #f4f4f5;
  --color-white: #ffffff;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --header-h: 5.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Tipografía de marca */
.font-serif {
  font-family: var(--font-serif);
}

.brand-display {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    backdrop-filter 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header:not(.is-scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.site-header:not(.is-scrolled) .nav-link:hover {
  color: var(--color-gold);
}

.site-header:not(.is-scrolled) .logo-img {
  filter: brightness(0) invert(1);
}

.site-header.is-scrolled .nav-link {
  color: var(--color-navy);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
  color: var(--color-gold);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.35rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-gold:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.35rem;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(197, 160, 89, 0.08);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.35rem;
  border: 1.5px solid var(--color-navy);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-outline-dark:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--color-charcoal);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav a:hover {
  color: var(--color-gold);
}

/* Hero — full-bleed, una sola composición */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-ken 18s var(--ease-out) forwards;
}

.hero__video {
  display: block;
  pointer-events: none;
}

@keyframes hero-ken {
  to {
    transform: scale(1);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 24, 39, 0.88) 0%,
    rgba(17, 24, 39, 0.45) 45%,
    rgba(17, 24, 39, 0.25) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 5.5rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 5.75rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0.35rem 0 0.75rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.15s forwards;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1rem;
  max-width: 32rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.3s forwards;
}

.hero__lead {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36rem;
  margin: 0 0 1.75rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.45s forwards;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.6s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 1s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.7);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Secciones */
.section {
  padding: 5rem 0;
}

.section--muted {
  background: var(--color-bg-muted);
}

.section--dark {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-head {
  margin-bottom: 2.75rem;
  max-width: 38rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 40rem;
}

.section-head__accent {
  display: inline;
  color: var(--color-navy);
  font-weight: 700;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0.4rem 0 0.75rem;
  color: var(--color-navy);
}

.section--dark .section-head h2 {
  color: var(--color-white);
}

.section-head p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section-head p + p {
  margin-top: 0.45rem;
}

.section--dark .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

/* El loteo */
.loteo {
  padding-bottom: 4.5rem;
}

.loteo__intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.loteo__intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0.4rem 0 1rem;
  color: var(--color-navy);
}

.loteo__lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 36rem;
}

.loteo__visual {
  margin: 0;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 16rem;
  max-height: 28rem;
  background: var(--color-charcoal);
}

.loteo__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.loteo__points {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .loteo__points {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
  }
}

.loteo__points li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gold);
}

.loteo__points-value {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.2;
}

.loteo__points-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  max-width: 16rem;
}

/* Servicios — grid sin “cards” pesadas */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }
}

.service-item {
  padding: 0.25rem 0.5rem 0.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
}

.service-item svg {
  width: 1.65rem;
  height: 1.65rem;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 0.85rem;
}

.service-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.service-item p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

/* Galería */
.gallery-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-charcoal);
  margin: 0;
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.gallery-item--featured {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.gallery-item--wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

@media (min-width: 768px) {
  .gallery-mosaic {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: minmax(11rem, 1fr) minmax(11rem, 1fr) auto;
    gap: 0.25rem;
    min-height: 34rem;
  }

  .gallery-item--featured {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: auto;
    height: 100%;
  }

  .gallery-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: auto;
    height: 100%;
  }

  .gallery-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: auto;
    height: 100%;
  }

  .gallery-item--wide {
    grid-column: 1 / -1;
    grid-row: 3;
    aspect-ratio: 21 / 9;
    height: auto;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1rem 1rem;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.75), transparent);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 95vw;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

/* Disponibilidad */
.price-bands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .price-bands {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

.price-band {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-top: 2px solid var(--color-gold);
  background: var(--color-bg-muted);
}

.price-band__size {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.price-band__price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.15;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--color-gold);
  color: var(--color-navy);
  background: var(--color-gold-soft);
}

.lots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (min-width: 560px) {
  .lots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .lots-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.55rem;
  }
}

.lot-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: inherit;
  text-decoration: none;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.lot-tile:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-soft);
  transform: translateY(-1px);
}

.lot-tile.is-selected {
  border-color: var(--color-gold);
  background: var(--color-gold-soft);
  box-shadow: inset 0 0 0 1px var(--color-gold);
}

.lot-tile.is-hidden {
  display: none;
}

.lot-tile__num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}

.lot-tile__m2 {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.2;
}

.lot-tile__price {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold-hover);
  line-height: 1.2;
  margin-top: 0.15rem;
}

.price-note {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Inversión */
/* Inversión */
.invest {
  padding-bottom: 0;
  background: var(--color-bg);
}

.invest__intro {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.invest__intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0.4rem 0 1rem;
  color: var(--color-navy);
}

.invest__intro p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.invest__reasons {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .invest__reasons {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
  }
}

.invest__reasons li {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gold);
}

.invest__reason-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.2;
}

.invest__reason-text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 18rem;
}

.invest__finance {
  background: var(--color-charcoal);
  padding: 2.75rem 0;
}

.invest__finance-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .invest__finance-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }
}

.invest__finance-copy {
  max-width: 32rem;
}

.invest__finance-copy .eyebrow {
  margin: 0 0 0.35rem;
}

.invest__finance-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 0.55rem;
  line-height: 1.2;
}

.invest__finance-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.55;
}

.invest__finance .btn-gold {
  flex-shrink: 0;
}

/* Contacto / CTA final */
#contacto {
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-cta {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.contact-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.65rem);
  font-weight: 600;
  margin: 0.4rem 0 1rem;
  color: var(--color-white);
  line-height: 1.2;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.75rem;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-top: 1.25rem;
}

.contact-phone:hover {
  color: #d4b87a;
}

/* Footer */
.site-footer {
  background: #16191f;
  color: rgba(255, 255, 255, 0.55);
  padding: 2.5rem 0 6rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-brand img {
  height: 3.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #25d366;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.wa-float svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  flex-shrink: 0;
}

.wa-float__label {
  display: none;
}

@media (min-width: 640px) {
  .wa-float__label {
    display: inline;
  }
}

/* Puntas redondeadas en CTAs de WhatsApp */
a.btn-gold[href*="wa.me"],
a.btn-outline[href*="wa.me"],
a.btn-outline-dark[href*="wa.me"],
.lot-modal__cta {
  border-radius: 999px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utilidades */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header:not(.is-scrolled) .menu-toggle {
  color: white;
}

.site-header.is-scrolled .menu-toggle {
  color: var(--color-navy);
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .desktop-nav {
    display: block !important;
  }

  #header-wa {
    display: inline-flex !important;
  }
}

/* Mapa / Ubicación */
.map-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--color-navy);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem;
}

.map-title__strong {
  font-weight: 700;
  color: var(--color-navy);
}

#ubicacion .section-head {
  max-width: 56rem;
}

#ubicacion .section-head p {
  white-space: nowrap;
}

@media (max-width: 900px) {
  #ubicacion .section-head p {
    white-space: normal;
  }
}

.map-block {
  max-width: 56rem;
  margin: 0 auto;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.map-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
}

.map-dot--available {
  background: #6b9e4a;
}

.map-dot--reserved {
  background: #e8b84a;
}

.map-dot--sold {
  background: #9ca3af;
}

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  max-height: 520px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-muted);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 640px) {
  .map-frame {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

/* Plano interactivo */
.plan-block {
  max-width: 64rem;
  margin: 0 auto;
}

.plan-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 0.85rem;
}

.plan-map {
  position: relative;
  width: 100%;
  border: 1px solid var(--color-border);
  background: #1a1a1a;
  overflow: hidden;
  line-height: 0;
}

.plan-map img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

.plan-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.plan-lot {
  fill: rgba(34, 160, 80, 0.28);
  stroke: rgba(22, 130, 60, 0.85);
  stroke-width: 1.75;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.plan-lot:hover,
.plan-lot:focus {
  fill: rgba(34, 160, 80, 0.5);
  stroke: #16a34a;
  stroke-width: 2.5;
  outline: none;
}

.plan-lot.is-highlighted {
  fill: rgba(34, 160, 80, 0.62);
  stroke: #4ade80;
  stroke-width: 3;
}

.plan-lot.is-highlighted.is-pulsing {
  animation: plan-lot-pulse 0.9s ease-out 2;
}

.plan-lot--vendido {
  fill: rgba(200, 50, 50, 0.35);
  stroke: rgba(180, 40, 40, 0.9);
  cursor: default;
}

.plan-lot--vendido:hover,
.plan-lot--vendido:focus {
  fill: rgba(200, 50, 50, 0.5);
  stroke: #dc2626;
}

.plan-lot--vendido.is-highlighted {
  fill: rgba(220, 60, 60, 0.65);
  stroke: #f87171;
}

@keyframes plan-lot-pulse {
  0% {
    fill: rgba(34, 160, 80, 0.35);
  }
  45% {
    fill: rgba(34, 160, 80, 0.78);
  }
  100% {
    fill: rgba(34, 160, 80, 0.55);
  }
}

/* Modal de lote */
.lot-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lot-modal.is-open {
  display: flex;
}

.lot-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(4px);
}

.lot-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 24rem;
  background: var(--color-white);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: fade-up 0.35s var(--ease-out);
}

.lot-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
}

.lot-modal__close:hover {
  color: var(--color-navy);
}

.lot-modal__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  margin: 0.25rem 0 1.25rem;
  color: var(--color-navy);
  line-height: 1.1;
}

.lot-modal__facts {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0;
}

.lot-modal__facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.lot-modal__facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.lot-modal__facts dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: right;
}

.lot-modal__price {
  color: var(--color-gold-hover) !important;
  font-family: var(--font-serif);
  font-size: 1.35rem !important;
}

.lot-modal__note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.lot-modal__cta {
  width: 100%;
}
