/* ============================================
   MI HOGAR – SOLUCIONES INMOBILIARIAS
   Premium Real Estate CSS
   ============================================ */

/* ---------- VARIABLES ---------- */
:root {
  --blue: #005B9A;
  --blue-dark: #003B63;
  --blue-mid: #0070BB;
  --blue-light: #E8F3FB;
  --gray-light: #E5E5E5;
  --gray-mid: #7A7A7A;
  --gray-dark: #3a3a4a;
  --silver: #C8CDD2;
  --white: #FFFFFF;
  --off-white: #F8FAFB;
  --text: #1a1e2e;
  --text-mid: #4a5068;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-xs: 0 1px 4px rgba(0, 59, 99, 0.06);
  --shadow-sm: 0 4px 16px rgba(0, 59, 99, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 59, 99, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 59, 99, 0.16);
  --shadow-xl: 0 32px 80px rgba(0, 59, 99, 0.22);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth; font-size: 16px;
  overflow-x: hidden; /* evita scroll horizontal en móvil */
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.loader-logo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,255,255,0.1); }
  50% { box-shadow: 0 0 0 10px rgba(255,255,255,0.05); }
}
.loader-bar {
  width: 180px; height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px; overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0; background: var(--silver);
  animation: loaderFill 1.2s var(--ease-out) forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: var(--shadow-sm);
}
.navbar.scrolled .nav-link { color: var(--text); }
.navbar.scrolled .nav-link:hover { color: var(--blue); }
.navbar.scrolled .nav-toggle span { background: var(--text); }

.nav-container {
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
  height: 100%;
  display: flex; align-items: center; gap: 32px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 56px; width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
}
.nav-logo:hover .logo-img { transform: scale(1.04); }

.nav-menu {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.btn-nav-cta {
  font-family: var(--font-heading);
  font-size: 0.875rem; font-weight: 600;
  color: var(--white);
  background: var(--blue);
  padding: 10px 22px;
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 14px rgba(0, 91, 154, 0.35);
  flex-shrink: 0;
}
.btn-nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 91, 154, 0.45);
}

.mobile-cta { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; padding: 4px; margin-left: auto; flex-shrink: 0;
}
.nav-toggle span {
  display: block; height: 2px; background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s, width 0.3s;
}
.nav-toggle span:nth-child(3) { width: 70%; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { width: 100%; transform: translateY(-7px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 600;
  color: var(--white); background: var(--blue);
  padding: 14px 28px; border-radius: 50px;
  box-shadow: 0 6px 24px rgba(0, 91, 154, 0.35);
  transition: all 0.25s var(--ease);
}
.btn-primary svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0, 91, 154, 0.45); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline-hero {
  display: inline-flex; align-items: center;
  font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 500;
  color: var(--white);
  padding: 13px 28px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease);
}
.btn-outline-hero:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 600;
  color: var(--white); background: #25D366;
  padding: 14px 24px; border-radius: 50px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.25s var(--ease); margin-top: 8px;
}
.btn-whatsapp svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45); }

/* ---------- SECTION SHARED ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 16px;
}
.section-tag.light { color: rgba(200, 220, 240, 0.9); background: rgba(255,255,255,0.1); }

.section-title {
  font-family: var(--font-heading); font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700;
  line-height: 1.2; color: var(--text);
  margin-bottom: 20px;
}
.section-title em { font-style: normal; color: var(--blue); }
.section-title span { color: var(--blue); }
.section-title.light { color: var(--white); }

.section-desc {
  font-size: 1.0625rem; color: var(--text-mid); line-height: 1.7;
  max-width: 560px; margin-inline: auto;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-center .section-desc { margin-bottom: 0; }
.section-header { margin-bottom: 56px; }
.section-header.text-center { display: flex; flex-direction: column; align-items: center; }

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.revealed.reveal-up, .revealed.reveal-left, .revealed.reveal-right {
  opacity: 1; transform: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* El clip contiene el video/parallax sin restringir el contenido */
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; clip-path: inset(0);
}
.hero-video { width: 100%; height: 110%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 30, 60, 0.72) 0%,
    rgba(0, 59, 99, 0.65) 50%,
    rgba(0, 91, 154, 0.45) 100%
  );
}

/* hero-inner: flujo natural — evita solapamiento al hacer zoom */
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 40px;
  width: 100%;
  padding: calc(var(--nav-h) + 60px) 24px 100px;
}

