/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde:   #1B4F2A;
  --crema:   #F5F0E8;
  --dorado:  #C4973A;
  --blanco:  #FAFAF7;
  --negro:   #0E0E0E;
  --texto:   #2C2C2C;
  --gris:    #6B6B6B;
  --trans:   0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================
   TIPOGRAFÍA
   ============================================= */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

em { font-style: italic; color: var(--dorado); }

.section-label {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado);
  display: block;
  margin-bottom: 1rem;
}
.section-label.light { color: var(--dorado); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 { color: var(--verde); }

/* =============================================
   BOTONES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  transition: all var(--trans);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-gold {
  background: var(--dorado);
  color: var(--blanco);
  border-color: var(--dorado);
}
.btn-gold:hover {
  background: #b08730;
  border-color: #b08730;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--blanco);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--blanco);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--blanco);
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1ebe5b;
  border-color: #1ebe5b;
  transform: translateY(-2px);
}

/* =============================================
   NAV
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.4s ease;
}

#navbar.scrolled {
  background: rgba(27, 79, 42, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 3rem;
  height: 80px;
}

.nav-logo img {
  height: 60px;
  width: auto;
  transition: opacity var(--trans);
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}
.nav-logo:hover img { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  margin-left: auto;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  transition: color var(--trans);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--dorado);
  transform: scaleX(0);
  transition: transform var(--trans);
}
.nav-links a:hover { color: var(--blanco); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 1rem; padding: 0.65rem 1.6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanco);
  transition: all var(--trans);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.35) 70%,
    rgba(0,0,0,0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--blanco);
  max-width: 800px;
  padding: 0 20px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.eyebrow-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--dorado);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--blanco);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}
.hero-title em {
  display: block;
  color: var(--dorado);
  font-style: italic;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s ease 1.8s forwards;
}

.scroll-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(196,151,58,0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* =============================================
   PILARES
   ============================================= */
.pilares {
  background: var(--verde);
  padding: 0;
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.pilar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background var(--trans);
}
.pilar:last-child { border-right: none; }
.pilar:hover { background: rgba(255,255,255,0.05); }

.pilar-icon {
  width: 48px;
  height: 48px;
  color: var(--dorado);
  opacity: 0.9;
  transition: opacity var(--trans), transform var(--trans);
}
.pilar:hover .pilar-icon { opacity: 1; transform: translateY(-3px); }
.pilar-icon svg { width: 100%; height: 100%; }

.pilar span {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-align: center;
  transition: color var(--trans);
}
.pilar:hover span { color: var(--blanco); }

/* =============================================
   HISTORIA
   ============================================= */
.historia {
  background: var(--crema);
  padding: 8rem 0;
}

.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.historia-text .section-label { color: var(--verde); opacity: 0.6; }
.historia-text h2 { color: var(--verde); margin-bottom: 2rem; }
.historia-body {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--gris);
  margin-bottom: 1.2rem;
}

.historia-stats {
  display: flex;
  gap: 0;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(27,79,42,0.15);
}
.historia-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(27,79,42,0.12);
  margin-right: 1.5rem;
}
.historia-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--verde);
  line-height: 1;
}
.stat-label {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--gris);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =============================================
   CURSOR PERSONALIZADO
   ============================================= */
body { cursor: none; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px;
  height: 8px;
  background: var(--dorado);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, opacity 0.3s ease;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--dorado);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
  opacity: 0.6;
}

.cursor-ring.hovering {
  width: 56px;
  height: 56px;
  opacity: 1;
  border-color: var(--dorado);
}

.cursor-dot.clicking {
  transform: translate(-50%, -50%) scale(0.5);
}

/* Ocultar cursor custom en mobile */
@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

.historia-image-wrap {
  position: relative;
  overflow: visible;
}

.historia-parallax-img {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.historia-parallax-img img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.1s linear;
  will-change: transform;
  filter: sepia(15%) contrast(1.1) saturate(0.85);
}

.historia-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -2rem;
  background: var(--verde);
  color: var(--blanco);
  padding: 1.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.badge-year {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dorado);
  line-height: 1;
}
.badge-text {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* =============================================
   VIDEO BREAK
   ============================================= */
.video-break {
  position: relative;
  overflow: hidden;
  background: var(--negro);
  height: 75vh;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(27,79,42,0.75) 0%,
    rgba(27,79,42,0.2) 50%,
    transparent 80%
  );
}

.video-caption {
  position: absolute;
  top: 2rem;
  right: 4%;
  max-width: 300px;
  color: var(--blanco);
  text-align: right;
  padding: 0 1rem;
}
.video-caption .section-label { color: var(--dorado); }
.video-caption h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--blanco);
  margin-bottom: 0.6rem;
}
.video-caption p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* =============================================
   INFRAESTRUCTURA
   ============================================= */
