/* =====================================================
   INMACULADA — home.css
   Paleta: Negro/Dorado Luxury
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  /* 🏆 PALETA DORADA */
  --gold:       #D4AF37;
  --gold-light: #E5C158;
  --gold-pale:  #F4E8C1;
  --gold-dark:  #B8941F;
  --gold-dim:   rgba(212,175,55,.15);
  --gold-glow:  rgba(212,175,55,.25);

  /* 🌑 FONDOS OSCUROS */
  --black:      #0a0a0a;
  --charcoal:   #111111;
  --dark:       #1a1a1a;
  --surface:    #1e1e1e;
  --surface2:   #252525;

  /* 📝 TEXTOS CLAROS */
  --text:       #f5f5f5;
  --text2:      #b8b8b8;
  --text3:      #777777;

  /* ── BORDES */
  --border:     rgba(212,175,55,.2);

  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  --ease:   cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --t:      .24s;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── UTILIDADES ─────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 96px 0; }
@media (max-width: 768px) { .section-padding { padding: 64px 0; } }

/* ── ANIMACIONES DE SCROLL ───────────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-up    { transform: translateY(36px); }
.reveal-left  { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: none;
}
.delay-1 { transition-delay: .12s !important; }
.delay-2 { transition-delay: .24s !important; }
.delay-3 { transition-delay: .36s !important; }

/* ── EYEBROW / SECTION HEADER ────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--gold); margin-bottom: 12px;
}
.section-header { text-align: center; max-width: 560px; margin: 0 auto 56px; }
.section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400; color: var(--text);
  line-height: 1.2; margin-bottom: 14px;
}
.section-header h2 em { font-style: italic; color: var(--gold); }
.section-header p { font-size: 15px; color: var(--text2); line-height: 1.65; }

/* ══════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════ */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background var(--t), box-shadow var(--t);
}
.main-nav.scrolled {
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 20px rgba(0,0,0,.8);
}
.nav-container {
  max-width: 1180px; margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 34px; border-radius: 8px; object-fit: contain; }
.logo span { font-family: 'DM Serif Display', serif; font-size: 16px; color: var(--text); white-space: nowrap; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text2); transition: color var(--t); }
.nav-links a:hover { color: var(--gold); }
.admin-lock {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-dim); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 13px; text-decoration: none;
  transition: all var(--t);
}
.admin-lock:hover { background: var(--gold); color: var(--black); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ══════════════════════════════════════════════════
   DOT NAV LATERAL
   ══════════════════════════════════════════════════ */
.dot-nav {
  position: fixed; left: 22px; top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex; flex-direction: column; gap: 14px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 2px solid rgba(255,255,255,.6);
  display: block; cursor: pointer;
  transition: all .3s var(--ease);
  position: relative; text-decoration: none;
}
.dot::after {
  content: attr(data-label);
  position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%);
  background: var(--gold); color: var(--black);
  font-size: 11px; font-weight: 600;
  white-space: nowrap; padding: 4px 10px;
  border-radius: 6px; opacity: 0;
  pointer-events: none; transition: opacity .2s;
}
.dot:hover::after { opacity: 1; }
.dot:hover, .dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(212,175,55,.3);
}
/* Cuando la sección es clara, dots oscuros */
.dots-dark .dot {
  background: rgba(212,175,55,.3);
  border-color: rgba(212,175,55,.5);
}
.dots-dark .dot:hover, .dots-dark .dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,.2);
}
@media (max-width: 768px) { .dot-nav { display: none; } }

/* ══════════════════════════════════════════════════
   PARALLAX — CONTENEDOR BASE
   ══════════════════════════════════════════════════ */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform .05s linear;
  z-index: 0;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.parallax-section > *:not(.parallax-bg):not(.parallax-overlay) {
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════════════
   HERO — overlay oscuro con acentos dorados
   ══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
}

.hero .parallax-bg {
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=1920&q=80');
}

