/* ============================================
   NATURA RESIDENCIAL — styles.css
   Paleta: verde #1f5a44 · terracota #b86d52 ·
   crema #f2e9d8 · fondo #fafbfc · texto #3a4f66
   ============================================ */

:root {
  --verde: #1f5a44;
  --verde-oscuro: #174534;
  --terracota: #b86d52;
  --terracota-oscuro: #9e5940;
  --crema: #f2e9d8;
  --fondo: #fafbfc;
  --texto: #3a4f66;
  --blanco: #ffffff;
  --sombra: 0 8px 30px rgba(31, 90, 68, .12);
  --radio: 18px;
  --font-head: 'Poppins', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
}

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

h1, h2, h3, .logo { font-family: var(--font-head); }

.container { width: min(1140px, 92%); margin: 0 auto; }

.section { padding: 80px 0; }

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--verde);
  margin-bottom: 18px;
}

.section-text {
  max-width: 720px;
  font-size: 1.05rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 38px; font-size: 1rem; }
.btn-green { background: var(--verde); color: var(--blanco); }
.btn-green:hover { background: var(--verde-oscuro); }
.btn-terracota { background: var(--terracota); color: var(--blanco); }
.btn-terracota:hover { background: var(--terracota-oscuro); }
.btn-cream { background: var(--crema); color: var(--verde); }
.btn-cream:hover { background: var(--blanco); }
.btn-outline { border-color: var(--blanco); color: var(--blanco); background: transparent; }
.btn-outline:hover { background: var(--blanco); color: var(--verde); }

/* ---------- Header (barra flotante tipo pill) ---------- */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 4%;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--crema);
  border-radius: 999px;
  box-shadow: var(--sombra);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 26px;
  transition: box-shadow .3s ease;
}

.site-header.scrolled .header-inner { box-shadow: 0 10px 34px rgba(31, 90, 68, .22); }

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--verde);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: .06em;
}
.logo small {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--terracota);
}
.logo-leaf { width: 30px; height: 30px; color: var(--terracota); flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }
.logo-img-footer { height: 52px; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none;
  color: var(--texto);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
  transition: color .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--terracota); }
.main-nav .nav-cta { color: var(--blanco); padding: 10px 24px; }
.main-nav .nav-cta:hover { color: var(--blanco); }

/* Switcher de idioma */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(31, 90, 68, .09);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  color: var(--texto);
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.lang-switch a.active { background: var(--verde); color: var(--blanco); }
.lang-switch a:not(.active):hover { color: var(--terracota); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--verde);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanco);
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 69, 52, .55) 0%, rgba(23, 69, 52, .35) 50%, rgba(23, 69, 52, .65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, 92%);
  padding: 140px 0 80px;
}

.hero-logo-img {
  width: min(320px, 72%);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .35));
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 34px;
  opacity: .95;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Specs banner (terracota) ---------- */
.specs-banner {
  background: var(--terracota);
  color: var(--blanco);
  padding: 18px 4%;
  overflow: hidden;
}
.specs-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
  text-align: center;
}
.specs-track i { font-style: normal; opacity: .6; }

/* ---------- Iconos línea ---------- */
.icon-row, .amenity-grid { display: grid; gap: 28px; }

.icon-row {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 48px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.icon-item svg {
  width: 52px;
  height: 52px;
  color: var(--terracota);
  stroke-width: 1.4;
}
/* Iconos propios (PNG terracota) */
.icon-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.icon-item span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  color: var(--verde);
  max-width: 170px;
}

/* ---------- Intro ---------- */
.intro { background: var(--blanco); text-align: center; }
.intro .section-text { margin: 0 auto; }

/* ---------- Por qué (bloque verde) ---------- */
.porque {
  background: var(--verde);
  color: var(--blanco);
  text-align: center;
}
.porque .section-title { color: var(--crema); }
.porque .section-text { margin: 0 auto; opacity: .92; }

.porque-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--crema);
  line-height: 1.1;
}
.stat span {
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .8;
}

