*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* BASE OSCURA VITALA (Extraída directamente del texto 'VITALA' del logo oficial #132627) */
  --green-950: #0a1819; 
  --green-900: #132627; 
  --green-800: #1a3536; 
  --green-700: #244647;
  --green-600: #335e5f; 
  --green-500: #457c7d; 
  --green-400: #599b9a;
  --green-200: #7ec7c3; 
  --green-100: #d4ecea; 
  --green-50:  #f0f7f7;
  
  /* ACENTOS VITALA (Gradiente de hojas de agave y turquesa del logo) */
  --gold-700:  #255856; 
  --gold-600:  #347775; 
  --gold-500:  #4a9694;
  --gold-400:  #6ab5b3; 
  --gold-300:  #8fcac8; 
  --gold-200:  #b8e2e0; 
  --gold-100:  #def0ef;
  --gold-50:   #f2f8f8; 
  --gray-900:  #141c1d; 
  --gray-700:  #3c4949;
  --gray-500:  #6e8080; 
  --gray-300:  #cbd7d6; 
  --gray-100:  #eef3f3;
  --white:     #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body); background: var(--white);
  color: var(--gray-900); overflow-x: hidden; line-height: 1.6;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem; height: 72px; 
  background: rgba(14, 28, 29, 0.90);
  backdrop-filter: blur(14px); 
  border-bottom: 1px solid rgba(126, 199, 195, 0.16);
}

.nav-item-dropdown:hover .nav-link-dropdown {
  color: var(--gold-300) !important;
}
.nav-logo { 
  display: flex; 
  align-items: center; 
  gap: 12px;
  text-decoration: none; 
  height: 100%;
}

.navbar-img-logo {
  height: 48px; 
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.22));
  transition: transform .2s ease;
}
.navbar-img-logo:hover {
  transform: scale(1.03);
}
.nav-logo-text { 
  display: flex; 
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(143, 202, 200, 0.3);
  padding-left: 12px;
}
.nav-logo-text span {
  font-size: 10px; 
  letter-spacing: 3px; 
  color: var(--gold-300);
  text-transform: uppercase; 
  font-weight: 400; 
  line-height: 1.2;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: white; text-decoration: none; font-weight: 400;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold-300); }
.nav-cta {
  background: var(--gold-500); color: var(--white); border: none;
  padding: 10px 22px; font-family: var(--font-body); font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  border-radius: 2px; transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--gold-400); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  position: relative; 
  height: 100vh; 
  min-height: 650px; 
  background: var(--green-900);
  display: flex; 
  align-items: center; 
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 50%, rgba(37, 88, 86, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 15% 30%, rgba(19, 38, 39, 0.65) 0%, transparent 60%);
}
.hero-texture {
  position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 4px 4px;
}
.hero-decor {
  position: absolute; right: 0; top: 0; bottom: 0; width: 42%;
  background: linear-gradient(135deg, rgba(74, 150, 148, 0.16) 0%, rgba(126, 199, 195, 0.06) 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-decor-lines {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  width: 280px; height: 280px; opacity: .12;
}
.hero-decor-lines svg { width: 100%; height: 100%; }

.hero-content { 
  position: relative; 
  z-index: 2; 
  padding: 90px 4rem 2rem; 
  max-width: 640px; 
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.hero-eyebrow-line { width: 32px; height: 1px; background: var(--gold-400); }
.hero-eyebrow span {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-400); font-weight: 400;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400; color: var(--white); line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -1px;
}
.hero h1 em { font-style: italic; color: var(--green-200); display: block; }
.hero-desc {
  font-size: 15px; color: rgba(255,255,255,.6); max-width: 440px;
  margin-bottom: 2.5rem; line-height: 1.8; font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-500); color: var(--white); border: none;
  padding: 14px 28px; font-family: var(--font-body); font-size: 13px;
  cursor: pointer; border-radius: 2px; text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; background: transparent;
  color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.2);
  padding: 13px 24px; font-family: var(--font-body); font-size: 13px;
  cursor: pointer; border-radius: 2px; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--green-200); color: var(--white); }

.hero-stats { 
  position: absolute; 
  bottom: 2.5rem; 
  right: 4rem; 
  display: flex; 
  gap: 3rem; 
  z-index: 2; 
}
.hero-stat { text-align: right; }
.hero-stat-n {
  font-family: var(--font-display); font-size: 2.8rem;
  color: var(--white); line-height: 1; font-weight: 400;
}
.hero-stat-n span { color: var(--gold-400); font-size: 1.4rem; }
.hero-stat-l {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-top: 4px;
}

/* ── MARQUEE ── */
.marquee-bar { background: var(--gold-500); padding: 12px 0; overflow: hidden; }
.marquee-track {
  display: flex; gap: 3rem; white-space: nowrap; animation: marquee 22s linear infinite;
}
.marquee-track span {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--white); font-weight: 400; flex-shrink: 0;
}
.marquee-dot { color: rgba(255,255,255,.4); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Selector de Idiomas */
.lang-switch { display: flex; align-items: center; gap: 5px; margin-left: 10px; }
.lang-btn { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 11px; cursor: pointer; transition: color 0.3s; padding: 2px 5px; }
.lang-btn.active { color: var(--gold-400); font-weight: bold; }
.lang-sep { color: rgba(255,255,255,0.2); font-size: 10px; }

/* ── SECCIONES BASE ── */
section { padding: 6rem 4rem; }
.s-tag {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-500); font-weight: 400; margin-bottom: .8rem;
  display: flex; align-items: center; gap: 10px;
}
.s-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold-500); }
.s-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400; color: var(--gray-900); line-height: 1.1;
  letter-spacing: -.5px; margin-bottom: 1rem;
}
.s-title em { font-style: italic; color: var(--green-600); }
.s-sub {
  font-size: 14px; color: var(--gray-500); max-width: 500px;
  line-height: 1.8; font-weight: 300; margin-bottom: 3rem;
}