.hero .parallax-overlay {
  background: linear-gradient(
    135deg,
    rgba(10,10,10,.82) 0%,
    rgba(30,25,15,.75) 50%,
    rgba(10,10,10,.78) 100%
  );
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold-pale);
  background: rgba(212,175,55,.1);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 28px;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 400; line-height: 1.1;
  color: #fff; margin-bottom: 22px; letter-spacing: -.5px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black); border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all var(--t) var(--ease);
  box-shadow: 0 4px 20px rgba(212,175,55,.3);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,175,55,.4); filter: brightness(1.1); }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(212,175,55,.4); border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all var(--t) var(--ease);
  backdrop-filter: blur(4px);
}
.btn-hero-ghost:hover { background: rgba(212,175,55,.15); border-color: var(--gold); }

.hero-scroll-hint { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3; }
.hero-scroll-hint span {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(212,175,55,.6));
  margin: 0 auto;
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity:0; transform:scaleY(0); transform-origin:top; }
  50%  { opacity:1; transform:scaleY(1); }
  100% { opacity:0; transform:scaleY(1); transform-origin:bottom; }
}

/* ══════════════════════════════════════════════════
   STATS — fondo negro con dorado
   ══════════════════════════════════════════════════ */
.stats-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  padding: 56px 24px; position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(212,175,55,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
}
@media (max-width: 640px) { .stats-inner { grid-template-columns: 1fr 1fr; } }
.stat-card {
  text-align: center; padding: 24px 16px;
  border-right: 1px solid rgba(212,175,55,.15);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.stat-card:last-child { border-right: none; }
@media (max-width: 640px) {
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(3) { border-right: 1px solid rgba(212,175,55,.15); }
}
.counter-row { display: flex; align-items: baseline; gap: 2px; }
.counter { font-family: 'DM Serif Display', serif; font-size: 48px; color: var(--gold); line-height: 1; }
.stat-plus { font-family: 'DM Serif Display', serif; font-size: 30px; color: var(--gold-light); line-height: 1; }
.stat-card p { font-size: 12px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .8px; font-weight: 500; }

.spinner-hero {
  width: 32px; height: 32px;
  border: 3px solid rgba(212,175,55,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { text-align: center; padding: 60px 20px; color: var(--text3); }
.loading-state p { font-size: 14px; }

/* ══════════════════════════════════════════════════
   INMUEBLES — fondo oscuro
   ══════════════════════════════════════════════════ */
.section-inmuebles { background: var(--charcoal); }

/* ══════════════════════════════════════════════════
   DIVISOR PARALLAX
   ══════════════════════════════════════════════════ */
.parallax-divider {
  height: 320px;
}

.parallax-divider .parallax-bg {
  background-image: url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1920&q=80');
}

.parallax-divider .parallax-overlay {
  background: linear-gradient(
    90deg,
    rgba(10,10,10,.75) 0%,
    rgba(30,25,15,.7) 100%
  );
}

.parallax-divider-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.parallax-divider-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -.3px;
}

.parallax-divider-content p {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════
   NOSOTROS — overlay oscuro suave
   ══════════════════════════════════════════════════ */
.section-about {
  background: transparent;
}

.section-about .parallax-bg {
  background-image: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?auto=format&fit=crop&w=1920&q=80');
}

.section-about .parallax-overlay {
  background: linear-gradient(
    135deg,
    rgba(17,17,17,.92) 0%,
    rgba(26,26,26,.88) 100%
  );
}

.about-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 800px) { .about-flex { grid-template-columns: 1fr; gap: 40px; } }
.about-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 42px); font-weight: 400;
  line-height: 1.15; margin-bottom: 20px; color: var(--text);
}
.about-content h2 em { font-style: italic; color: var(--gold); }
.about-content p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.btn-primary-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: #25d366; color: #fff;
  border-radius: var(--r-md); font-size: 14px; font-weight: 600;
  text-decoration: none; margin-top: 8px; transition: all var(--t);
  box-shadow: 0 4px 14px rgba(37,211,102,.28);
}
.btn-primary-outline:hover { background: #1ebe5a; transform: translateY(-1px); }
.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  border: 1px solid rgba(212,175,55,.1);
}
.video-wrapper iframe { position: absolute; inset: 0; width:100%; height:100%; }

/* ══════════════════════════════════════════════════
   SERVICIOS — overlay oscuro con dorado
   ══════════════════════════════════════════════════ */
.section-services {
  color: #fff;
}

