/* ==========================================================================
   TERRENOS DZITYÁ — PREMIUM REAL ESTATE LANDING PAGE CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-dark: #080c14;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(212, 175, 55, 0.18);
  --border-glass-hover: rgba(212, 175, 55, 0.45);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-gold: #d4af37;
  --accent-gold-light: #fef08a;
  --accent-amber: #f59e0b;
  --accent-gold-glow: rgba(212, 175, 55, 0.25);

  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.15);
  --accent-blue: #38bdf8;
  --accent-blue-bg: rgba(56, 189, 248, 0.15);
  --accent-whatsapp: #25d366;

  /* Typography */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.15);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & General Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Ambient Background Glow Effects */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
  bottom: 10%;
  right: -150px;
}

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.highlight-gold {
  color: var(--accent-gold);
  background: linear-gradient(135deg, #fef08a 0%, #d4af37 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 30px;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
}

.section-header.center {
  text-align: center;
  margin-bottom: 60px;
}

.section-header.center .section-description {
  margin: 0 auto;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
  color: #080c14;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #fef08a 0%, #d4af37 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-whatsapp);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-whatsapp-header:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: var(--accent-whatsapp);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3. Navbar Styles
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.5rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-main);
  line-height: 1;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  color: var(--accent-gold);
  font-weight: 700;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(8, 12, 20, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  font-size: 1.1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.mobile-link i {
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 70px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 20, 0.65) 0%,
    rgba(8, 12, 20, 0.45) 50%,
    rgba(8, 12, 20, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 30px;
  color: var(--accent-gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #cbd5e1;
  max-width: 760px;
  margin-bottom: 40px;
}

/* Terrain Switcher Tabs in Hero */
.terrain-tabs-bar {
  display: flex;
  gap: 16px;
  background: rgba(15, 23, 42, 0.75);
  padding: 8px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  margin-bottom: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  max-width: 100%;
  overflow-x: auto;
}

.terrain-tab {
  flex: 1;
  min-width: 220px;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-smooth);
  text-align: left;
}

.terrain-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.terrain-tab.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
  border-color: var(--accent-gold);
  color: var(--text-main);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.tab-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border-radius: 6px;
  margin-bottom: 6px;
}

.tab-badge.alt {
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
}

.tab-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.tab-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.terrain-tab.active .tab-desc {
  color: var(--accent-gold-light);
}

/* Quick Metrics Ribbon */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  padding: 20px 32px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metric-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.3rem;
}