/* ── BENEFICIOS ── */
.benefits { background: var(--green-50); }
.benefits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--green-200); border: 1px solid var(--green-200);
  border-radius: 4px; overflow: hidden;
}
.benefit-item { background: var(--white); padding: 2.5rem 2rem; transition: background .2s; }
.benefit-item:hover { background: var(--green-50); }
.benefit-icon {
  width: 44px; height: 44px; margin-bottom: 1rem; background: var(--green-100);
  border-radius: 2px; display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { width: 22px; height: 22px; stroke: var(--green-600); fill: none; stroke-width: 1.5; }
.benefit-item h3 {
  font-size: 15px; font-weight: 500; color: var(--gray-900);
  margin-bottom: .5rem; letter-spacing: .2px;
}
.benefit-item p { font-size: 13px; color: var(--gray-500); line-height: 1.7; font-weight: 300; }
.benefit-badge {
  display: inline-block; margin-top: .8rem; background: var(--gold-100);
  color: var(--gold-600); font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 2px;
}

/* ── MAPA INTERACTIVO (ANTES TERRENOS) ── */
#terrenos { 
  background: var(--green-900); 
  border-top: 1px solid rgba(126, 199, 195, 0.12);
  padding: 5rem clamp(0.5rem, 1.5vw, 1.5rem);
}

/* Ajustes de texto para fondo oscuro */
#terrenos .s-tag { color: var(--gold-300); max-width: 1200px; margin-left: auto; margin-right: auto; }
#terrenos .s-tag::before { background: var(--gold-300); }
#terrenos .s-title { color: var(--white); max-width: 1200px; margin-left: auto; margin-right: auto; }
#terrenos .s-title em { color: var(--green-200); }
#terrenos .s-sub { color: rgba(255,255,255,.6); max-width: 1200px; margin-left: auto; margin-right: auto; }

/* CONTENEDOR DEL MAPA Y RESPONSIVIDAD (ANCHO EXPANDIDO AL 95%-100%) */
.mapa-container {
  position: relative;
  width: 98%;
  max-width: 1800px;
  margin: 2.2rem auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.masterplan-map {
  position: relative;
  width: 100%;
  height: 680px;
  max-height: 80vh;
  min-height: 540px;
  border-radius: 14px;
  z-index: 1;
}

.mapa-container.visible {
  transform: none !important;
}

/* CONTROLES DE ZOOM DE LEAFLET: CENTRADOS VERTICALMENTE EN EL LATERAL IZQUIERDO */
#mapa-vitala .leaflet-top.leaflet-left {
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 100% !important;
  pointer-events: none !important;
}

#mapa-vitala .leaflet-control-zoom {
  position: absolute !important;
  top: 50% !important;
  left: 20px !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  pointer-events: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6) !important;
  background: rgba(15, 31, 7, 0.95) !important;
  backdrop-filter: blur(8px);
}

.leaflet-control-zoom a {
  background-color: rgba(15, 31, 7, 0.88) !important;
  color: #fff !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  user-select: none !important;
}

.leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}

.leaflet-control-zoom a:hover {
  background-color: #2E7D32 !important;
  color: #fff !important;
}

.leaflet-control-zoom a.leaflet-disabled {
  background-color: rgba(25, 25, 25, 0.6) !important;
  color: rgba(255, 255, 255, 0.25) !important;
  cursor: not-allowed !important;
}

/* SINCRONIZACIÓN FLUIDA EN ZOOM (TILES Y OVERLAY SIN DESFASES NI PARPADEOS) */
.leaflet-capaFondoPng-pane,
.leaflet-capaFrenteSvg-pane {
  transform-origin: 0 0 !important;
}

.leaflet-image-layer {
  transform-origin: 0 0 !important;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
  -webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1) !important;
  transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1) !important;
}

.leaflet-tile-container {
  will-change: transform;
}

@media(max-width: 1024px){
  #terrenos {
    padding: 4rem 1rem;
  }
  .mapa-container {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }
  .masterplan-map {
    height: 560px;
    min-height: 480px;
  }
}

@media(max-width: 768px){
  #terrenos {
    padding: 3.5rem 0.6rem;
  }
  .masterplan-map {
    height: 480px;
    min-height: 420px;
  }
  #mapa-vitala .leaflet-control-zoom {
    left: 12px !important;
  }
}

/* Hacemos que el SVG sea totalmente responsivo sobre Leaflet */
#svg-plano {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ESTILOS DE LOS POLÍGONOS (LOTES) */
.lote-poligono {
  fill: transparent; 
  stroke: transparent;
  stroke-width: 2px;
  transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  pointer-events: auto;
}

/* Estado: Disponible */
.lote-disponible {
  fill: rgba(76, 175, 80, 0.35); /* Verde con opacidad */
  stroke: rgba(76, 175, 80, 0.9);
}
.lote-disponible:hover {
  fill: rgba(76, 175, 80, 0.65);
  stroke: #2E7D32;  
  stroke-width: 3px;
}

/* Estado: Apartado */
.lote-apartado {
  fill: rgba(239, 159, 39, 0.35);
  stroke: rgba(239, 159, 39, 0.9);
}
.lote-apartado:hover {
  fill: rgba(239, 159, 39, 0.65);
  stroke: #B36B00;
  stroke-width: 3px;
}

/* Estado: Vendido */
.lote-vendido {
  fill: rgba(211, 47, 47, 0.4);
  stroke: rgba(211, 47, 47, 0.9);
  cursor: not-allowed;
}

/* Globo Flotante (Tooltip) */
.tooltip {
  position: absolute;
  top: 0;
  left: 0;
  width: 270px;
  background: rgba(15, 31, 7, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--green-500);
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1200;
  box-shadow: 0 15px 35px rgba(0,0,0,0.7);
}
.tooltip.visible { opacity: 1; transform: scale(1) translateY(0); }

.tt-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 12px 16px; 
  border-bottom: 1px solid rgba(192, 221, 151, 0.15); /* Separador verde claro transparente */
}
.tt-title { 
  font-family: var(--font-display); 
  color: var(--green-200); /* Título en verde claro */
  font-size: 1.4rem; 
  font-weight: 600; 
}
.tt-badge { 
  font-size: 10px; 
  text-transform: uppercase; 
  padding: 4px 10px; 
  border-radius: 4px; 
  color: white; 
  letter-spacing: 1px; 
  font-weight: 500; 
}

.tt-body { 
  padding: 14px 16px; 
  font-size: 13px; 
  color: rgba(255,255,255,0.75); 
  line-height: 1.6; 
}
.tt-body p { margin-bottom: 6px; }
.tt-body p:last-child { margin-bottom: 0; }
.tt-body strong { color: var(--white); font-weight: 400; margin-right: 4px;}

.tt-footer { 
  padding: 12px 16px; 
  background: rgba(192, 221, 151, 0.03); 
  border-top: 1px solid rgba(192, 221, 151, 0.15); 
}
.tt-precio { 
  font-size: 10px; 
  color: rgba(255,255,255,0.45); 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}