/* ---------- Amenidades ---------- */
.amenidades { background: var(--crema); text-align: center; }
.amenidades .section-text { margin: 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 46px 0 56px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  transition: transform .3s ease;
}
.gallery-grid img:hover { transform: scale(1.025); }

.amenity-grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Promoción / Preventa ---------- */
.promo { background: var(--blanco); }

.promo-head { text-align: center; margin-bottom: 46px; }
.promo-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blanco);
  background: var(--terracota);
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.promo-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1;
  color: var(--verde);
}
.promo-price small {
  font-size: .28em;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--terracota);
  vertical-align: super;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.promo-package {
  background: var(--crema);
  border-radius: var(--radio);
  padding: 38px 34px;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
}
.promo-package h3,
.promo-calc h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--verde);
  margin-bottom: 22px;
}
.promo-list { list-style: none; display: grid; gap: 16px; margin-bottom: 24px; }
.promo-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--texto);
}
.promo-list svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--terracota);
}
.promo-note { font-size: .9rem; opacity: .8; margin-bottom: 24px; }
.promo-package .btn { align-self: flex-start; margin-top: auto; }

.promo-calc {
  background: var(--verde);
  color: var(--blanco);
  border-radius: var(--radio);
  padding: 38px 34px;
  box-shadow: var(--sombra);
}
.promo-calc h3 { color: var(--crema); }

.calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.calc-fields label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .9);
}
.calc-fields input,
.calc-fields select {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, .97);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto);
}
.calc-fields input:focus,
.calc-fields select:focus { outline: 3px solid var(--terracota); }

.calc-results {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 20px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: .95rem;
}
.calc-row span { opacity: .85; }
.calc-row strong { font-family: var(--font-head); font-weight: 700; color: var(--crema); }
.calc-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.calc-total span { font-size: 1.02rem; opacity: 1; }
.calc-total strong {
  font-size: 1.7rem;
  color: var(--blanco);
}
.calc-note { font-size: .76rem; opacity: .78; margin-top: 18px; line-height: 1.5; }
.calc-note strong { color: var(--crema); }

/* ---------- Ubicación ---------- */
.ubicacion { background: var(--blanco); }

.ubicacion-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-top: 46px;
  align-items: start;
}

.map-wrap { display: flex; flex-direction: column; gap: 18px; }
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.map-wrap .btn { align-self: flex-start; }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map-address {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--texto);
  margin: -4px 0 0;
}
.map-address strong { font-family: var(--font-head); color: var(--verde); }

.puntos-list { list-style: none; display: grid; gap: 12px; }
.puntos-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--fondo);
  border: 1px solid rgba(31, 90, 68, .1);
  border-radius: 12px;
  padding: 12px 18px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .93rem;
}
.puntos-list li::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terracota);
  flex-shrink: 0;
}

/* ---------- Carrusel espacios ---------- */
.espacios { background: var(--fondo); text-align: center; }

.carousel { position: relative; margin-top: 46px; }

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 20px;
  border-radius: var(--radio);
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 min(680px, 100%);
  scroll-snap-align: center;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--sombra);
  transition: background .2s ease;
}
.carousel-btn:hover { background: var(--terracota); }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(31, 90, 68, .25);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.carousel-dots button.active { background: var(--terracota); transform: scale(1.25); }

/* ---------- Contacto (bloque verde) ---------- */
.contacto { background: var(--verde); color: var(--blanco); }
.contacto .section-title { color: var(--crema); }
.contacto .section-text { opacity: .92; }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--crema);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
.contact-line svg { width: 26px; height: 26px; }
.contact-line:hover { color: var(--blanco); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--texto);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--terracota);
}
.contact-form small { opacity: .75; font-size: .8rem; }
.contact-form .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--crema); padding-top: 56px; }

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 30px;
}
.footer-nav a {
  text-decoration: none;
  color: var(--texto);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
}
.footer-nav a:hover { color: var(--terracota); }

.footer-social { display: flex; gap: 14px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
  transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--terracota); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; }

.footer-copy {
  border-top: 1px solid rgba(31, 90, 68, .15);
  text-align: center;
  padding: 20px 4%;
  font-size: .82rem;
  opacity: .75;
}