.section-services .parallax-bg {
  background-image: url('https://images.unsplash.com/photo-1494522855154-9297ac14b55f?auto=format&fit=crop&w=1920&q=80');
}

.section-services .parallax-overlay {
  background: linear-gradient(
    135deg,
    rgba(10,10,10,.88) 0%,
    rgba(20,18,12,.85) 100%
  );
}

.section-services .section-header .eyebrow { color: var(--gold); }
.section-services .section-header h2 { color: #fff; }
.section-services .section-header h2 em { color: var(--gold); }
.section-services .section-header p { color: rgba(255,255,255,.6); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 700px) { .services-grid { grid-template-columns: 1fr; } }

.s-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.15);
  border-radius: var(--r-lg); padding: 36px 28px;
  transition: all var(--t) var(--ease);
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
}
.s-card::before {
  content: ''; position: absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.s-card:hover {
  transform: translateY(-4px);
  background: rgba(212,175,55,.06);
  border-color: rgba(212,175,55,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.s-card:hover::before { transform: scaleX(1); }
.s-icon {
  width: 52px; height: 52px;
  background: rgba(212,175,55,.1);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--gold); margin-bottom: 20px;
  transition: all var(--t);
}
.s-card:hover .s-icon { background: var(--gold); color: var(--black); border-color: var(--gold); }
.s-card h3 { font-family: 'DM Serif Display', serif; font-size: 20px; font-weight: 400; margin-bottom: 10px; color: #fff; }
.s-card p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; }

/* ══════════════════════════════════════════════════
   PROPERTIES GRID
   ══════════════════════════════════════════════════ */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 48px;
}
@media (max-width: 860px) { .properties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .properties-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid rgba(212,175,55,.12);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all var(--t) var(--ease);
  animation: cardIn .4s var(--ease) both;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(212,175,55,.15);
  border-color: rgba(212,175,55,.35);
}
@keyframes cardIn {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
.card-img-wrap { position: relative; height: 200px; overflow: hidden; background: var(--surface2); }
.card-img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .55s var(--ease); }
.card:hover .card-img { transform: scale(1.05); }
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.6) 0%, transparent 55%);
}
.card-badge {
  position: absolute; top:10px; left:10px;
  background: rgba(212,175,55,.9); border: 1px solid rgba(212,175,55,.3);
  border-radius: 999px; padding: 4px 10px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--black);
}
.card-body { padding: 16px 16px 18px; }
.card-location {
  font-size: 12px; color: var(--text3); margin-bottom: 5px;
  display: flex; align-items: center; gap: 5px;
}
.card-location i { color: var(--gold); font-size: 10px; }
.card-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 8px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-price { font-family: 'DM Serif Display', serif; font-size: 21px; color: var(--gold); margin-bottom: 10px; }
.card-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; background: var(--surface2);
  border: 1px solid rgba(212,175,55,.2); border-radius: 999px;
  font-size: 11px; color: var(--text2);
}
.chip i { font-size: 10px; color: var(--gold); }
.card-actions { display: flex; gap: 7px; }
.btn-detalles {
  flex: 1; padding: 9px 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black); border: none; border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--t);
  box-shadow: 0 2px 8px rgba(212,175,55,.25);
}
.btn-detalles:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-whatsapp-card {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 12px; background: #25d366; color: #fff;
  border-radius: var(--r-md); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all var(--t); white-space: nowrap;
}
.btn-whatsapp-card:hover { background: #1ebe5a; }

.ver-mas-wrap { text-align: center; margin: -8px 0 0; }
.btn-ver-mas {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black); border: none; border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all var(--t) var(--ease);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-ver-mas:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 8px 28px var(--gold-glow); }
.ver-mas-hint { margin-top: 10px; font-size: 12px; color: var(--text3); }

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.site-footer { background: var(--black); color: rgba(255,255,255,.5); padding: 40px 24px; text-align: center; border-top: 1px solid rgba(212,175,55,.1); }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.footer-brand span { font-family: 'DM Serif Display', serif; font-size: 16px; color: rgba(255,255,255,.8); }
.footer-copy { font-size: 12px; margin-bottom: 10px; }
.footer-wpp {
  display: inline-flex; align-items: center; gap: 6px;
  color: #4ade80; font-size: 13px; font-weight: 500; text-decoration: none; transition: color var(--t);
}
.footer-wpp:hover { color: #86efac; }

/* ══════════════════════════════════════════════════
   FAB WHATSAPP
   ══════════════════════════════════════════════════ */
.fab-wpp {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px; background: #25d366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; text-decoration: none; z-index: 700;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: all var(--t) var(--spring);
  animation: fabPulse 3s ease-in-out infinite;
}
.fab-wpp:hover { transform: scale(1.12); }
@keyframes fabPulse {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 6px 36px rgba(37,211,102,.6), 0 0 0 8px rgba(37,211,102,.08); }
}