.tt-monto { 
  font-size: 1.25rem; 
  color: var(--green-200); /* Monto en verde claro */
  font-weight: 500; 
  font-family: var(--font-body); 
  margin-top: 2px; 
}

/* Ajustes en móviles para los modales y el mapa */
@media(max-width: 768px){
  .mapa-container { margin-top: 1.5rem; }
}

/* ── SPLIT (Ubicación) ── */
.location-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--green-800); min-height: 520px;
}
.loc-left { padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.loc-left .s-tag { color: var(--gold-300); }
.loc-left .s-tag::before { background: var(--gold-300); }
.loc-left .s-title { color: var(--white); }
.loc-left .s-title em { color: var(--green-200); }
.loc-left .s-sub { color: rgba(255,255,255,.6); max-width: 420px; margin-bottom: 2rem; }
.loc-address {
  display: flex; align-items: flex-start; gap: 12px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); padding: 1.2rem 1.4rem; border-radius: 4px; margin-bottom: 1.5rem;
}
.loc-address-icon {
  width: 36px; height: 36px; background: var(--gold-500); border-radius: 2px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.loc-address-icon svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 2; }
.loc-address-text p:first-child { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 2px; }
.loc-address-text p:last-child { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 300; }
.loc-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold-300);
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid rgba(239,159,39,.3); padding-bottom: 2px; transition: color .2s;
}
.loc-link:hover { color: var(--gold-400); }
.loc-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.loc-right { position: relative; min-height: 400px; overflow: hidden; background: var(--green-900); }
.loc-video-container { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc-video { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; /* Asegura que el video llene todo el espacio sin deformarse */
  display: block; 
}

/* ── PROCESO ── */
.proceso { background: var(--gray-100); }
.proceso-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.proceso-steps::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%;
  height: 1px; background: linear-gradient(90deg, var(--gold-300), var(--green-200)); z-index: 0;
}
.paso { text-align: center; padding: 0 1.5rem; position: relative; z-index: 1; }
.paso-num {
  width: 56px; height: 56px; margin: 0 auto 1.5rem; border-radius: 50%;
  background: var(--white); border: 2px solid var(--green-200);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; color: var(--green-600); font-weight: 400;
}
.paso:last-child .paso-num { background: var(--gold-500); border-color: var(--gold-500); color: var(--white); }
.paso h4 { font-size: 14px; font-weight: 500; color: var(--gray-900); margin-bottom: .4rem; }
.paso p { font-size: 12px; color: var(--gray-500); line-height: 1.6; font-weight: 300; }

/* ── PLANOS SUGERIDOS ── */
.planos-section {
  padding: 6.5rem 4rem;
  background: #f8fbfa;
  position: relative;
}
.planos-concept-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(74, 150, 148, 0.12) 0%, rgba(19, 38, 39, 0.05) 100%);
  border: 1px solid rgba(74, 150, 148, 0.25);
  border-left: 4px solid var(--gold-500);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem 0 3rem 0;
}
.planos-concept-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--gold-500);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.planos-concept-icon svg { width: 24px; height: 24px; }
.planos-concept-text h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-900);
  margin-bottom: 0.35rem;
}
.planos-concept-text p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}
.planos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.plano-card {
  background: #fff;
  border: 1px solid rgba(74, 150, 148, 0.18);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(19, 38, 39, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.plano-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(19, 38, 39, 0.12);
  border-color: var(--gold-500);
}
.plano-card-img-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}
.plano-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.plano-card:hover .plano-card-img {
  transform: scale(1.06);
}
.plano-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(19, 38, 39, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.plano-card-body {
  padding: 1.35rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.plano-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.plano-card-desc {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex: 1;
}
.plano-card-footer {
  padding-top: 10px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plano-spec {
  font-size: 11px;
  font-weight: 600;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.planos-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 2.5rem;
}
.planos-feature-item {
  background: #fff;
  border: 1px solid rgba(74, 150, 148, 0.15);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pfeat-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pfeat-icon svg { width: 16px; height: 16px; }
.pfeat-content h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 2px;
}
.pfeat-content p {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.45;
  margin: 0;
}

/* ── GARANTÍAS (Legacy fallback) ── */
.garantias-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 640px; }
.garantia {
  display: flex; gap: 14px; align-items: flex-start; padding: 1.2rem;
  border: 1px solid var(--gray-300); border-radius: 4px; background: var(--white);
}
.garantia-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
}
.gi-green { background: var(--green-100); }
.gi-gold { background: var(--gold-100); }
.garantia-icon svg { width: 19px; height: 19px; fill: none; stroke-width: 1.5; }
.gi-green svg { stroke: var(--green-600); }
.gi-gold svg { stroke: var(--gold-500); }
.garantia h4 { font-size: 13px; font-weight: 500; color: var(--gray-900); margin-bottom: .25rem; }
.garantia p { font-size: 11px; color: var(--gray-500); line-height: 1.6; font-weight: 300; }

/* ── CTA FINAL ── */
.cta-section {
  background: var(--green-900); padding: 7rem 4rem; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 150, 148, 0.35) 0%, transparent 70%);
}
.cta-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
}
.cta-left .s-tag { color: var(--gold-300); }
.cta-left .s-tag::before { background: var(--gold-300); }
.cta-left .s-title { color: var(--white); margin-bottom: .6rem; }
.cta-left .s-title em { color: var(--green-200); font-style: italic; }
.cta-left p { font-size: 14px; color: rgba(255,255,255,.5); font-weight: 300; }
.cta-right { display: flex; flex-direction: column; gap: 12px; min-width: 320px; }
.cta-input {
  padding: 13px 16px; border-radius: 2px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07); color: var(--white);
  font-family: var(--font-body); font-size: 13px; outline: none; transition: border-color .2s;
}
.cta-input::placeholder { color: rgba(255,255,255,.4); }
.cta-input:focus { border-color: var(--gold-400); }
.cta-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-submit {
  padding: 14px; background: var(--gold-500); color: var(--white);
  border: none; border-radius: 2px; font-family: var(--font-body); margin-top: 4px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background .2s;
}
.cta-submit:hover { background: var(--gold-400); }
.cta-phone {
  text-align: center; padding-top: .5rem; font-family: var(--font-display);
  font-size: 1.6rem; color: rgba(255,255,255,.4); letter-spacing: 2px;
}
.cta-phone strong { color: var(--gold-300); }

.cta-select option {
  background-color: var(--green-900);
  color: var(--white);
}