/* ---------- Botones flotantes ---------- */
.floating-btns {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.float-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--blanco);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .2s ease;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 28px; height: 28px; }
.float-tel { background: var(--verde); }
.float-wa { background: #25d366; }

/* ---------- Modelo (subpágina) ---------- */
.modelo { padding-top: 150px; }

.modelo-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: stretch;
}

.modelo-panel {
  background: var(--verde);
  color: var(--blanco);
  border-radius: var(--radio);
  padding: 46px 40px;
  box-shadow: var(--sombra);
}

.modelo-eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terracota);
  background: var(--crema);
  padding: 6px 16px;
  border-radius: 999px;
  display: inline-block;
}

.modelo-panel h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--crema);
  margin: 20px 0 28px;
}

.modelo-specs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.modelo-specs li {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  padding: 14px 18px;
}
.modelo-specs strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--crema);
}
.modelo-specs span {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .8;
}

.modelo-plantas { display: grid; gap: 26px; margin-bottom: 34px; }
.planta h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--crema);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--terracota);
  display: inline-block;
}
.planta ul { list-style: none; display: grid; gap: 7px; }
.planta li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: .95rem;
  opacity: .95;
}
.planta li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracota);
  flex-shrink: 0;
  transform: translateY(-1px);
}

.modelo-gallery { display: grid; gap: 20px; }
.modelo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* ---------- Tour virtual 360 ---------- */
.tour { background: var(--blanco); text-align: center; }
.tour .section-text { margin: 0 auto; }
.tour-frame {
  margin-top: 40px;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  background: var(--verde);
}
.tour-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 600px) {
  .tour-frame { aspect-ratio: 3 / 4; }
}

/* ---------- Lightbox ---------- */
.zoomable, .lf-item img { cursor: zoom-in; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 30, 24, .92);
  padding: 4vh 4vw;
  opacity: 0;
  transition: opacity .25s ease;
}
.lb.open { display: flex; opacity: 1; }