/* ══════════════════════════════════════════════════
   MODAL / DIALOG
   ══════════════════════════════════════════════════ */
.dialog-lux {
  border: none;
  padding: 0;
  border-radius: var(--r-xl);
  width: min(92vw, 880px);
  max-height: 86vh;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  animation: dialogIn .3s var(--spring) both;
  margin: auto;
}

.dialog-lux[open] { }

.dialog-lux::backdrop {
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
}

@keyframes dialogIn {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.dialog-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 86vh;
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(212,175,55,.15);
}

.btn-cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.3);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all var(--t);
  color: var(--gold);
  line-height: 1;
}
.btn-cerrar:hover { background: var(--gold); color: var(--black); }

.dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 680px) {
  .dialog-lux {
    width: 96vw;
    max-height: 92vh;
  }
  .dialog-container {
    max-height: 92vh;
  }
  .dialog-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .dialog-gallery {
    flex: 0 0 auto;
    max-height: 45vh;
  }
  .main-img {
    height: 230px;
    flex: none;
  }
}

.dialog-gallery {
  background: var(--black);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.main-img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: opacity .2s var(--ease);
}

.no-img-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212,175,55,.3);
  font-size: 48px;
}

.thumb-list {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  background: rgba(0,0,0,.6);
  flex-shrink: 0;
}
.thumb-list::-webkit-scrollbar { height: 3px; }
.thumb-list::-webkit-scrollbar-thumb { background: rgba(212,175,55,.3); border-radius: 2px; }

.thumb {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: .55;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all var(--t);
}
.thumb:hover { opacity: .85; }
.thumb.thumb-active { opacity: 1; border-color: var(--gold); }

.dialog-info {
  padding: 24px 22px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
}
.dialog-info::-webkit-scrollbar { width: 4px; }
.dialog-info::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(37,211,102,.15);
  color: #4ade80;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 10px;
  align-self: flex-start;
  border: 1px solid rgba(37,211,102,.3);
}
.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.dialog-info h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.25;
}
.location { font-size: 13px; color: var(--text3); display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.location i { color: var(--gold); }
.price { font-family: 'DM Serif Display', serif; font-size: 25px; color: var(--gold); margin-bottom: 14px; }
.specs-grid-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 12px; }
.spec-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 6px; background: var(--surface2);
  border: 1px solid rgba(212,175,55,.2); border-radius: var(--r-md); text-align: center;
}
.spec-item i { font-size: 14px; color: var(--gold); margin-bottom: 2px; }
.spec-item strong { font-size: 13px; font-weight: 600; color: var(--text); }
.spec-item small { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; }
.extra-info { margin-bottom: 11px; }
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(212,175,55,.15); font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text2); }
.info-row strong { color: var(--text); font-weight: 600; }
.tags-extras { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag-extra {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; background: var(--surface2);
  border: 1px solid rgba(212,175,55,.2); border-radius: 999px;
  font-size: 11px; color: var(--text2);
}
.tag-extra i { color: var(--gold); font-size: 10px; }
.desc-box { background: var(--surface2); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 14px; border: 1px solid rgba(212,175,55,.1); }
.desc-box h3 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--gold); margin-bottom: 6px; }
.desc-box p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.btn-wpp-dialog {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; background: #25d366; color: #fff;
  border-radius: var(--r-md); font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all var(--t);
  box-shadow: 0 4px 14px rgba(37,211,102,.3); margin-top: auto;
}
.btn-wpp-dialog:hover { background: #1ebe5a; transform: translateY(-1px); }

.specs-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
  padding: 0;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--surface2);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: var(--r-md, 8px);
  text-align: center;
}