/* ── FOOTER ── */
footer {
  background: var(--green-900); border-top: 1px solid rgba(255,255,255,.07);
  padding: 2.5rem 4rem; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand {
  font-family: var(--font-display); font-size: .85rem; color: rgba(255,255,255,.3); letter-spacing: 1px;
}
.footer-brand strong { color: rgba(255,255,255,.6); font-weight: 400; }
.footer-legal { font-size: 10px; color: rgba(255,255,255,.2); max-width: 360px; line-height: 1.6; }
.footer-contact {
  min-width: 0;          /* <--- ESTO ES CRUCIAL: Permite que el flex item se encoja */
  max-width: 100%;       /* Asegura que no se salga de la pantalla */
  overflow: hidden;      /* Previene desbordamientos accidentales */
}
.footer-contact a {
  display: block;
  color: var(--gold-300);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.8;
  white-space: normal;   /* <--- IMPORTANTE: Anula cualquier nowrap heredado */
  word-break: break-word;
  overflow-wrap: break-word;
  width: 100%;           /* Ocupa todo el espacio disponible */
  transition: color .2s;
}
.footer-contact a:hover { 
  color: var(--gold-400); 
  text-decoration: underline;
}

/* ── SCROLL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; } .reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; } .reveal-delay-4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── BOTÓN HAMBURGUESA BASE ── */
.menu-toggle {
  display: none; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer;
  align-items: center; justify-content: center; z-index: 200;
}
.menu-toggle svg { width: 24px; height: 24px; transition: transform 0.3s; }

/* ── RESPONSIVE: TABLETS (max-width: 1024px) ── */
@media (max-width: 1024px) {
  section { padding: 5rem 3rem; }
  .hero-content { padding: 120px 3rem 4rem; }
  
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .planos-grid { grid-template-columns: repeat(2, 1fr); }
  .planos-features-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-steps { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .proceso-steps::before { display: none; }
  .loc-left { padding: 4rem 3rem; }
}

/* ── RESPONSIVE: MÓVILES (max-width: 768px) ── */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  section { padding: 4rem 1.5rem; }
  
  /* Configuración Menú Hamburguesa */
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: rgba(14, 28, 29, 0.98); /* Verde pizarra oscuro de Vitala */
    backdrop-filter: blur(15px);
    flex-direction: column; 
    justify-content: flex-start; /* 1. Empieza desde arriba */
    align-items: flex-start;
    padding: 6rem 2rem 3rem; /* 2. Espacio superior para la barra */
    transition: right 0.4s ease; z-index: 150;
    border-left: 1px solid rgba(126, 199, 195, 0.16);
    overflow-y: auto; /* 3. Scroll por si la pantalla es muy pequeña */
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 16px; margin-bottom: 1.5rem; }
  .nav-cta { width: 100%; text-align: center; margin-top: 1rem; }

  /* Hero */
  .hero-content { padding: 100px 1.5rem 3rem; }
  .hero h1 { font-size: clamp(2.5rem, 8vw, 3rem); }
  .hero-actions { flex-direction: column; width: 100%; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; text-align: center; }
  .hero-stats { display: none; }

  /* Grillas a 1 columna */
  .benefits-grid, .garantias-grid, .proceso-steps, .planos-grid, .planos-features-grid { grid-template-columns: 1fr; }
  .planos-section { padding: 4rem 1.5rem; }
  .planos-concept-banner { flex-direction: column; text-align: left; }
  .proceso-steps { gap: 2rem; }
  
  /* Ubicación y Formulario */
  .location-split { grid-template-columns: 1fr; }
  .loc-left { padding: 3rem 1.5rem; }
  .loc-right { min-height: 350px; }
  .cta-inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .cta-right { min-width: 100%; }

  /* Footer */
  footer { 
    flex-direction: column; 
    align-items: flex-start; 
    padding: 3rem 1.5rem; 
  }
  .footer-contact { 
    align-items: flex-start; 
    margin-top: 1rem; 
    width: 100%; /* Asegura que tenga el ancho total disponible */
  }
}


/* ════════════════════════════════════════
   MODAL COTIZADOR — 4 TABS
   Sistema de diseño Monteverde
════════════════════════════════════════ */

/* ── Overlay ── */
.mc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,20,8,.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow-y: auto;
  padding: 24px 16px 40px;
  animation: mcOverlayIn .25s ease;
}
@keyframes mcOverlayIn { from { opacity:0; } to { opacity:1; } }