.hero-content {
  text-align: center;
  max-width: 780px; width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px; border-radius: 50px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 800;
  line-height: 1.08; color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: #7EC8F0; }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.6; margin-bottom: 40px;
}

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

.hero-stats {
  display: flex; align-items: center; gap: 32px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 16px 36px; border-radius: var(--radius-lg);
  flex-shrink: 0;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-stat strong { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--white); }
.hero-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; }
.hero-stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.2); }

.scroll-indicator {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; text-decoration: none;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.scroll-mouse {
  width: 22px; height: 36px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px; border-radius: 2px;
  background: rgba(255,255,255,0.7);
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel { 0%,100%{transform:translateY(0);opacity:1} 70%{transform:translateY(8px);opacity:0} }
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(4px)} }

/* ---------- TRUST SECTION ---------- */
.section-trust {
  padding: 100px 0;
  background: var(--white);
}

.trust-header {
  text-align: center; max-width: 700px; margin: 0 auto 64px;
}
.trust-header .section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.4;
}

.trust-brand-logo {
  display: flex; justify-content: center; align-items: center;
  margin: 20px auto 28px;
}
.trust-brand-logo img {
  height: 96px; width: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
}
.trust-brand-logo img:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--white);
  border: 1px solid rgba(0, 91, 154, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  position: relative; overflow: hidden;
}
.trust-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.trust-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0, 91, 154, 0.15); }
.trust-card:hover::before { transform: scaleX(1); }

.trust-icon-wrap {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
}
.trust-icon-wrap svg { width: 100%; height: 100%; }

.trust-card h3 {
  font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 600;
  margin-bottom: 10px; color: var(--text);
}
.trust-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; }

/* ---------- CONDOMINIO ALTAMIRA ---------- */
.section-condominio {
  padding: 100px 0;
  background: var(--off-white);
}

.condominio-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.condominio-text .section-title { font-size: clamp(2rem, 3.5vw, 3rem); }

.section-body {
  font-size: 1.0625rem; color: var(--text-mid); line-height: 1.75;
  margin-bottom: 32px;
}

.feature-list {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 36px;
}
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text);
}
.feature-list li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 260px 200px;
  gap: 12px;
}

.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md); cursor: pointer;
}
.gallery-item.gallery-main { grid-row: 1 / 3; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-hover {
  position: absolute; inset: 0;
  background: rgba(0, 59, 99, 0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.gallery-hover svg { width: 28px; height: 28px; color: var(--white); }
.gallery-item:hover .gallery-hover { opacity: 1; }

/* ---------- DEPARTAMENTOS ---------- */
.section-departamentos {
  padding: 100px 0;
  background: var(--white);
}

.dept-options {
  display: inline-flex; gap: 4px;
  background: var(--gray-light); border-radius: 50px; padding: 4px;
  margin-bottom: 48px;
}
.dept-option {
  font-family: var(--font-heading); font-size: 0.875rem; font-weight: 500;
  padding: 10px 24px; border-radius: 50px; cursor: pointer;
  color: var(--gray-mid); transition: all 0.25s var(--ease);
}
.dept-option.active { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }

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

.feature-card {
  padding: 32px 28px;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0, 91, 154, 0.15); }

.feature-icon {
  width: 52px; height: 52px; margin-bottom: 18px;
  background: var(--blue-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 28px; height: 28px; }

.feature-card h4 {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
  margin-bottom: 8px; color: var(--text);
}
.feature-card p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; }

.dept-cta { text-align: center; margin-top: 48px; }

/* ---------- EDIFICIOS ---------- */
.section-edificios {
  padding-top: 80px;
  background: var(--off-white);
}
.edificios-header { text-align: center; margin-bottom: 56px; }

.edificios-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  height: 580px;
}

.edificio-item {
  position: relative; overflow: hidden; cursor: pointer;
}
.edificio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.edificio-item:hover img { transform: scale(1.06); }

.edificio-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 48px 40px 32px;
  background: linear-gradient(to top, rgba(0,30,60,0.8) 0%, transparent 100%);
  opacity: 0; transform: translateY(8px);
  transition: all 0.35s var(--ease);
  display: flex; align-items: flex-end;
}
.edificio-overlay span {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600;
  color: var(--white);
}
.edificio-item:hover .edificio-overlay { opacity: 1; transform: translateY(0); }

