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

:root {
  --green-900: #0f1f07; --green-800: #1a3310; --green-700: #27500a;
  --green-600: #3B6D11; --green-500: #639922; --green-400: #97C459;
  --green-200: #c0dd97; --green-100: #EAF3DE; --green-50:  #f5faf0;
  --gold-700:  #633806; --gold-600:  #854F0B; --gold-500:  #BA7517;
  --gold-400:  #EF9F27; --gold-300:  #FAC775; --gold-100:  #FAEEDA;
  --gold-50:   #FEFBF3; --gray-900:  #1a1a18; --gray-700:  #444441;
  --gray-500:  #888780; --gray-300:  #D3D1C7; --gray-100:  #F1EFE8;
  --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(15,31,7,.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(192,221,151,.12);
}

.nav-item-dropdown:hover .nav-link-dropdown {
  color: var(--gold-300) !important;
}
.nav-logo { 
  display: flex; 
  align-items: center; 
  gap: 8px; /* 👈 Este valor controla la separación exacta entre la imagen y el texto */
  text-decoration: none; 
  height: 100%;
}

.navbar-img-logo {
  height: 55px; 
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen; 
  filter: contrast(1.1) brightness(1.1); 
  /* margin-right: -10px; 👈 Si notas que la imagen original tiene mucho espacio negro a los lados, descomenta esta línea y ajusta el número para acercarlos a la fuerza */
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text span:first-child {
  font-family: var(--font-display); font-size: 17px; letter-spacing: 2px;
  color: var(--white); font-weight: 600; text-transform: uppercase;
}
.nav-logo-text span:last-child {
  font-size: 9px; letter-spacing: 3px; color: var(--gold-300);
  text-transform: uppercase; font-weight: 300; margin-top: -2px;
}
.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;
}
.nav-cta:hover { background: var(--gold-400); }

/* ── 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(59,109,17,.45) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 15% 30%, rgba(15,110,86,.25) 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(59,109,17,.15) 0%, rgba(99,153,34,.08) 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(--gray-900); 
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Ajustes de texto para fondo oscuro */
#terrenos .s-tag { color: var(--gold-300); }
#terrenos .s-tag::before { background: var(--gold-300); }
#terrenos .s-title { color: var(--white); }
#terrenos .s-title em { color: var(--green-200); }
#terrenos .s-sub { color: rgba(255,255,255,.6); }

.mapa-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 0;
  background: var(--gray-800);
  border: 1px solid rgba(239,159,39,.15);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

#svg-plano {
  width: 100%;
  height: auto;
  display: block;
  padding: 2rem;
}

/* Efectos de los Lotes adaptados a fondo oscuro */
.lote-poligono {
  stroke: var(--gray-900);
  stroke-width: 2px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.25,.46,.45,.94);
}

.lote-disponible { fill: rgba(99, 153, 34, 0.25); stroke: var(--green-500); }
.lote-disponible:hover { 
  fill: rgba(99, 153, 34, 0.65); 
  stroke: var(--white); 
  stroke-width: 3px; 
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3)); 
}

.lote-apartado { fill: rgba(186, 117, 23, 0.25); stroke: var(--gold-500); }
.lote-apartado:hover { 
  fill: rgba(186, 117, 23, 0.6); 
  stroke: var(--white); 
  stroke-width: 3px; 
}

.lote-vendido { fill: rgba(160, 30, 30, 0.2); stroke: #a01e1e; cursor: not-allowed; }
.lote-vendido:hover { fill: rgba(160, 30, 30, 0.4); }

/* Globo Flotante (Tooltip) */
.tooltip {
  position: absolute;
  top: 0;
  left: 0;
  width: 270px;
  background: rgba(13, 13, 11, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-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: 100;
  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(255,255,255,0.08); 
}
.tt-title { 
  font-family: var(--font-display); 
  color: var(--gold-300); 
  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(255,255,255,0.02); 
  border-top: 1px solid rgba(255,255,255,0.08); 
}
.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(--gold-300); 
  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; }
  #svg-plano { padding: 1rem; }
}

/* ── 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; }

/* ── GARANTÍAS ── */
.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(59,109,17,.3) 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 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: rgba(192,221,151,.4); }
.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); }