.infraestructura {
  background: var(--blanco);
  padding: 8rem 0;
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0,0,0,0.06);
}

.infra-card {
  background: var(--blanco);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: background var(--trans);
  position: relative;
  overflow: hidden;
}
.infra-card:hover { background: var(--crema); }

.infra-num {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--crema);
  line-height: 1;
  transition: color var(--trans);
  display: block;
  background: var(--blanco);
}
.infra-card:hover .infra-num { color: rgba(27,79,42,0.15); }

.infra-content h3 {
  font-size: 1.1rem;
  color: var(--verde);
  margin-bottom: 0.75rem;
}
.infra-sub {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--gris);
  display: block;
  letter-spacing: 0;
}
.infra-content p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--gris);
  line-height: 1.7;
}

/* =============================================
   SEGURIDAD
   ============================================= */
.seguridad {
  background: var(--verde);
  padding: 8rem 0;
}

.seguridad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.seguridad-text h2 { color: var(--blanco); margin-bottom: 2.5rem; }

.seguridad-intro {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.seguridad-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.seguridad-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.seguridad-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dorado);
  flex-shrink: 0;
}

.seguridad-quote {
  border-left: 3px solid var(--dorado);
  padding-left: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.seguridad-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  filter: brightness(1.1) contrast(1.08) saturate(1.25) sepia(0.15);
}

/* =============================================
   PLANO INTERACTIVO
   ============================================= */
.plano-section {
  background: var(--blanco);
  padding: 6rem 0 0;
}

/* Controles: filtros + contador */
.plano-controles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 1.2rem;
  padding: 0 40px;
}

.plano-filtros {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filtro-btn {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid rgba(27,79,42,0.2);
  border-radius: 2px;
  background: transparent;
  color: var(--gris);
  cursor: pointer;
  transition: all var(--trans);
}
.filtro-btn:hover { border-color: var(--verde); color: var(--verde); }
.filtro-btn.active {
  background: var(--verde);
  border-color: var(--verde);
  color: var(--blanco);
}

.plano-contador {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--gris);
}
.plano-contador strong { color: var(--verde); font-weight: 500; }

/* Leyenda */
.plano-leyenda {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 1.2rem;
  padding: 0 40px;
}
.plano-leyenda span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  color: var(--gris);
}
.leyenda-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Wrapper del plano */
.plano-wrap {
  position: relative;
  width: 100%;
  background: #f0ece4;
  min-height: 400px;
}

#plano-container {
  width: 100%;
  line-height: 0;
}
#plano-container svg {
  width: 100%;
  height: auto;
  display: block;
}
#plano-container svg image {
  filter: brightness(1.4) contrast(0.88) saturate(0.75);
}

/* Estados de lotes — el JS remueve el style inline y aplica estas clases */
#plano-container path.estado-DISPONIBLE   { fill: #4A8C5C; opacity: 0.55; stroke: none; cursor: pointer; transition: opacity 0.2s; }
#plano-container path.estado-DISPONIBLE:hover { opacity: 0.8; }
#plano-container path.estado-VENDIDO      { fill: #8B3A3A; opacity: 0.55; stroke: none; cursor: default; transition: opacity 0.2s; }
#plano-container path.estado-VENDIDO:hover { opacity: 0.72; }
#plano-container path.estado-RESERVADO    { fill: #C4973A; opacity: 0.55; stroke: none; cursor: pointer; transition: opacity 0.2s; }
#plano-container path.estado-RESERVADO:hover { opacity: 0.75; }
#plano-container path.estado-EN_OPERACION { fill: #C4973A; opacity: 0.55; stroke: none; cursor: pointer; transition: opacity 0.2s; }
#plano-container path.estado-EN_OPERACION:hover { opacity: 0.75; }
#plano-container path.estado-STOCK_PROPIO { fill: #3a3a3a; opacity: 0.45; stroke: none; cursor: default; transition: opacity 0.2s; }
#plano-container path.estado-STOCK_PROPIO:hover { opacity: 0.65; }
#plano-container path.lote-filtrado       { opacity: 0.06 !important; pointer-events: none; }

/* Loading */
.plano-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(245,240,232,0.85);
  z-index: 10;
}
.plano-loading p {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--verde);
  letter-spacing: 0.05em;
}
.plano-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(27,79,42,0.15);
  border-top-color: var(--verde);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error */
.plano-error {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
}
.plano-error p {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--gris);
  line-height: 1.7;
}

/* Tooltip */
.plano-tooltip {
  position: fixed;
  z-index: 2000;
  background: var(--verde);
  color: var(--blanco);
  padding: 0.9rem 1.2rem;
  border-radius: 2px;
  pointer-events: none;
  display: none;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.plano-tooltip .tt-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.plano-tooltip .tt-info {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}
.plano-tooltip .tt-badge {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
}

/* Panel lateral */
.plano-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1500;
}
.plano-overlay.visible { display: block; }