/* ---------- PLANOS ---------- */
.section-planos {
  padding: 100px 0;
  background: var(--white);
}

.planos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.plano-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--gray-light);
}
.plano-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.plano-item:hover img { transform: scale(1.08); }

.plano-hover {
  position: absolute; inset: 0;
  background: rgba(0, 59, 99, 0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.plano-hover svg { width: 32px; height: 32px; color: var(--white); }
.plano-item:hover .plano-hover { opacity: 1; }

/* ---------- PRECIOS ---------- */
.section-precios {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  position: relative; overflow: hidden;
}
.section-precios::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.section-precios .section-tag { color: rgba(200,225,255,0.85); background: rgba(255,255,255,0.1); }
.section-precios .section-title { color: var(--white); }
.section-precios .section-desc { color: rgba(255,255,255,0.7); }

.precios-wrapper { max-width: 820px; margin-inline: auto; }

.precios-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.precios-img-wrap { position: relative; }
.precios-img-wrap img { width: 100%; display: block; }

.precios-footer {
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--off-white);
  border-top: 1px solid var(--gray-light);
}
.precios-footer p { font-size: 0.875rem; color: var(--text-mid); max-width: 340px; }

/* ---------- UBICACIÓN ---------- */
.section-ubicacion {
  padding: 100px 0;
  background: var(--off-white);
}

.map-wrapper {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 48px;
}
.map-wrapper iframe {
  display: block; width: 100%; height: 460px; border: none;
}
.map-badge {
  position: absolute; top: 20px; left: 20px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600;
  color: var(--text); background: var(--white);
  padding: 8px 16px; border-radius: 50px;
  box-shadow: var(--shadow-md);
}

/* ---------- CONTACTO ---------- */
.section-contacto {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.contacto-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #002740 100%);
  z-index: 0;
}
.contacto-bg::before {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,91,154,0.3) 0%, transparent 70%);
}
.contacto-bg::after {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 200, 240, 0.08) 0%, transparent 70%);
}

.section-contacto .container { position: relative; z-index: 1; }

.contacto-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}

.contacto-desc {
  font-size: 1.0625rem; color: rgba(255,255,255,0.65); line-height: 1.7;
  margin-bottom: 40px;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }

.contact-item {
  display: flex; align-items: center; gap: 16px;
}
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; color: rgba(200,225,255,0.85); }
.contact-item strong { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--white); }
.contact-item strong a { color: inherit; transition: color 0.2s; }
.contact-item strong a:hover { color: #7EC8F0; }
.contact-item span { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

/* Contact form */
.contacto-form-wrap {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.form-header { margin-bottom: 32px; }
.form-header h3 {
  font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700;
  color: var(--white); margin-bottom: 6px;
}
.form-header p { font-size: 0.875rem; color: rgba(255,255,255,0.5); }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group label {
  display: block; font-size: 0.8125rem; font-weight: 500;
  color: rgba(255,255,255,0.7); margin-bottom: 8px; letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white); font-size: 0.9375rem;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  outline: none;
  -webkit-appearance: none;
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--blue-dark); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(126, 200, 240, 0.6);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(126, 200, 240, 0.12);
}

.btn-submit {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
  color: var(--white); background: var(--blue);
  padding: 16px 28px; border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0, 91, 154, 0.45);
  transition: all 0.25s var(--ease); margin-top: 8px;
}
.btn-submit svg { width: 18px; height: 18px; transition: transform 0.25s; }
.btn-submit:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0, 91, 154, 0.55); }
.btn-submit:hover svg { transform: translateX(4px); }
.btn-submit:active { transform: translateY(0); }