/* ── Card ── */
.mc-card {
  max-width: 660px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0,0,0,.45);
  animation: mcCardIn .32s cubic-bezier(.22,1,.36,1);
}
@keyframes mcCardIn {
  from { opacity:0; transform:translateY(28px) scale(.96); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

/* ── Header ── */
.mc-header {
  background: linear-gradient(140deg, #0a1819 0%, #132627 55%, #244647 100%);
  padding: 28px 32px 0;
  position: relative;
}
.mc-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.mc-close:hover { background: rgba(255,255,255,.24); color: #fff; }

.mc-header-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mc-badge-label {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(255,255,255,.13);
  color: var(--green-200);
  border: 1px solid rgba(126, 199, 195, 0.25);
}
.mc-badge-estado {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  background: #4caf50; color: #fff;
}
.mc-titulo {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: .5px;
}
.mc-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 0; margin-bottom: 20px;
}
.mc-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: rgba(255,255,255,.65);
  font-family: var(--font-body);
}
.mc-meta-item strong { color: var(--green-200); }
.mc-meta-item svg { stroke: rgba(255,255,255,.4); flex-shrink: 0; }
.mc-meta-sep { color: rgba(255,255,255,.25); margin: 0 8px; font-size: 11px; }

/* ── Tabs Nav (dentro del header) ── */
.mc-tabs-nav {
  display: flex;
  gap: 0;
  margin: 0 -32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mc-tab-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 6px;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  background: transparent;
  border: none; border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .22s, border-color .22s, background .22s;
}
.mc-tab-btn svg { stroke: currentColor; opacity: .6; transition: opacity .22s; }
.mc-tab-btn:hover { color: rgba(255,255,255,.75); background: rgba(255,255,255,.05); }
.mc-tab-btn:hover svg { opacity: 1; }
.mc-tab-active {
  color: #fff !important;
  border-bottom-color: var(--gold-400) !important;
  background: rgba(255,255,255,.06) !important;
}
.mc-tab-active svg { opacity: 1 !important; }

/* ── Panels ── */
.mc-panel { display: none; }
.mc-panel-active { display: block; animation: mcPanelIn .28s ease; }
@keyframes mcPanelIn {
  from { opacity:0; transform: translateY(8px); }
  to   { opacity:1; transform: translateY(0); }
}
.mc-body { padding: 26px 32px 28px; }
.mc-body-gal { padding: 20px 24px 24px; }

/* ── Elementos del Cotizador ── */
.mc-label {
  display: block;
  font-size: 11px; font-weight: 600;
  color: #4a6741; text-transform: uppercase;
  letter-spacing: 1.2px; margin-bottom: 8px;
}
.mc-modalidad { margin-bottom: 20px; }
.mc-pago-btns { display: flex; gap: 8px; }
.mc-pago-btn {
  flex: 1; padding: 10px 8px;
  border-radius: 8px; border: 2px solid var(--gray-300);
  background: #fff; color: var(--gold-500);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.mc-pago-active {
  background: var(--gold-500) !important;
  color: #fff !important;
  border-color: var(--gold-500) !important;
}
.mc-inputs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.mc-input-wrap { position: relative; }
.mc-input {
  width: 100%; padding: 12px 38px 12px 14px;
  border: 2px solid var(--gray-300); border-radius: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  box-sizing: border-box; outline: none; transition: border .2s;
}
.mc-input:focus { border-color: var(--gold-500); }
.mc-input-suffix {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: #888; font-size: 15px; pointer-events: none;
}
.mc-suffix-text { font-size: 12px; right: 10px; }
.mc-err { color: #d32f2f; font-size: 11px; margin-top: 4px; display: none; }

/* Resultados */
.mc-resultados {
  background: linear-gradient(135deg, var(--green-50), #e5f3f2);
  border-radius: 12px; padding: 18px;
  margin-bottom: 18px; border: 1px solid var(--green-100);
}
.mc-res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mc-res-card {
  background: #fff; border-radius: 8px; padding: 13px 14px;
  text-align: center; box-shadow: 0 2px 8px rgba(19,38,39,.07);
}
.mc-res-total { grid-column: 1 / -1; }
.mc-res-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 4px; }
.mc-res-val { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--green-900); }
.mc-res-green { color: #32a804 !important; }
.mc-res-big { font-size: 22px; }
.mc-info-cero {
  margin-top: 12px; background: rgba(19,38,39,.07);
  border-radius: 8px; padding: 9px 13px;
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--gold-600); font-weight: 500;
}
.mc-info-cero svg { stroke: var(--gold-500); flex-shrink: 0; }
.mc-aviso {
  margin-top: 10px; background: #fff3e0; border-radius: 8px;
  padding: 9px 13px; font-size: 11px; color: #e65100;
}

/* Tabla toggle */
.mc-tabla-toggle {
  width: 100%; padding: 11px;
  border: 2px solid var(--gray-300); border-radius: 8px;
  background: #fff; color: var(--gold-500);
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  cursor: pointer; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s;
}
.mc-tabla-toggle:hover { background: var(--green-50); }
.mc-tabla-wrap {
  max-height: 240px; overflow-y: auto;
  border-radius: 8px; border: 1px solid var(--gray-300);
  margin-bottom: 16px;
}
.mc-tabla { width: 100%; border-collapse: collapse; font-size: 12px; }
.mc-tabla thead { position: sticky; top: 0; background: var(--green-900); color: #fff; }
.mc-tabla th, .mc-tabla td { padding: 7px 9px; }
.mc-tabla th { font-size: 10px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }

/* CTA */
.mc-cta-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: #fff; border: none; border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700; letter-spacing: .5px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 18px rgba(19,38,39,.32);
}
.mc-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 24px rgba(19,38,39,.44); }
.mc-footer-nota { text-align: center; color: #aaa; font-size: 11px; margin-top: 10px; }

/* ── DIMENSIONES ── */
.dim-header { margin-bottom: 20px; }
.dim-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--green-900); margin-bottom: 3px;
}
.dim-sub { font-size: 12px; color: #888; }

/* Esquema visual */
.dim-plano { 
  margin-bottom: 22px; 
  padding: 36px 45px; /* NUEVO: Da espacio interno para que las etiquetas no se corten */
}
.dim-plano-inner {
  position: relative; width: 100%;
  aspect-ratio: 16/7;
  border: 2px solid var(--green-100); border-radius: 10px;
  background: linear-gradient(135deg, var(--green-50), #e5f3f2);
}
.dim-label {
  position: absolute; display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-body); font-size: 11px; color: #4a6741;
  gap: 2px; white-space: nowrap; /* Evita que el texto de los metros salte de línea */
}
.dim-label strong { font-family: var(--font-display); font-size: 16px; color: var(--green-900); }
.dim-label-frente { bottom: -32px; left: 50%; transform: translateX(-50%); flex-direction: row; gap: 5px; }
.dim-label-fondo  { top: -32px; left: 50%; transform: translateX(-50%); flex-direction: row; gap: 5px; }
.dim-label-latizq { left: -45px; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.dim-label-latder { right: -45px; top: 50%; transform: translateY(-50%) rotate(90deg); }

/* Cards de medidas */
.dim-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 20px;
}
.dim-card {
  background: #fff; border: 1px solid var(--green-100); border-radius: 10px;
  padding: 14px 12px; text-align: center;
  box-shadow: 0 2px 8px rgba(19,38,39,.06);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.dim-card-icon {
  width: 30px; height: 30px; border-radius: 6px; background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
}
.dim-card-icon svg { stroke: var(--gold-500); }
.dim-card-icon-gold { background: #FAEEDA !important; }
.dim-card-icon-gold svg { stroke: var(--gold-500) !important; }
.dim-card-sup { border-color: #faeeda; background: #fefbf3; }
.dim-card-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.dim-card-val {
  font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--green-900);
}
.dim-card-val-gold { color: var(--gold-600) !important; }

/* Extra dims */
.dim-extra { background: var(--green-50); border-radius: 10px; padding: 16px 18px; border: 1px solid var(--green-100); }
.dim-extra-header {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gold-500); margin-bottom: 12px;
}
.dim-extra-header svg { stroke: var(--gold-500); }
.dim-extra-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dim-extra-list li {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--green-100); border-radius: 7px;
  padding: 9px 13px; font-size: 12px;
}
.dim-extra-list li .dex-nombre { color: #555; }
.dim-extra-list li .dex-val { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--green-900); }

/* ── INVERSIÓN ── */
.inv-header { margin-bottom: 18px; }
.inv-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--green-900); margin-bottom: 3px; }
.inv-sub { font-size: 12px; color: #888; }
.inv-current {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  border-radius: 12px; padding: 18px 22px; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.inv-current-label { font-size: 10px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: 1.5px; }
.inv-current-val {
  font-family: var(--font-display); font-size: 32px; font-weight: 600; color: #fff; letter-spacing: .5px;
}
.inv-current-rate {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--green-200);
}
.inv-current-rate svg { stroke: var(--green-200); }

.inv-timeline { margin-bottom: 18px; padding: 0 4px; }
.inv-chart-svg { width: 100%; height: auto; overflow: visible; }

.inv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.inv-card {
  background: #fff; border: 1px solid var(--green-100); border-radius: 10px;
  padding: 14px 12px; text-align: center; position: relative;
  box-shadow: 0 2px 8px rgba(19,38,39,.06);
}
.inv-card-mid { border-color: var(--green-100); }
.inv-card-best { border-color: var(--gold-300); background: #fefbf3; }
.inv-card-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: #fff; font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.inv-card-period { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.inv-card-val {
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--green-900); margin-bottom: 4px;
}
.inv-card-val-gold { color: var(--gold-600) !important; }
.inv-card-delta {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--green-100); color: var(--gold-600);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.inv-card-delta svg { stroke: var(--gold-500); }
.inv-delta-gold { background: #faeeda !important; color: var(--gold-600) !important; }
.inv-delta-gold svg { stroke: var(--gold-500) !important; }
.inv-disclaimer { font-size: 10px; color: #aaa; line-height: 1.5; }

/* ── GALERÍA ── */
.gal-header { margin-bottom: 16px; }
.gal-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--green-900); margin-bottom: 3px; }
.gal-sub { font-size: 12px; color: #888; }
.gal-main {
  position: relative; border-radius: 12px; overflow: hidden;
  margin-bottom: 12px; background: var(--green-900); aspect-ratio: 16/8;
}
.gal-slide { display: none; height: 100%; }
.gal-slide.active { display: block; animation: galIn .3s ease; }
@keyframes galIn { from{opacity:0;} to{opacity:1;} }
.gal-img {
  height: calc(100% - 36px); width: 100%;
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
}
.gal-img-overlay {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.gal-img-overlay::after {
  content: 'Imagen ilustrativa';
  font-family: var(--font-body); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.gal-caption {
  padding: 9px 16px; background: rgba(0,0,0,.5);
  font-family: var(--font-display); font-size: 14px; font-style: italic; color: rgba(255,255,255,.8);
}
.gal-ctrl {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 2; backdrop-filter: blur(4px);
}
.gal-ctrl:hover { background: rgba(255,255,255,.28); }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-dots {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.gal-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.35); cursor: pointer; transition: background .2s, transform .2s;
}
.gal-dot-active { background: var(--gold-400) !important; transform: scale(1.3); }
.gal-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.gal-thumb {
  border-radius: 8px; aspect-ratio: 4/3;
  display: flex; align-items: flex-end; padding: 6px 8px;
  cursor: pointer; border: 2px solid transparent; transition: border-color .2s;
  overflow: hidden;
}
.gal-thumb-active { border-color: var(--gold-400) !important; }
.gal-thumb span { font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.8); }

/* ── Responsive del modal ── */
@media (max-width: 600px) {
  .mc-header { padding: 22px 20px 0; }
  .mc-body { padding: 20px 20px 22px; }
  .mc-tabs-nav { margin: 0 -20px; }
  .mc-tab-btn { font-size: 9px; padding: 11px 4px; gap: 4px; }
  .mc-tab-btn svg { display: none; }
  .mc-meta-sep { display: none; }
  .mc-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .mc-inputs-grid { grid-template-columns: 1fr; }
  
  /* ── CORRECCIÓN DEL COTIZADOR: Evita que las tarjetas sobresalgan ── */
  .mc-res-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mc-resultados { padding: 14px 12px; }
  .mc-res-card { padding: 12px 4px; min-width: 0; }
  .mc-res-val { font-size: 15px; } /* Reducimos la fuente para que el número quepa */
  .mc-res-big { font-size: 18px; }
  .mc-res-label { font-size: 8px; letter-spacing: 0; }
  
  .dim-grid { grid-template-columns: repeat(2,1fr); }
  
  /* ── CORRECCIÓN DEL PLANO Y TEXTO ── */
  .dim-plano { padding: 10px; margin-bottom: 16px; } 
  .dim-plano-inner { aspect-ratio: unset; height: 160px; }
  #dim-sup-grande { font-size: 18px !important; }
  .dim-label-frente, .dim-label-fondo { display: none; }
  .dim-label-latizq, .dim-label-latder { display: none; }
  /* ────────────────────────────────── */

  .inv-cards { grid-template-columns: 1fr; }
  .gal-thumbs { grid-template-columns: repeat(4,1fr); }
  .mc-body-gal { padding: 16px 16px 20px; }
}

/* ── CONTROLES DE NÚMERO PERSONALIZADOS ── */
.mc-custom-number {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-btn-stepper {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 2px solid var(--gray-300);
  background: #fff;
  border-radius: 8px;
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mc-btn-stepper:hover {
  background: var(--green-50);
  border-color: var(--green-600);
}

.mc-btn-stepper:active {
  transform: scale(0.95);
}

/* Ocultar flechas nativas del input number */
.mc-no-spinners::-webkit-outer-spin-button,
.mc-no-spinners::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mc-no-spinners[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ESTILOS PARA EL VIDEO DE FONDO */
.hero {
  position: relative;
  overflow: hidden; /* Asegura que el video no se salga del contenedor */
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 0;
  object-fit: cover; /* Mantiene la proporción del video */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Capa oscura semitransparente. Ajusta el 0.4 si quieres más o menos oscuridad */
  z-index: 1;
}

/* =========================================
   MEGA MENÚ DESARROLLOS - MONTEVERDE (VERDE)
   ========================================= */
.nav-item-dropdown { position: relative; display: inline-flex; align-items: center; height: 100%; }
.nav-link-dropdown { display: inline-flex; align-items: center; cursor: pointer; }

.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--white); border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 12px; width: 320px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000;
  border: 1px solid rgba(0,0,0,0.08);
}

.mega-menu::before { content: ""; position: absolute; top: -20px; left: 0; width: 100%; height: 20px; }
.nav-item-dropdown:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }

.mega-menu-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }

.mega-menu-card {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px;
  text-decoration: none !important; transition: all 0.2s ease;
  border: 1px solid transparent; background: var(--white);
}

/* Hover y Estado Activo: Fondo Verde Claro y Borde Dorado */
.mega-menu-card:hover, .mega-menu-card.active-project {
  background: var(--green-50);
  border-color: var(--gold-300);
}

/* Borra la regla antigua de .mm-icon svg y agrega estas: */
/* Recuadro contenedor del logo del proyecto (estado base) */
.mm-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.mm-img-logo {
  width: 30px; /* Tamaño del logo en el recuadro */
  height: 30px;
  object-fit: contain; /* Evita que el logo se deforme */
  transition: all 0.2s ease;
}

/* El fondo del recuadro se vuelve dorado al interactuar */
.mega-menu-card:hover .mm-icon, 
.mega-menu-card.active-project .mm-icon {
  background: var(--gold-main, var(--gold-500)); 
  border-color: transparent;
}

/* TRUCO MÁGICO: Esto convierte tus logos a color BLANCO PURO al pasar el cursor o estar activos */
.mega-menu-card:hover .mm-img-logo, 
.mega-menu-card.active-project .mm-img-logo {
  filter: brightness(0) invert(1);
}

.mm-title { 
  display: flex; 
  align-items: center; 
  font-family: var(--font-display); 
  font-size: 16px; 
  font-weight: 600; 
  color: var(--green-700); /* 👈 Fuerza el texto verde oscuro */
  margin-bottom: 0px; 
  line-height: 1.2; 
  text-transform: none ; /* 👈 Apaga las mayúsculas heredadas */
}