/* ── 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 { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-contact a {
  font-size: 11px; color: var(--gold-300); text-decoration: none; letter-spacing: .5px;
}
.footer-contact a:hover { color: var(--gold-400); }

/* ── 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; }

/* ── 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); }
  .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(15,31,7,0.98); /* Mantiene el verde oscuro de Monteverde */
    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(192,221,151,.1);
    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 { grid-template-columns: 1fr; }
  .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; }
}


/* ════════════════════════════════════════
   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, #0f1f07 0%, #1a3310 55%, #2d5a1b 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(192,221,151,.2);
}
.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: #c8e6a0; }
.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 #e0e8d8;
  background: #fff; color: #3B6D11;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.mc-pago-active {
  background: #3B6D11 !important;
  color: #fff !important;
  border-color: #3B6D11 !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 #e0e8d8; 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: #3B6D11; }
.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,#f5f9f0,#eef5e6);
  border-radius: 12px; padding: 18px;
  margin-bottom: 18px; border: 1px solid #d4e8c0;
}
.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(59,109,17,.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: #1a3310; }
.mc-res-green { color: #32a804 !important; }
.mc-res-big { font-size: 22px; }
.mc-info-cero {
  margin-top: 12px; background: rgba(59,109,17,.07);
  border-radius: 8px; padding: 9px 13px;
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: #2d5a1b; font-weight: 500;
}
.mc-info-cero svg { stroke: #3B6D11; 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 #e0e8d8; border-radius: 8px;
  background: #fff; color: #3B6D11;
  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: #f5f9f0; }
.mc-tabla-wrap {
  max-height: 240px; overflow-y: auto;
  border-radius: 8px; border: 1px solid #e0e8d8;
  margin-bottom: 16px;
}
.mc-tabla { width: 100%; border-collapse: collapse; font-size: 12px; }
.mc-tabla thead { position: sticky; top: 0; background: #1a3310; 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,#2d5a1b,#3B6D11);
  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(59,109,17,.32);
}
.mc-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 24px rgba(59,109,17,.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: #1a3310; 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 #d4e8c0; border-radius: 10px;
  background: linear-gradient(135deg,#f5f9f0,#eef5e6);
}
.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: #1a3310; }
.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 #e8f0df; border-radius: 10px;
  padding: 14px 12px; text-align: center;
  box-shadow: 0 2px 8px rgba(59,109,17,.06);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.dim-card-icon {
  width: 30px; height: 30px; border-radius: 6px; background: #eaf3de;
  display: flex; align-items: center; justify-content: center;
}
.dim-card-icon svg { stroke: #3B6D11; }
.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: #1a3310;
}
.dim-card-val-gold { color: var(--gold-600) !important; }

/* Extra dims */
.dim-extra { background: #f5f9f0; border-radius: 10px; padding: 16px 18px; border: 1px solid #d4e8c0; }
.dim-extra-header {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: #3B6D11; 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 #e8f0df; 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: #1a3310; }

/* ── INVERSIÓN ── */
.inv-header { margin-bottom: 18px; }
.inv-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #1a3310; margin-bottom: 3px; }
.inv-sub { font-size: 12px; color: #888; }
.inv-current {
  background: linear-gradient(135deg,#1a3310,#2d5a1b);
  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: #c8e6a0;
}
.inv-current-rate svg { stroke: #97C459; }

.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 #e8f0df; border-radius: 10px;
  padding: 14px 12px; text-align: center; position: relative;
  box-shadow: 0 2px 8px rgba(59,109,17,.06);
}
.inv-card-mid { border-color: #d4e8c0; }
.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: #1a3310; margin-bottom: 4px;
}
.inv-card-val-gold { color: var(--gold-600) !important; }
.inv-card-delta {
  display: inline-flex; align-items: center; gap: 3px;
  background: #eaf3de; color: #2d5a1b;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.inv-card-delta svg { stroke: #3B6D11; }
.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: #1a3310; margin-bottom: 3px; }
.gal-sub { font-size: 12px; color: #888; }
.gal-main {
  position: relative; border-radius: 12px; overflow: hidden;
  margin-bottom: 12px; background: #1a3310; 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 #e0e8d8;
  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: */

.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: 300px; 
    opacity: 1 !important;
  }
  
  .nav-links a.mega-menu-card { margin-bottom: 0.5rem !important; }
}