.spec-item i {
  font-size: 18px;
  color: var(--gold);
}

.spec-item strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.spec-item small {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tags-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag-extra {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface2);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
}

.tag-extra i {
  color: var(--gold);
  font-size: 12px;
}

.extra-info {
  margin: 16px 0;
  border-top: 1px solid rgba(212,175,55,.15);
  padding-top: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.info-row span {
  color: var(--text2);
}

.info-row strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 680px) {
  .specs-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .spec-item {
    padding: 10px 6px;
  }
  
  .spec-item strong {
    font-size: 14px;
  }
}

/* ══════════════════════════════════════════════════
   SECCIÓN CONSTRUCTORA — La más importante
   ══════════════════════════════════════════════════ */

.section-constructora {
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-constructora .parallax-bg {
  background-image: url('https://images.unsplash.com/photo-1590725140246-20acdee442be?auto=format&fit=crop&w=1920&q=80');
}

.section-constructora .parallax-overlay {
  background: linear-gradient(
    135deg,
    rgba(10,10,10,.92) 0%,
    rgba(20,18,12,.88) 50%,
    rgba(10,10,10,.92) 100%
  );
}

.section-constructora .section-header {
  margin-bottom: 48px;
}

.section-constructora .section-header h2 {
  color: #fff;
}

.section-constructora .section-header h2 em {
  color: var(--gold);
}

.section-constructora .section-header p {
  color: rgba(255,255,255,.7);
}

/* Layout de 2 columnas */
.constructora-flex {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .constructora-flex {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Contenido izquierdo */
.constructora-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
}

.constructora-content h3 em {
  font-style: italic;
  color: var(--gold);
}

.constructora-content p {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 14px;
}

.constructora-content p strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* Mini-stats de construcción */
.constructora-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
  padding: 20px;
  background: rgba(212,175,55,.06);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: var(--r-lg);
}

.c-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.c-stat i {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 4px;
}

.c-stat strong {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: #fff;
  line-height: 1;
}

.c-stat span {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Servicios de construcción */
.constructora-services {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.c-service {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.15);
  border-radius: var(--r-md);
  transition: all var(--t);
}

.c-service:hover {
  background: rgba(212,175,55,.08);
  border-color: rgba(212,175,55,.35);
  transform: translateX(4px);
}

.c-service i {
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.c-service h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.c-service p {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
  margin: 0;
}

/* Botón principal hacia constructora.html */
.btn-constructora {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--t) var(--ease);
  box-shadow: 0 6px 24px rgba(212,175,55,.35);
  letter-spacing: .3px;
}

.btn-constructora:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(212,175,55,.5);
  filter: brightness(1.08);
}

.btn-constructora .fa-arrow-right {
  font-size: 13px;
  transition: transform var(--t);
}

.btn-constructora:hover .fa-arrow-right {
  transform: translateX(4px);
}

/* Columna derecha: galería */
.constructora-visual {
  position: relative;
}

.c-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-img-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  border: 1px solid rgba(212,175,55,.2);
}

.c-img-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}

.c-img-main:hover img {
  transform: scale(1.05);
}

.c-img-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(212,175,55,.95);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.c-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.c-img-small {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(212,175,55,.2);
}

.c-img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}

.c-img-small:hover img {
  transform: scale(1.08);
}

/* Sello de confianza */
.c-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: rgba(212,175,55,.06);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: var(--r-md);
}

.c-trust-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.c-trust-item i {
  font-size: 20px;
  color: var(--gold);
}