.form-success {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; text-align: center;
  padding: 48px 32px; margin-top: 0;
}
.form-success.show { display: flex; }
.form-success-icon {
  width: 72px; height: 72px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: successPop 0.5s var(--ease-spring) both;
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.form-success svg { width: 36px; height: 36px; color: #4ade80; }
.form-success strong {
  display: block; font-family: var(--font-heading);
  font-weight: 700; color: var(--white); font-size: 1.25rem;
  margin-bottom: 4px;
}
.form-success span { font-size: 0.9375rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--text);
  padding: 56px 0 24px;
}

.footer-content {
  display: grid; grid-template-columns: 1fr 2fr 1fr;
  gap: 48px; align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { height: 56px; width: auto; max-width: 180px; object-fit: contain; align-self: flex-start; border-radius: var(--radius-sm); box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.footer-brand p { font-size: 0.8125rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center;
}
.footer-links a {
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-contact {
  display: flex; flex-direction: column; gap: 8px; text-align: right;
}
.footer-contact a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-contact a:hover { color: var(--white); }

.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ---------- WHATSAPP FAB ---------- */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 9100;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  animation: fabIn 0.6s 1.5s var(--ease-spring) both;
}
.whatsapp-fab svg { width: 28px; height: 28px; color: var(--white); }
.whatsapp-fab:hover { transform: scale(1.12); box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55); }

.fab-tooltip {
  position: absolute; right: calc(100% + 12px);
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600;
  color: var(--white); background: rgba(0,0,0,0.75);
  padding: 6px 12px; border-radius: var(--radius-xs);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.fab-tooltip::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: rgba(0,0,0,0.75); border-right: 0;
}
.whatsapp-fab:hover .fab-tooltip { opacity: 1; transform: translateX(0); }

@keyframes fabIn { from { opacity: 0; transform: scale(0.5) rotate(-30deg); } to { opacity: 1; transform: none; } }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.open { opacity: 1; pointer-events: all; visibility: visible; }

.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 10, 25, 0.93);
  backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative; z-index: 1;
  max-width: 92vw; max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}

.lightbox-img-wrap {
  display: flex; align-items: center; justify-content: center;
}

.lightbox-img {
  max-width: min(90vw, 1100px); max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform 0.4s var(--ease-spring), opacity 0.3s;
  opacity: 0;
}
.lightbox.open .lightbox-img { transform: scale(1); opacity: 1; }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.2); transform: scale(1.1);
}
.lightbox-close { top: -60px; right: 0; }
.lightbox-prev { left: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }

.lightbox-counter {
  position: absolute; bottom: -44px; left: 50%; transform: translateX(-50%);
  font-size: 0.8125rem; color: rgba(255,255,255,0.5);
  font-family: var(--font-heading);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .condominio-layout { gap: 48px; }
  .contacto-layout { gap: 48px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }

  /* Nav mobile */
  .nav-menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: 300px;
    flex-direction: column; justify-content: center; align-items: flex-start;
    background: var(--blue-dark);
    padding: 80px 36px 36px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 999;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { font-size: 1rem; padding: 12px 0; color: rgba(255,255,255,0.85); width: 100%; }
  .mobile-cta { display: inline-flex; margin-top: 16px; }
  .desktop-cta { display: none; }
  .nav-toggle { display: flex; }
  .navbar.scrolled .nav-toggle span { background: var(--text); }

  .condominio-layout { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { grid-template-rows: 220px 170px; }

  .edificios-grid { grid-template-columns: 1fr; height: auto; }
  .edificio-item { height: 320px; }

  .contacto-layout { grid-template-columns: 1fr; gap: 48px; }
  .contacto-form-wrap { padding: 36px 28px; }

  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-contact { text-align: left; }
  .footer-links { justify-content: flex-start; }

  .lightbox-prev { left: -56px; }
  .lightbox-next { right: -56px; }
  .precios-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .planos-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; padding: 12px 24px; }
  .hero-stat strong { font-size: 1.05rem; }
  .form-row { grid-template-columns: 1fr; }
  .lightbox-prev, .lightbox-next { display: none; }
  .lightbox-close { top: -52px; }

  /* Galería en columna única para evitar overflow horizontal */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 200px 200px;
  }
  .gallery-item.gallery-main { grid-row: auto; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .planos-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-stats { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline-hero { width: 100%; max-width: 320px; justify-content: center; }
  .contacto-form-wrap { padding: 28px 20px; }
  .section-trust, .section-condominio, .section-departamentos, .section-planos, .section-precios, .section-ubicacion, .section-contacto { padding: 72px 0; }

  /* WhatsApp FAB más pequeño y bien posicionado en móvil */
  .whatsapp-fab {
    bottom: 16px; right: 16px;
    width: 52px; height: 52px;
  }
  .whatsapp-fab svg { width: 24px; height: 24px; }
  .fab-tooltip { display: none; }
}

/* Smart TV (large screens) */
@media (min-width: 2000px) {
  :root { font-size: 18px; }
  .container { max-width: 1600px; }
  .hero-title { font-size: 7rem; }
}