.plano-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: var(--blanco);
  z-index: 1600;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.plano-panel.open { transform: translateX(0); }

.plano-panel-close {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--blanco);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--gris);
  transition: color var(--trans);
  z-index: 1;
}
.plano-panel-close:hover { color: var(--verde); }

.plano-panel-content {
  padding: 0 2rem 3rem;
}

.panel-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.5rem;
}
.panel-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--verde);
  margin-bottom: 0.3rem;
}
.panel-estado {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}
.panel-estado.DISPONIBLE { background: rgba(74,140,92,0.15); color: #2d6b3e; }
.panel-estado.RESERVADO  { background: rgba(196,151,58,0.15); color: #8a6520; }
.panel-estado.EN_OPERACION { background: rgba(196,151,58,0.15); color: #8a6520; }
.panel-estado.VENDIDO    { background: rgba(139,58,58,0.12); color: #8B3A3A; }
.panel-estado.STOCK_PROPIO { background: rgba(136,135,128,0.15); color: #666; }

.panel-ficha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--crema);
  border-radius: 2px;
}
.panel-ficha-item label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.2rem;
}
.panel-ficha-item span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--verde);
  font-weight: 600;
}

.panel-precio {
  margin-bottom: 2rem;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--dorado);
  background: rgba(196,151,58,0.06);
}
.panel-precio label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.3rem;
}
.panel-precio .precio-valor {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--verde);
}

.panel-acciones {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.panel-acciones .btn { justify-content: center; width: 100%; }

.panel-msg {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--crema);
  border-radius: 2px;
}

/* =============================================
   LEGALIDAD
   ============================================= */
.legalidad {
  background: var(--crema);
  padding: 8rem 0;
}

.legalidad-quote {
  max-width: 900px;
  margin: 0 auto 5rem;
  text-align: center;
}
.legalidad-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--verde);
  line-height: 1.6;
}

.permisos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.permiso {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 2rem;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  border: 1px solid rgba(27,79,42,0.08);
  transition: background var(--trans), transform var(--trans);
}
.permiso:hover {
  background: var(--blanco);
  transform: translateY(-3px);
}

.permiso-destacado {
  grid-column: 2 / 4;
}

.permiso-check {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dorado);
  flex-shrink: 0;
  margin-top: 2px;
}
.permiso h4 { color: var(--verde); margin-bottom: 0.4rem; }
.permiso p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--gris);
  line-height: 1.6;
}

/* =============================================
   SUSTENTABILIDAD
   ============================================= */
.sustentabilidad {
  background: var(--blanco);
  padding: 8rem 0;
}

.sust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.sust-items { display: flex; flex-direction: column; gap: 2.5rem; }

.sust-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.sust-icon {
  width: 40px;
  height: 40px;
  color: var(--verde);
  flex-shrink: 0;
  margin-top: 4px;
  opacity: 0.8;
}
.sust-icon svg { width: 100%; height: 100%; }

.sust-item h4 { color: var(--verde); margin-bottom: 0.4rem; }
.sust-item p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--gris);
  line-height: 1.7;
}

.sust-image { position: relative; }
.sust-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.sust-quote {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--crema);
  border-left: 3px solid var(--dorado);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--verde);
  line-height: 1.7;
}
.sust-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gris);
  font-weight: 400;
}

/* =============================================
   UBICACIÓN
   ============================================= */
.ubicacion {
  background: var(--crema);
  padding: 8rem 0;
}

.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ubicacion-text .section-label { color: var(--verde); opacity: 0.6; }
.ubicacion-text h2 { color: var(--verde); margin-bottom: 1.5rem; }
.ubicacion-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--gris);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.ubicacion-datos {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.ubicacion-dato {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(27,79,42,0.1);
}
.dato-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--verde);
  min-width: 90px;
  line-height: 1;
}
.dato-label {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--gris);
}

.ubicacion-address {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--gris);
  padding-top: 1rem;
}

.ubicacion-mapa img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* =============================================
   CONTACTO
   ============================================= */
.contacto {
  background: var(--verde);
  padding: 8rem 0;
}

.contacto-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contacto-inner h2 { color: var(--blanco); margin-bottom: 1rem; }

.contacto-sub {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3rem;
}

.contacto-ctas {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contacto-info {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.contacto-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contacto-info svg { opacity: 0.7; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--negro);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand img { margin-bottom: 1rem; filter: brightness(0.9); }
.footer-brand p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

.footer h5 {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 1.2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--blanco); }

.footer-contact p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}
.footer-contact a {
  transition: color var(--trans);
  color: rgba(255,255,255,0.5);
}
.footer-contact a:hover { color: var(--dorado); }