/* El punto que indica la página activa */
.mm-active-dot { display: inline-block; width: 6px; height: 6px; background-color: var(--gold-500); border-radius: 50%; margin-left: 6px; box-shadow: 0 0 6px var(--gold-500); }

.mm-desc { 
  font-family: var(--font-body); 
  font-size: 12px; 
  color: var(--gray-500); /* 👈 Fuerza el texto gris */
  line-height: 1.3; 
  text-transform: none;
}

@media (max-width: 900px) {
  /* Forzamos a que el contenedor NO mida el 100% de alto */
  .nav-item-dropdown { 
    width: 100%; 
    height: auto !important; 
    flex-direction: column; 
    align-items: flex-start; 
    margin-bottom: 0; 
  }
  
  /* El margen se lo damos al enlace principal */
  .nav-links a.nav-link-dropdown { 
    margin-bottom: 1.5rem !important; 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
  }
  
  /* Ajustes de margen al abrir el panel */
  .nav-item-dropdown.mobile-open a.nav-link-dropdown { margin-bottom: 1rem !important; }
  .nav-item-dropdown.mobile-open { margin-bottom: 1.5rem; }

  /* Rotación de la flecha */
  .nav-link-dropdown svg { transition: transform 0.3s ease; }
  .nav-item-dropdown.mobile-open .nav-link-dropdown svg { transform: rotate(180deg); }
  
  /* Anulamos el :hover de PC para que NO lo empuje a la izquierda en celular */
  .mega-menu, 
  .nav-item-dropdown:hover .mega-menu { 
    position: static !important; 
    width: 100% !important; 
    transform: none !important; /* Detiene el movimiento fantasma */
    box-shadow: none !important; 
    border: none !important; 
    padding: 0 0 0 10px !important; 
  }

  /* OCULTAMOS EL MENÚ con max-height 0 para evitar el espacio fantasma */
  .mega-menu {
    max-height: 0; 
    overflow: hidden; 
    display: block; 
    opacity: 0;
    background: transparent; 
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .mega-menu::before { display: none; }
  
  /* Mostramos el menú expandiendo el max-height mediante la clase de JS */
  .nav-item-dropdown.mobile-open .mega-menu { 
    max-height: 500px; 
    opacity: 1 !important;
  }
  
  .nav-links a.mega-menu-card { margin-bottom: 0.5rem !important; }
}


/* ══════════════════════════════════════════════════════════════════
   CARRUSEL DE FACHADAS SUGERIDAS (SECCIÓN PLANOS) & AVISO LEGAL IA
   ══════════════════════════════════════════════════════════════════ */
.fachadas-carousel-wrap {
  margin: 2.5rem 0 3.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(240,247,247,0.85));
  border: 1px solid rgba(74,150,148,0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(19,38,39,0.05);
  position: relative;
}

.fachadas-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.fachadas-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-600);
  margin-bottom: 0.35rem;
}

.fachadas-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 0.35rem 0;
}

.fachadas-sub {
  font-size: 13.5px;
  color: #666;
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.fachadas-nav-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fcar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(74,150,148,0.3);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.fcar-btn:hover {
  background: var(--green-800);
  color: #fff;
  border-color: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(27,67,50,0.2);
}

.fcar-counter {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-800);
  padding: 0 6px;
  letter-spacing: 1px;
}

.fachadas-track-container {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  width: 100%;
}

.fachadas-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.fachada-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 300px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(74,150,148,0.15);
  box-shadow: 0 6px 20px rgba(19,38,39,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fachada-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(19,38,39,0.12);
}

.fachada-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #1a2a2b;
}

.fachada-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fachada-card:hover .fachada-img {
  transform: scale(1.04);
}

.fachada-badge-ia {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(19,38,39,0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
  z-index: 2;
}

.fachada-lote-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-500);
  color: #1a2a2b;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 16px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.fachada-card-body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fachada-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 4px 0;
}

.fachada-card-sub {
  font-size: 12px;
  color: #777;
  font-style: italic;
  margin: 0 0 10px 0;
}

.fachada-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.fspec-pill {
  font-size: 11.5px;
  background: rgba(74,150,148,0.1);
  color: var(--green-800);
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
}

.fspec-pill-gold {
  background: rgba(239,159,39,0.12);
  color: var(--gold-700);
}

.fachada-btn-mapa {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--green-800);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.fachada-btn-mapa:hover {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27,67,50,0.25);
}

/* Dots Carrusel */
.fachadas-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}

.fdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(74,150,148,0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}

.fdot.active {
  width: 26px;
  border-radius: 12px;
  background: var(--gold-500);
}