.lb-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb-img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  animation: lbZoom .3s ease;
}
@keyframes lbZoom { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lb-caption {
  color: var(--crema);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  text-align: center;
}

.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.lb-close {
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  line-height: 1;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-close:hover,
.lb-nav:hover { background: var(--terracota); }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 600px) {
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
  .lb-img { max-height: 74vh; }
}

/* ---------- Animación reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .ubicacion-grid, .contacto-grid, .modelo-grid, .promo-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 4%;
    right: 4%;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 4px;
    background: var(--crema);
    border-radius: 22px;
    box-shadow: var(--sombra);
    padding: 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px; font-size: 1rem; }
  .main-nav .nav-cta { margin-top: 8px; }
  .main-nav .lang-switch { align-self: center; margin-top: 10px; }
  .main-nav .lang-switch a { font-size: .9rem; }

  .section { padding: 60px 0; }
  .hero-content { padding-top: 120px; }
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }
  .modelo { padding-top: 120px; }
  .modelo-panel { padding: 34px 26px; }
}

@media (max-width: 520px) {
  .icon-row { grid-template-columns: repeat(2, 1fr); }
  .modelo-specs { grid-template-columns: repeat(2, 1fr); }
  .floating-btns { right: 14px; bottom: 14px; }
  .float-btn { width: 50px; height: 50px; }
}

/* ============================================
   DISPONIBILIDAD — Mapa interactivo de lotes
   ============================================ */
.mapa { background: var(--blanco); }
.mapa .section-text { margin: 0 auto 8px; text-align: center; }

.mapa-resumen {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 26px 0 18px;
}
.mapa-resumen .mr-item { display: flex; align-items: center; gap: 9px; font-size: .95rem; }
.mapa-resumen .mr-dot {
  width: 14px; height: 14px; border-radius: 4px; flex: none;
  border: 1.5px solid rgba(0,0,0,.12);
}
.mr-dot.is-disponible   { background: #2e9e63; }
.mr-dot.is-apartado     { background: #d99a2b; }
.mr-dot.is-vendido      { background: #7d838c; }
.mr-dot.is-proximamente { background: #c8ccd2; }
.mapa-resumen strong { font-family: var(--font-head); }

.mapa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-top: 10px;
}

/* La columna izquierda apila el plano y, debajo, las fotos del lote elegido */
.mapa-col { display: grid; gap: 18px; min-width: 0; align-content: start; }

/* --- fotos del lote (fachada / cocina / piso) --- */
.lote-fotos[hidden] { display: none; }

.lf-titulo {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 12px;
}

.lf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.lf-item { min-width: 0; }
.lf-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  background: #f4f5f7;
  transition: transform .2s ease;
}
.lf-item img:hover { transform: translateY(-2px); }
.lf-item figcaption {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  color: var(--texto);
  text-align: center;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Texto corto de acabados bajo cada foto (p. ej. Cocina · Negra)
   y línea de las regaderas, que no tienen foto propia. */
.lf-cap { color: var(--verde); }
.lf-desc {
  font-weight: 500;
  font-size: .78rem;
  color: var(--texto);
  opacity: .85;
}

.lf-extra {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 90, 68, .12);
}
.lf-extra .lf-desc { display: inline; }

/* --- lienzo --- */
.mapa-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radio);
  background: #f4f5f7;
  box-shadow: var(--sombra);
  touch-action: none;
  cursor: grab;
  aspect-ratio: 20 / 7;
}
.mapa-viewport.is-panning { cursor: grabbing; }

.mapa-stage {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.mapa-stage img { width: 100%; display: block; user-select: none; -webkit-user-drag: none; }

.hotspot {
  position: absolute;
  border: 1.5px solid transparent;
  border-radius: 3px;
  background: rgba(120, 128, 138, .18);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.hotspot:hover, .hotspot:focus-visible {
  background: rgba(31, 90, 68, .34);
  border-color: var(--verde);
  outline: none;
}
.hotspot.is-disponible   { background: rgba(46, 158, 99, .40); border-color: rgba(29, 118, 72, .75); }
.hotspot.is-disponible:hover { background: rgba(46, 158, 99, .68); }
.hotspot.is-apartado     { background: rgba(217, 154, 43, .40); border-color: rgba(176, 120, 22, .7); }
.hotspot.is-vendido      { background: rgba(125, 131, 140, .42); border-color: rgba(90, 96, 104, .6); }
.hotspot.is-proximamente { background: rgba(200, 204, 210, .34); border-color: rgba(150, 155, 162, .5); }
.hotspot.is-active {
  border-color: var(--terracota);
  border-width: 2.5px;
  box-shadow: 0 0 0 3px rgba(184, 109, 82, .32);
  z-index: 3;
}
.mapa-viewport.is-dim .hotspot:not(.is-match) { opacity: .28; }

/* --- controles de zoom --- */
.mapa-zoom {
  position: absolute;
  right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 6;
}
.mapa-zoom button {
  width: 38px; height: 38px;
  border: none; border-radius: 10px;
  background: rgba(255,255,255,.94);
  color: var(--verde);
  font-size: 1.15rem; font-weight: 700; line-height: 1;
  font-family: var(--font-head);
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(31,90,68,.2);
  transition: background .18s ease, color .18s ease;
}
.mapa-zoom button:hover { background: var(--verde); color: var(--blanco); }
.mapa-hint {
  position: absolute; left: 12px; bottom: 12px; z-index: 6;
  background: rgba(255,255,255,.9);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: .8rem;
  color: var(--texto);
  box-shadow: 0 3px 12px rgba(31,90,68,.14);
  pointer-events: none;
}

/* --- panel de detalle --- */
.mapa-panel {
  background: var(--crema);
  border-radius: var(--radio);
  padding: 26px 24px;
  box-shadow: var(--sombra);
  position: sticky;
  top: 110px;
  text-align: left;
}
.mapa-panel .mp-empty { color: #6b7c8f; font-size: .95rem; }
.mapa-panel .mp-empty svg { width: 38px; height: 38px; stroke: var(--verde); opacity: .55; margin-bottom: 12px; }

.mp-badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--font-head);
  color: #fff;
}
.mp-badge.is-disponible   { background: #2e9e63; }
.mp-badge.is-apartado     { background: #d99a2b; }
.mp-badge.is-vendido      { background: #7d838c; }
.mp-badge.is-proximamente { background: #9aa0a8; }

.mp-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--verde);
  margin: 14px 0 2px;
}
.mp-sub { font-size: .9rem; color: #6b7c8f; }

.mp-specs { list-style: none; margin: 20px 0 0; }
.mp-specs li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(31, 90, 68, .12);
  font-size: .93rem;
}
.mp-specs li:last-child { border-bottom: none; }
.mp-specs span { color: #6b7c8f; }
.mp-specs strong { font-family: var(--font-head); color: var(--verde); text-align: right; }

.mp-price { margin-top: 18px; }
.mp-price .mp-price-label { font-size: .82rem; color: #6b7c8f; text-transform: uppercase; letter-spacing: .05em; }
.mp-price .mp-price-value {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--terracota);
  line-height: 1.2;
}
.mp-price .mp-price-value small { font-size: .95rem; font-weight: 600; color: #6b7c8f; }
.mp-nota { margin-top: 12px; font-size: .86rem; color: #6b7c8f; }
.mapa-panel .btn { width: 100%; margin-top: 18px; text-align: center; }

/* --- filtros --- */
.mapa-filtros {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 0 18px;
}
.mapa-filtros button {
  border: 1.5px solid rgba(31, 90, 68, .22);
  background: transparent;
  color: var(--verde);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.mapa-filtros button:hover { border-color: var(--verde); }
.mapa-filtros button.active { background: var(--verde); border-color: var(--verde); color: var(--blanco); }

@media (max-width: 980px) {
  .mapa-layout { grid-template-columns: 1fr; }
  .lf-grid { gap: 10px; }
  .lf-item figcaption { font-size: .74rem; }
  .lf-desc { font-size: .72rem; }
  .lf-extra { font-size: .74rem; }
  .mapa-panel { position: static; }
  .mapa-viewport { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .mapa-viewport { aspect-ratio: 4 / 3; }
  .mapa-hint { display: none; }
  .mapa-resumen { gap: 8px 16px; }
  .mapa-resumen .mr-item { font-size: .85rem; }
}

/* ============================================
   Galería slide de amenidades
   ============================================ */
.amen-slider { position: relative; margin: 46px 0 56px; }
.amen-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 20px;
  border-radius: var(--radio);
}
.amen-track::-webkit-scrollbar { display: none; }
.amen-slide { flex: 0 0 min(860px, 100%); scroll-snap-align: center; }
.amen-slide figure { margin: 0; position: relative; }
.amen-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.amen-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 24px 18px;
  border-radius: 0 0 var(--radio) var(--radio);
  background: linear-gradient(to top, rgba(23, 69, 52, .82), rgba(23, 69, 52, 0));
  color: var(--crema);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  text-align: left;
  pointer-events: none;
}
.amen-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.amen-dots button {
  width: 10px; height: 10px; border: none; border-radius: 50%;
  background: rgba(31, 90, 68, .25); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.amen-dots button.active { background: var(--terracota); transform: scale(1.25); }

@media (max-width: 520px) {
  .amen-slide figcaption { font-size: .9rem; padding: 26px 16px 14px; }
}

/* --- Panorámica aérea de amenidades (más ancha que el contenedor) --- */
.amen-panorama {
  position: relative;
  width: min(1520px, 96vw);
  margin: 46px 50% 0;
  transform: translateX(-50%);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  background: #251b15;
}
.amen-panorama img { width: 100%; display: block; }
.amen-panorama figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 26px 18px;
  background: linear-gradient(to top, rgba(15, 12, 10, .78), rgba(15, 12, 10, 0));
  color: var(--crema);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  text-align: left;
  pointer-events: none;
}
/* La panoramica aerea (render) esta oculta: el slider va directo bajo el titulo,
   asi que recupera su margen normal. Si se restaura la panoramica, volver a 20px. */
.amenidades .amen-slider { margin-top: 32px; }

@media (max-width: 520px) {
  .amen-panorama figcaption { font-size: .86rem; padding: 28px 16px 12px; }
}