.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  color: rgba(255,255,255,0.5);
  transition: all var(--trans);
}
.social-links a:hover {
  border-color: var(--dorado);
  color: var(--dorado);
  background: rgba(196,151,58,0.08);
}

.footer-bottom {
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* =============================================
   ANIMACIONES DE SCROLL
   ============================================= */
.reveal,
.reveal-stagger,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.is-visible,
.reveal-stagger.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   MOBILE — 768px
   ============================================= */
@media (max-width: 768px) {

  .container { padding: 0 20px; }

  /* Nav */
  .nav-inner { padding: 0 20px; height: 65px; }
  .nav-toggle { display: flex; }
  .nav-logo img { height: 36px; }
  .nav-cta { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(27,79,42,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 2rem;
    margin-left: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  .nav-links a::after { display: none; }

  /* Hero */
  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-eyebrow { font-size: 0.65rem; }
  .eyebrow-line { width: 30px; }

  /* Pilares */
  .pilares-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pilar { border-right: 1px solid rgba(255,255,255,0.1); }
  .pilar:nth-child(2n) { border-right: none; }

  /* Historia */
  .historia { padding: 5rem 0; }
  .historia-grid { grid-template-columns: 1fr; gap: 3rem; }
  .historia-image-wrap { order: -1; }
  .historia-parallax-img img { height: 320px; }
  .historia-badge { left: 1rem; bottom: -1rem; }

  /* Video */
  .video-caption {
    position: relative;
    top: auto; left: auto; transform: none;
    background: var(--verde);
    padding: 2rem;
    max-width: 100%;
  }
  .video-overlay { display: none; }
  .video-container { aspect-ratio: auto; max-height: none; }
  .video-container video { height: 240px; }

  /* Infraestructura */
  .infraestructura { padding: 5rem 0; }
  .infra-grid { grid-template-columns: 1fr; }

  /* Seguridad */
  .seguridad { padding: 5rem 0; }
  .seguridad-grid { grid-template-columns: 1fr; gap: 3rem; }
  .seguridad-image img { height: 280px; }

  /* Legalidad */
  .legalidad { padding: 5rem 0; }
  .permisos-grid { grid-template-columns: 1fr; }
  .permiso-destacado { grid-column: 1; }

  /* Sustentabilidad */
  .sustentabilidad { padding: 5rem 0; }
  .sust-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sust-image img { height: 280px; }

  /* Ubicación */
  .ubicacion { padding: 5rem 0; }
  .ubicacion-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Contacto */
  .contacto { padding: 5rem 0; }
  .contacto-ctas { flex-direction: column; align-items: center; }
  .contacto-info { flex-direction: column; gap: 1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  /* Plano */
  .plano-controles { padding: 0 20px; }
  .plano-leyenda { padding: 0 20px; gap: 1rem; }
  .plano-panel { width: 100%; top: auto; bottom: 0; height: 85vh; transform: translateY(100%); }
  .plano-panel.open { transform: translateY(0); }

  /* Section headers */
  .section-header { margin-bottom: 3rem; }
}

@media (max-width: 480px) {
  .pilares-grid { grid-template-columns: 1fr; }
  .pilar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-grid { grid-template-columns: 1fr; }
  .historia-stat { flex-direction: column; gap: 0.5rem; }
}

/* =============================================
   GALERÍA FOTOGRÁFICA
   ============================================= */
.galeria {
  background: var(--negro);
  padding: 8rem 0 0;
}

.galeria .section-header { margin-bottom: 3rem; }
.galeria .section-header h2 { color: var(--blanco); }
.galeria .section-label { color: var(--dorado); }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 4rem;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.galeria-item:hover img {
  transform: scale(1.06);
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-zoom-icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--dorado);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dorado);
  transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-zoom-icon {
  transform: scale(1.1);
}

.galeria-overlay-caption {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 0 1.2rem;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.35s ease;
}

.lightbox.is-open .lb-inner {
  transform: scale(1) translateY(0);
}

#lb-img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
  transition: opacity 0.15s ease;
}

.lb-caption {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: 1.2rem;
}

.lb-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.25s ease;
  z-index: 9001;
}

.lb-close:hover {
  background: rgba(255,255,255,0.18);
  transform: rotate(90deg);
}

.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 9001;
}

.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

.lb-prev:hover { background: rgba(255,255,255,0.15); transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { background: rgba(255,255,255,0.15); transform: translateY(-50%) translateX(3px); }

.lb-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  z-index: 9001;
}

@media (max-width: 1024px) {
  .galeria-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .galeria { padding: 5rem 0 0; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .lb-prev { left: 0.6rem; }
  .lb-next { right: 0.6rem; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .galeria-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .galeria-overlay-caption { display: none; }
}