.c-trust-item span {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  line-height: 1.3;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .constructora-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .c-stat {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
  }
  
  .c-stat i {
    margin-bottom: 0;
    font-size: 20px;
  }
  
  .c-img-main img {
    height: 240px;
  }
  
  .c-trust {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .c-trust-item {
    flex-direction: row;
    gap: 10px;
  }
  
  .btn-constructora {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════
   BOTÓN DE CAMBIO DE IDIOMA
   ══════════════════════════════════════════════════ */
.btn-idioma {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff; /* Cambia a #333 si tu navbar es blanca */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

.btn-idioma:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Estado cuando está en inglés (toque dorado) */
.btn-idioma.activo {
  background: rgba(212, 175, 55, 0.15);
  border-color: #D4AF37;
  color: #D4AF37;
}

.lang-icon {
  font-size: 16px;
  line-height: 1;
}

/* En móviles, ocultamos el texto "EN/ES" y solo dejamos la bandera */
@media (max-width: 768px) {
  .lang-text {
    display: none;
  }
  .btn-idioma {
    padding: 8px 10px;
  }
}

/* ══════════════════════════════════════════════════
   CONSULTORÍA TÉCNICA INTERNACIONAL
   ══════════════════════════════════════════════════ */

.section-consultoria {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.section-consultoria .parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.section-consultoria .parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 15, 0.88);
  z-index: 1;
}

.section-consultoria .container {
  position: relative;
  z-index: 2;
}

/* Header de la sección */
.section-consultoria .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-consultoria .eyebrow {
  display: inline-block;
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green, #00ff88);
  background: var(--green-dim, rgba(0, 255, 136, 0.1));
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 4px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.section-consultoria h2 {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text, #fff);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-consultoria h2 em {
  color: var(--gold, #D4AF37);
  font-style: italic;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text, #fff);
  margin-bottom: 15px;
  font-weight: 500;
}

.section-description {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text2, #a0a0a0);
  font-size: 1rem;
  line-height: 1.7;
}

/* ═════════════════════════════════════════════════
   GRID DE SERVICIOS (Anti-elongación)
   ══════════════════════════════════════════════════ */

.consultoria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch; /* ✅ Todas las tarjetas de la misma fila tendrán la misma altura */
}

.consultoria-grid .s-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  height: 100%; /* ✅ Ocupa toda la altura disponible */
  min-height: 220px;
}

.consultoria-grid .s-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
}

.consultoria-grid .s-icon {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.consultoria-grid .s-icon i {
  font-size: 22px;
  color: var(--gold, #D4AF37);
}

.consultoria-grid .s-card h3 {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: 1.25rem;
  color: var(--text, #fff);
  margin-bottom: 12px;
  line-height: 1.3;
}

.consultoria-grid .s-card p {
  color: var(--text2, #a0a0a0);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1; /* ✅ Empuja el contenido hacia arriba si hay espacio */
}

/* ══════════════════════════════════════════════════
   SECTORES
   ══════════════════════════════════════════════════ */

.sectores-section {
  margin-top: 70px;
  text-align: center;
}

.sectores-title {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text, #fff);
  margin-bottom: 30px;
}

.sectores-title em {
  color: var(--gold, #D4AF37);
  font-style: italic;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.sector-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text, #fff);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50px;
}

.sector-badge:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold, #D4AF37);
  color: var(--gold, #D4AF37);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   ANTI-ELONGACIÓN GLOBAL (Para traducción)
   ══════════════════════════════════════════════════ */

body, p, h1, h2, h3, h4, h5, h6, span, a, button {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */

@media (max-width: 992px) {
  .consultoria-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .sectors-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .section-consultoria {
    padding: 60px 0;
  }
  
  .consultoria-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .consultoria-grid .s-card {
    min-height: auto;
  }
  
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .sector-badge {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .section-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }
  
  .consultoria-grid .s-card h3 {
    font-size: 1.1rem;
  }
}

/* ══════════════════════════════════════════════════
   BOTÓN WHATSAPP EN TARJETAS DE SERVICIO
   ═════════════════════════════════════════════════ */

.btn-whatsapp-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto; /* Empuja el botón al fondo de la tarjeta */
  padding: 12px 20px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-whatsapp-service:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-service i {
  font-size: 1.2rem;
}

/* Ajuste para que la tarjeta use flexbox correctamente */
.consultoria-grid .s-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.consultoria-grid .s-card p {
  flex-grow: 1;
  margin-bottom: 16px;
}

/* Responsive para el botón */
@media (max-width: 768px) {
  .btn-whatsapp-service {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .btn-whatsapp-service span {
    display: none; /* En móviles muy pequeños, solo muestra el ícono */
  }
  
  .btn-whatsapp-service i {
    font-size: 1.4rem;
  }
}