/* Banner de Leyenda Adornada para Renders / IA */
.disclaimer-adorno {
  margin-top: 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(74,150,148,0.22);
  border-left: 5px solid var(--gold-500);
  border-radius: 14px;
  padding: 1.15rem 1.4rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.disclaimer-icon {
  flex-shrink: 0;
  color: var(--gold-500);
  margin-top: 2px;
}

.disclaimer-text h5 {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 4px 0;
  letter-spacing: 0.2px;
}

.disclaimer-text p {
  font-size: 12px;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   MODAL: DETALLES DE VENTA EN PESTAÑA DIMENSIONES
   ══════════════════════════════════════════════════════════════════ */
.dim-inmueble-card {
  margin-top: 1.5rem;
  background: linear-gradient(145deg, #ffffff, #f7faf9);
  border: 1.5px solid rgba(74,150,148,0.2);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
}

.dim-inmueble-header {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green-800);
  margin-bottom: 0.6rem;
}

.dim-inmueble-header h5 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--green-900);
}

.dim-inmueble-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.dim-inmueble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 1.15rem;
}

.dim-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(74,150,148,0.15);
  border-radius: 10px;
  padding: 10px 12px;
}

.dim-bullet {
  color: var(--green-600);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

.dim-item strong {
  display: block;
  font-size: 12px;
  color: var(--green-900);
  margin-bottom: 2px;
}

.dim-item p {
  font-size: 11px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.dim-leyenda-terreno {
  background: rgba(239,159,39,0.08);
  border: 1px solid rgba(239,159,39,0.3);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11.5px;
  color: #6d4c06;
  line-height: 1.45;
}

.dim-leyenda-terreno .leyenda-icon {
  font-size: 15px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   MODAL: GALERÍA DINÁMICA POR LOTE Y LEYENDA LEGAL
   ══════════════════════════════════════════════════════════════════ */
.gal-img {
  position: relative;
}

.gal-badge-ia {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(19,38,39,0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.gal-img-contain {
  background-color: #fafafa !important;
}

.gal-leyenda-legal {
  margin-top: 12px;
  background: rgba(74,150,148,0.06);
  border: 1px solid rgba(74,150,148,0.2);
  border-radius: 10px;
  padding: 9px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
  color: #444;
  line-height: 1.45;
}

.gal-leyenda-legal svg {
  color: var(--gold-600);
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .fachada-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .fachadas-carousel-wrap {
    padding: 1.25rem;
  }
  .fachada-card {
    flex: 0 0 100%;
    min-width: 250px;
  }
  .dim-inmueble-grid {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════════════════════════════
   SELECTOR DE VISTAS (LOTES VS ENTORNO & PROYECTOS CERCANOS) & POI
   ══════════════════════════════════════════════════════════════════ */
.map-controls-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  width: 100%;
}

.map-view-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: rgba(19, 38, 39, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 150, 148, 0.35);
  padding: 6px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.mvs-btn-center {
  background: rgba(74, 150, 148, 0.18);
  color: #a4e4e0;
  border: 1px solid rgba(74, 150, 148, 0.4);
}

.mvs-btn-center:hover {
  background: rgba(74, 150, 148, 0.35);
  color: #fff;
}

/* CHIPS DE LUGARES DE INTERÉS */
.poi-chips-scroller {
  width: 100%;
  max-width: 1100px;
  overflow-x: auto;
  padding: 4px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 150, 148, 0.4) transparent;
}

.poi-chips-scroller::-webkit-scrollbar {
  height: 4px;
}

.poi-chips-scroller::-webkit-scrollbar-thumb {
  background: rgba(74, 150, 148, 0.4);
  border-radius: 4px;
}

.poi-chips-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: max-content;
}

.poi-chips-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--gold-300);
  margin-right: 4px;
}

.poi-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(19, 38, 39, 0.7);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.poi-chip-btn:hover {
  background: rgba(74, 150, 148, 0.3);
  color: #fff;
  border-color: rgba(74, 150, 148, 0.6);
  transform: translateY(-1px);
}

.poi-chip-btn .chip-dist {
  font-size: 10.5px;
  opacity: 0.75;
  background: rgba(255,255,255,0.1);
  padding: 1px 6px;
  border-radius: 10px;
}

.poi-chip-highlight {
  border-color: rgba(239, 159, 39, 0.55);
  background: rgba(239, 159, 39, 0.16);
  color: #ffd894;
}

.poi-chip-highlight:hover {
  background: rgba(239, 159, 39, 0.35);
  border-color: var(--gold-400);
  color: #fff;
}

/* BOTÓN FLOTANTE DENTRO DEL MAPA PARA CENTRAR EN VITALA */
.map-floating-center-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(19, 38, 39, 0.92);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(74, 150, 148, 0.5);
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.map-floating-center-btn:hover {
  background: var(--gold-500);
  color: #132627;
  border-color: var(--gold-400);
  box-shadow: 0 6px 20px rgba(239, 159, 39, 0.4);
  transform: translateY(-2px);
}

.mvs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mvs-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mvs-btn.active {
  background: var(--gold-500);
  color: #132627;
  box-shadow: 0 2px 10px rgba(239, 159, 39, 0.35);
}

.custom-poi-marker {
  background: transparent;
  border: none;
}

.poi-pin {
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poi-pin:hover {
  transform: rotate(-45deg) scale(1.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  z-index: 1000 !important;
}

.poi-pin.poi-pin-vitala {
  width: 44px;
  height: 44px;
  box-shadow: 0 0 0 4px rgba(239, 159, 39, 0.4), 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: poiPulse 2.5s infinite;
}

@keyframes poiPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(239, 159, 39, 0.4), 0 8px 20px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 159, 39, 0.15), 0 8px 24px rgba(239, 159, 39, 0.5); }
}

.poi-emoji {
  transform: rotate(45deg);
  font-size: 17px;
  display: block;
  line-height: 1;
}

.poi-pin-vitala .poi-emoji {
  font-size: 21px;
}

#mapa-vitala .leaflet-popup-content-wrapper {
  background: #132627 !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 0 !important;
  border: 1px solid rgba(74, 150, 148, 0.3) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35) !important;
}

#mapa-vitala .leaflet-popup-tip {
  background: #132627 !important;
}

.poi-popup-card {
  padding: 14px 16px;
  min-width: 220px;
  max-width: 280px;
}

.poi-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.poi-popup-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-400);
}

.poi-popup-dist {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  padding: 2px 7px;
  border-radius: 10px;
  color: #fff;
}

.poi-popup-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.poi-popup-desc {
  font-size: 11.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
  margin: 0;
}

.poi-popup-btn {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-400);
  text-decoration: underline;
  cursor: pointer;
}