.metric-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.metric-val {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   5. Terrenos Catalog Grid
   -------------------------------------------------------------------------- */
.terrenos-section {
  padding-top: 60px;
  position: relative;
  z-index: 2;
}

.terrenos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.property-card.active-card {
  border-color: var(--accent-gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
}

.card-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover .card-image-wrapper img {
  transform: scale(1.08);
}

.card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.status-pill {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.status-ready {
  background: rgba(16, 185, 129, 0.9);
  color: #042f2e;
}

.status-macro {
  background: rgba(56, 189, 248, 0.9);
  color: #0c4a6e;
}

.status-commercial {
  background: rgba(245, 158, 11, 0.9);
  color: #451a03;
}

.status-legal {
  background: rgba(15, 23, 42, 0.85);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-overlay-cta {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.property-card:hover .card-overlay-cta {
  opacity: 1;
}

.btn-card-select {
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(10px);
  transition: var(--transition-fast);
}

.property-card:hover .btn-card-select {
  transform: translateY(0);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-price-tag {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-gold);
  white-space: nowrap;
}

.card-price-tag small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.card-specs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(8, 12, 20, 0.4);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.spec-row span {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-row span i {
  color: var(--accent-gold);
}

.spec-row strong {
  color: var(--text-main);
}

.card-footer {
  margin-top: auto;
  display: flex;
  gap: 12px;
}

.btn-card-outline {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-card-outline:hover {
  border-color: var(--accent-gold);
  color: var(--text-main);
}

.btn-card-primary {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--accent-gold);
  color: #080c14;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-card-primary:hover {
  background: var(--accent-gold-light);
}

/* --------------------------------------------------------------------------
   6. Features Section (Dynamic per Terrain)
   -------------------------------------------------------------------------- */
.caracteristicas-section {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0) 0%, rgba(15, 23, 42, 0.5) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.active-terrain-header {
  margin-bottom: 40px;
}

.active-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 28px;
  border-radius: 18px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card.highlight-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(212, 175, 55, 0.4);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon-wrapper.gold {
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-gold-light);
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-list li i {
  color: var(--accent-green);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-list li strong {
  color: var(--text-main);
}

/* Legal Certainty Banner */
.legal-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-icon {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 2rem;
  flex-shrink: 0;
}

.legal-text {
  flex: 1;
  min-width: 280px;
}

.legal-text h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.legal-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   7. Investment Calculator
   -------------------------------------------------------------------------- */
.glass-calculator-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.calculator-header {
  text-align: center;
  margin-bottom: 40px;
}

.calculator-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-value {
  color: var(--accent-gold);
  font-weight: 700;
}

.form-control {
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

input[type="range"] {
  accent-color: var(--accent-gold);
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.term-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.term-btn {
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.term-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-main);
}

.term-btn.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.calc-results {
  background: linear-gradient(135deg, rgba(8, 12, 20, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-glass);
  padding: 32px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-card.highlight {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.res-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.res-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.res-amount.gold {
  color: var(--accent-gold);
  font-size: 1.7rem;
}

/* Financing Notice Card */
.financing-notice-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(8, 12, 20, 0.8) 100%);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.05);
}

.financing-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.4rem;
}

.financing-text-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.financing-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.financing-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.financing-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.calc-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 12px;
}

.full-width {
  width: 100%;
}

/* --------------------------------------------------------------------------
   8. Location Section
   -------------------------------------------------------------------------- */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.distance-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.dist-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-fast);
}

.dist-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.dist-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.dist-details {
  display: flex;
  flex-direction: column;
}

.dist-details strong {
  font-size: 1rem;
  color: var(--accent-gold-light);
}

.dist-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ubicacion-map-box {
  height: 440px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.map-card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(8, 12, 20, 0.9);
  border: 1px solid var(--accent-gold);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.map-badge i {
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   9. Contact Form & Section
   -------------------------------------------------------------------------- */
.contacto-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(8, 12, 20, 1) 100%);
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contacto-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contacto-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.c-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.c-icon.whatsapp-bg {
  background: rgba(37, 211, 102, 0.15);
  color: var(--accent-whatsapp);
}

.c-text {
  display: flex;
  flex-direction: column;
}

.c-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.c-val {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
}

.highlight-wa {
  color: var(--accent-whatsapp);
}

.guarantee-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.guarantee-box i {
  color: var(--accent-gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Contact Form Box */
.contacto-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-title i {
  color: var(--accent-gold);
}

.form-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.input-with-icon .form-control {
  width: 100%;
  padding-left: 46px;
}

textarea.form-control {
  width: 100%;
  resize: vertical;
  min-height: 90px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
  color: #080c14;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #fef08a 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #04060a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 70px 0 30px;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-tagline {
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 320px;
}

.footer-links-col h4 {
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links-col a:hover {
  color: var(--accent-gold);
}

.footer-address {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.legal-links a {
  color: var(--text-muted);
}

.legal-links a:hover {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   11. Floating Sticky WhatsApp & Modal
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.6);
}

.floating-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(8, 12, 20, 0.95);
  border: 1px solid var(--accent-gold);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.floating-whatsapp:hover .floating-tooltip {
  opacity: 1;
}

/* Modal Confirmation */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  padding: 40px;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-icon {
  font-size: 3.5rem;
  color: var(--accent-green);
  margin-bottom: 16px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-whatsapp-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-whatsapp);
  color: white;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .calculator-body {
    grid-template-columns: 1fr;
  }
  .ubicacion-grid {
    grid-template-columns: 1fr;
  }
  .contacto-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-whatsapp-header, .nav-actions .btn-primary {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-metrics {
    flex-direction: column;
    align-items: flex-start;
  }
  .metric-divider {
    width: 100%;
    height: 1px;
  }
  .distance-cards {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .glass-calculator-box, .contacto-form-box {
    padding: 24px;
  }
  .term-buttons {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

/* Calculator Dimension Preset Pills */
.preset-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.preset-pill {
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-pill:hover {
  border-color: var(--accent-gold);
  color: var(--text-main);
  background: rgba(212, 175, 55, 0.1);
}

.preset-pill.active {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* --------------------------------------------------------------------------
   Masterplan Modal & Interactive Vector Lot Map
   -------------------------------------------------------------------------- */
.masterplan-modal-box {
  max-width: 1060px;
  width: 95%;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}

.masterplan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.mp-legend {
  display: flex;
  gap: 16px;
  background: rgba(8, 12, 20, 0.6);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.available {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.legend-dot.selected {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.legend-dot.sold {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.masterplan-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.masterplan-canvas-container {
  background: #0d131f;
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.masterplan-svg {
  width: 100%;
  height: 100%;
  max-height: 520px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* Lot Vector Styling */
.mp-lot-shape {
  cursor: pointer;
  transition: all 0.25s ease;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.5;
}

.mp-lot-available {
  fill: rgba(16, 185, 129, 0.35);
  stroke: #10b981;
}

.mp-lot-available:hover, .mp-lot-available.active-inspected {
  fill: rgba(16, 185, 129, 0.75);
  stroke: #5fe3b3;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.8));
}

.mp-lot-shape.selected-locked {
  stroke: #3b82f6 !important;
  stroke-width: 3.5 !important;
  fill: rgba(37, 99, 235, 0.65) !important;
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.95)) !important;
}

.mp-lot-sold {
  fill: rgba(239, 68, 68, 0.45);
  stroke: #ef4444;
}

.mp-lot-sold:hover, .mp-lot-sold.active-inspected {
  fill: rgba(239, 68, 68, 0.8);
  stroke: #fca5a5;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
}

.mp-lot-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  fill: #ffffff;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
}

.mp-street-bg {
  fill: #1e293b;
  stroke: #334155;
  stroke-width: 1;
}

.mp-street-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  fill: var(--accent-gold-light);
  text-anchor: middle;
}

/* Inspector Card Sidebar */
.lot-inspector-card {
  background: rgba(8, 12, 20, 0.9);
  border: 1px solid var(--border-glass);
  padding: 24px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.inspector-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.inspector-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.inspector-badge.status-disponible {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid #10b981;
}

.inspector-badge.status-vendido {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.inspector-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.inspector-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.insp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.insp-row span {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.insp-row span i {
  color: var(--accent-gold);
}

.insp-row strong {
  color: var(--text-main);
}

.insp-row strong.gold {
  color: var(--accent-gold);
  font-size: 1rem;
}

@media (max-width: 860px) {
  .masterplan-body {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Legal Certainty Wide Banner
   -------------------------------------------------------------------------- */
.legal-certainty-banner {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(13, 22, 38, 0.95) 50%, rgba(212, 175, 55, 0.12) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(16, 185, 129, 0.05);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.legal-certainty-banner:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 16px 45px rgba(212, 175, 55, 0.2), inset 0 0 25px rgba(212, 175, 55, 0.1);
}

.legal-icon-box {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 2.2rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.legal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid #10b981;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.legal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin: 0;
}

.legal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.legal-desc strong {
  color: #ffffff;
}

.legal-action {
  min-width: fit-content;
}

.btn-legal-verify {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-gold));
  color: #080c14;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-legal-verify:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  color: #000000;
}

@media (max-width: 860px) {
  .legal-certainty-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
  }

  .legal-action {
    width: 100%;
  }

  .btn-legal-verify {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   13. Comprehensive Mobile Responsive Perfection (@media max-width: 768px & 480px)
   -------------------------------------------------------------------------- */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

@media (max-width: 768px) {
  /* Prevent horizontal scrolling & ensure centered alignment */
  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  /* Centered Hero Section */
  .hero-section {
    padding-top: 110px;
    padding-bottom: 50px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-badge {
    margin: 0 auto 16px;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.25;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
    margin: 0 auto 24px;
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 12px;
  }

  .hero-cta-group .btn-hero-primary,
  .hero-cta-group .btn-hero-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-metrics {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .metric-item {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  /* Centered Section Headers */
  .section-header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-tag {
    margin: 0 auto 10px;
  }

  .section-title {
    text-align: center;
    font-size: 1.8rem;
  }

  .section-description {
    text-align: center;
    margin: 0 auto;
  }

  /* Terrenos Cards & Tabs */
  .terrenos-tabs {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .terrain-tab {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 16px;
  }

  .terrenos-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
  }

  .property-card {
    width: 100%;
    max-width: 100%;
  }

  .card-image-wrapper {
    cursor: pointer;
  }

  .card-overlay-cta {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: rgba(8, 12, 20, 0.45) !important;
  }

  .card-overlay-cta .btn-card-select {
    font-size: 0.88rem;
    padding: 10px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }

  /* Features Grid & Certeza Legal */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }

  .feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 18px;
  }

  .feature-icon-wrapper {
    margin: 0 auto 14px;
  }

  .feature-list {
    align-items: center;
    text-align: left;
    width: 100%;
  }

  .legal-certainty-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 24px 18px;
    gap: 16px;
  }

  .legal-icon-box {
    margin: 0 auto;
  }

  .legal-title-row {
    justify-content: center;
    text-align: center;
  }

  .legal-title {
    text-align: center;
    font-size: 1.3rem;
  }

  .legal-desc {
    text-align: center;
  }

  /* Cotizador Calculator Mobile Precision */
  .glass-calculator-box {
    padding: 24px 16px;
    width: 100%;
    border-radius: 20px;
  }

  .calculator-header {
    margin-bottom: 24px;
    text-align: center;
  }

  .calculator-body {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 24px;
  }

  .calc-inputs {
    width: 100%;
    gap: 20px;
  }

  .input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .input-group label {
    font-size: 0.88rem;
    justify-content: flex-start;
  }

  .label-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #calcTerrainSelect {
    width: 100%;
    max-width: 100%;
    font-size: 0.88rem;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .preset-pills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
  }

  .preset-pill {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 6px;
    font-size: 0.85rem;
    border-radius: 25px;
    box-sizing: border-box;
  }

  input[type="range"] {
    width: 100%;
    margin-top: 6px;
  }

  /* Mobile Select Dropdown Precision */
  select.form-control,
  .input-with-icon select {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.85rem !important;
    padding-right: 28px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  select.form-control option {
    font-size: 0.85rem !important;
    background-color: #0d131f !important;
    color: #ffffff !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .input-with-icon {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative;
  }

  .calc-results {
    width: 100%;
    padding: 24px 16px;
    border-radius: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    box-sizing: border-box;
  }

  .result-card {
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    box-sizing: border-box;
  }

  .financing-notice-card {
    width: 100%;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 16px 14px;
    box-sizing: border-box;
  }

  .financing-text-box {
    text-align: center;
    align-items: center;
  }

  .res-title {
    text-align: center;
    width: 100%;
    font-size: 0.78rem;
  }

  .res-amount {
    text-align: center;
    width: 100%;
    font-size: 1.35rem;
    word-break: break-word;
  }

  .res-amount.gold {
    text-align: center;
    width: 100%;
    font-size: 1.55rem;
  }

  .calc-cta {
    width: 100%;
    margin-top: 4px;
  }

  .calc-cta .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 0.95rem;
  }

  /* Ubicación & Contacto */
  .ubicacion-container, .contacto-wrapper {
    width: 100%;
  }

  .contacto-info-box {
    text-align: center;
    align-items: center;
  }

  .contacto-info-box .contact-item {
    justify-content: center;
    text-align: center;
  }

  .map-box {
    width: 100%;
  }

  .map-box iframe {
    width: 100%;
    height: 320px;
  }

  /* Masterplan Modal Mobile View */
  .masterplan-modal-box {
    width: 95%;
    padding: 20px 14px;
    max-height: 94vh;
  }

  .masterplan-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
  }

  .mp-legend {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .masterplan-body {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 16px;
  }

  .masterplan-canvas-container {
    padding: 12px 6px;
    min-height: 320px;
    width: 100%;
    overflow-x: auto;
  }

  .masterplan-svg {
    width: 100%;
    min-width: 320px;
    height: auto;
  }

  .lot-inspector-card {
    padding: 18px 14px;
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .inspector-header {
    align-items: center;
    text-align: center;
  }

  .inspector-specs {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .preset-pill {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   Privacy Policy Modal & Footer Link
   -------------------------------------------------------------------------- */
.footer-privacy-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-privacy-link:hover {
  color: var(--accent-gold);
}

.privacy-modal-box {
  max-width: 720px;
  width: 92%;
  padding: 32px;
  max-height: 85vh;
  overflow-y: auto;
  text-align: left;
}

.privacy-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.privacy-body {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.privacy-body h4 {
  color: var(--accent-gold-light);
  font-size: 0.95rem;
  margin-top: 10px;
  margin-bottom: 4px;
}

.privacy-body ul {
  padding-left: 20px;
  margin: 0;
}

.privacy-body li {
  margin-bottom: 4px;
}


