/* =====================================================
   MICASACUENCAEC - ESTILOS PROFESIONALES
   ===================================================== */

/* =====================================================
   VARIABLES Y RESET
   ===================================================== */
:root {
  --primary: #111111;
  --primary-light: #2a4a7f;
  --primary-dark: #000000;
  --secondary: #c9a84c;
  --secondary-light: #dfc06e;
  --secondary-dark: #a88a35;
  --accent: #25D366;
  --accent-dark: #128C7E;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --gray-900: #1a202c;
  --gray-800: #2d3748;
  --gray-700: #4a5568;
  --gray-600: #718096;
  --gray-500: #a0aec0;
  --gray-400: #cbd5e0;
  --gray-300: #e2e8f0;
  --gray-200: #edf2f7;
  --gray-100: #f7fafc;
  --white: #ffffff;
  --bg-light: #f8f9fd;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.7;
  background-color: var(--white);
  overflow-x: hidden;
}

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

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

/* =====================================================
   TIPOGRAFÍA
   ===================================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--primary-dark);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 54, 93, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 1001;
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text {
  font-family: var(--font-heading);
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .logo-text {
  color: var(--primary);
}

.logo-accent {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link {
  color: var(--gray-700);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary);
  background: var(--gray-100);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--primary);
}

/* =====================================================
   HERO / PORTADA
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* ==================================================
     IMAGEN DE PORTADA:
     Reemplaza esta URL con tu propia imagen.
     Ejemplo: background-image: url('../images/portada.webp');
     ================================================== */
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(201, 168, 76, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 211, 102, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--secondary-light);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary);
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--secondary);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* =====================================================
   PROPIEDADES
   ===================================================== */
.propiedades-section {
  background: var(--bg-light);
}

.filtros {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filtro-btn {
  padding: 10px 28px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filtro-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filtro-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.propiedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

/* =====================================================
   TARJETA DE PROPIEDAD
   ===================================================== */
.propiedad-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.propiedad-card:nth-child(1) { animation-delay: 0s; }
.propiedad-card:nth-child(2) { animation-delay: 0.1s; }
.propiedad-card:nth-child(3) { animation-delay: 0.2s; }
.propiedad-card:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.propiedad-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.propiedad-card.hidden {
  display: none;
}

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

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

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

/* Placeholder cuando no hay imagen */
.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  gap: 12px;
}

.card-image-placeholder i {
  font-size: 3.5rem;
}

.card-image-placeholder span {
  font-size: 0.85rem;
  font-weight: 500;
}

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

.card-badge {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-tipo {
  background: var(--primary);
  color: var(--white);
}

.badge-credito {
  background: var(--secondary);
  color: var(--primary-dark);
}

.badge-exclusiva {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: var(--white);
}

.badge-oportunidad {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
}

.card-price-tag {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.card-body {
  padding: 24px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.card-location i {
  color: var(--secondary);
}

.card-features {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 16px;
}

.card-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.card-feature i {
  color: var(--primary);
  font-size: 1rem;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.card-btn-primary {
  background: var(--primary);
  color: var(--white);
}

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

.card-btn-whatsapp {
  background: var(--accent);
  color: var(--white);
}

.card-btn-whatsapp:hover {
  background: var(--accent-dark);
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 50;
  margin: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray-700);
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.modal-body {
  padding: 0;
}

.modal-gallery {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  gap: 16px;
}

.modal-gallery-placeholder i {
  font-size: 5rem;
}

.modal-gallery-placeholder span {
  font-size: 1rem;
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
}

.modal-price {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
}

.modal-info {
  padding: 40px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 1rem;
  margin-bottom: 24px;
}

.modal-location i {
  color: var(--secondary);
}

.modal-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.modal-highlight {
  text-align: center;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.modal-highlight i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal-highlight .highlight-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
}

.modal-highlight .highlight-label {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.modal-description {
  margin-bottom: 32px;
}

.modal-description h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal-description p {
  color: var(--gray-700);
  line-height: 1.8;
}

.modal-features {
  margin-bottom: 32px;
}

.modal-features h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--gray-200);
}

.feature-item i {
  color: var(--secondary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.feature-item span {
  font-size: 0.95rem;
  color: var(--gray-800);
}

.modal-area-info {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.area-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--secondary);
}

.area-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

.area-item .area-label {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.area-item .area-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.modal-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 200px;
}

/* =====================================================
   VENTAJAS
   ===================================================== */
.porque-section {
  background: var(--white);
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.ventaja-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
}

.ventaja-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
  background: var(--white);
}

.ventaja-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  transition: var(--transition);
}

.ventaja-card:hover .ventaja-icon {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--primary-dark);
  transform: scale(1.1) rotate(-5deg);
}

.ventaja-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.ventaja-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* =====================================================
   NOSOTROS
   ===================================================== */
.nosotros-section {
  background: var(--bg-light);
}

.nosotros-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nosotros-content .section-badge {
  margin-bottom: 12px;
}

.nosotros-content .section-title {
  text-align: left;
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.nosotros-content p {
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.8;
}

.nosotros-features {
  margin: 28px 0;
  display: grid;
  gap: 14px;
}

.nosotros-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--gray-800);
}

.nosotros-feature i {
  color: var(--accent);
  font-size: 1.2rem;
}

.nosotros-image {
  position: relative;
}

.nosotros-placeholder {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.nosotros-placeholder i {
  font-size: 5rem;
}

.nosotros-placeholder span {
  font-size: 1.2rem;
  font-weight: 600;
}

.nosotros-placeholder small {
  font-size: 0.85rem;
  max-width: 250px;
  text-align: center;
}

/* =====================================================
   CTA
   ===================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* =====================================================
   CONTACTO
   ===================================================== */
.contacto-section {
  background: var(--white);
}

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

.contacto-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 36px;
  display: grid;
  gap: 28px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contacto-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contacto-item h4 {
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.contacto-item a,
.contacto-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.contacto-item a:hover {
  color: var(--primary);
}

.contacto-form {
  display: grid;
  gap: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-800);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin-top: 16px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-brand .nav-logo {
  display: inline-flex;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links ul {
  display: grid;
  gap: 12px;
}

.footer-links a,
.footer-links span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.9rem;
}

.footer-bottom-social {
  display: flex;
  gap: 20px;
}

.footer-bottom-social a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-bottom-social a:hover {
  color: var(--secondary);
}

/* =====================================================
   BOTÓN FLOTANTE WHATSAPP
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-100%) translateX(-15px);
}

.whatsapp-tooltip {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateX(-100%) translateX(-15px) translateY(-50%);
  background: var(--gray-900);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  top: 50%;
  transform: translateX(-100%) translateX(-5px) translateY(-50%);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2.2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .nosotros-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nosotros-placeholder {
    height: 350px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  /* Navbar Mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 4px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    z-index: 1000;
    align-items: stretch;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: var(--gray-800);
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--gray-100);
    color: var(--primary);
  }

  .nav-btn {
    margin-top: 16px;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero {
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-divider {
    height: 40px;
  }

  /* Propiedades */
  .propiedades-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

  /* Modal */
  .modal {
    border-radius: var(--radius-md);
  }

  .modal-gallery {
    height: 280px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .modal-info {
    padding: 24px;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-price {
    font-size: 1.4rem;
    padding: 10px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Contacto */
  .contacto-wrapper {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-content h2 {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .filtros {
    gap: 8px;
  }

  .filtro-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .card-features {
    gap: 12px;
    flex-wrap: wrap;
  }

  .card-actions {
    flex-direction: column;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    min-width: unset;
  }

  .modal-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }
}

/* =====================================================
   SCROLLBAR PERSONALIZADO
   ===================================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-500);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}

/* =====================================================
   SELECCIÓN DE TEXTO
   ===================================================== */
::selection {
  background: var(--secondary);
  color: var(--primary-dark);
}

/* =====================================================
   ANIMACIONES DE CARGA
   ===================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.nosotros-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* =====================================================
   GALERIA DEL MODAL - Navegacion y Miniaturas
   ===================================================== */
.modal-gallery {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--primary-dark);
}

.modal-gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.gallery-nav:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.modal-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  background: var(--gray-100);
  scrollbar-width: thin;
}

.modal-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 2px;
}

.thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.thumbnail:hover {
  opacity: 0.9;
  border-color: var(--gray-400);
}

.thumbnail.active {
  border-color: var(--secondary);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
}

@media (max-width: 768px) {
  .modal-gallery {
    height: 280px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .gallery-nav {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }

  .thumbnail {
    width: 60px;
    height: 45px;
  }
}



/* =====================================================
   LIGHTBOX (PANTALLA COMPLETA)
   ===================================================== */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s;
}
.lightbox-close:hover {
  color: var(--secondary);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }
@media (max-width: 768px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 10px; right: 20px; font-size: 30px; }
}

/* =====================================================
   FIXES PARA MOVILES (Pantalla completa y desbordamiento)
   ===================================================== */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 768px) {
  .hero {
    align-items: flex-start;
  }
  .hero-content {
    padding: 140px 15px 120px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
  .stat-divider {
    width: 50px;
    height: 1px;
    margin: 0 auto;
  }
  .hero-scroll {
    bottom: 15px;
  }
  .container {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .section-title {
    font-size: 2rem;
    line-height: 1.3;
    padding: 0 10px;
  }
  .section-subtitle {
    padding: 0 10px;
  }
  .filtros-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .filtro-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  p {
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-content {
    padding: 120px 15px 140px;
  }
}


/* =====================================================
   MODAL LAYOUT & AGENT WIDGET
   ===================================================== */
.modal-layout {
  display: flex;
  flex-direction: row;
  background: var(--white);
  min-height: 100%;
}
.modal-main {
  flex: 1;
  min-width: 0;
}
.modal-sidebar {
  width: 320px;
  flex-shrink: 0;
  padding: 30px;
  background: var(--gray-100);
  border-left: 1px solid var(--gray-200);
}
.agent-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  position: sticky;
  top: 30px;
  box-shadow: var(--shadow-sm);
}
.agent-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gray-200);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 3rem;
  overflow: hidden;
  border: 3px solid var(--secondary);
}
.agent-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* Oculto hasta que pongas foto */
}
.agent-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 5px;
}
.agent-role {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 15px;
}
.agent-desc {
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-bottom: 24px;
  text-align: left;
  line-height: 1.6;
}
.agent-desc p {
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--gray-200);
  padding-bottom: 4px;
}
.agent-desc strong {
  color: var(--primary);
}
.agent-widget .btn {
  width: 100%;
  margin-bottom: 10px;
  justify-content: center;
}
@media (max-width: 992px) {
  .modal-layout {
    flex-direction: column;
  }
  .modal-sidebar {
    width: 100%;
    padding: 20px;
    border-left: none;
    border-top: 1px solid var(--gray-200);
  }
  .agent-widget {
    position: static;
  }
}


/* =====================================================
   LOGO IMAGE
   ===================================================== */
.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 8px;
}

/* =====================================================
   SEARCH BAR
   ===================================================== */
.search-bar-container {
  max-width: 600px;
  margin: 0 auto 30px;
}
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-xl);
  padding: 12px 20px;
  gap: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.search-bar:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}
.search-bar-icon {
  color: var(--gray-500);
  font-size: 1.1rem;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-body);
  background: transparent;
  color: var(--gray-800);
}
.search-input::placeholder {
  color: var(--gray-500);
}
.search-clear {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: var(--transition);
}
.search-clear:hover {
  color: var(--gray-700);
}
.search-results-count {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 10px;
}

/* =====================================================
   THEME TOGGLE BUTTON
   ===================================================== */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  margin-right: 8px;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--secondary);
  color: var(--secondary);
}
.navbar.scrolled .theme-toggle {
  border-color: var(--gray-300);
  color: var(--gray-700);
}
.navbar.scrolled .theme-toggle:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* =====================================================
   TEXT ALIGNMENT - Descriptions left-aligned
   ===================================================== */
.modal-description,
.modal-description p,
.modal-features,
.modal-info {
  text-align: left;
}
.card-body {
  text-align: left;
}

/* =====================================================
   DARK MODE (DEFAULT)
   ===================================================== */
html.dark {
  --bg-body: #0d0d0d;
  --bg-section: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-input: #1e1e1e;
  --border-color: #2a2a2a;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #888888;
}

html.dark body {
  background-color: var(--bg-body);
  color: var(--text-primary);
}

html.dark .section {
  background-color: var(--bg-section);
}

html.dark .porque-section,
html.dark .propiedades-section {
  background-color: var(--bg-body);
}

html.dark .propiedad-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}
html.dark .propiedad-card:hover {
  background: var(--bg-card-hover);
}

html.dark .card-title,
html.dark .modal-title {
  color: var(--text-primary);
}

html.dark .card-location span,
html.dark .card-feature span,
html.dark .section-subtitle,
html.dark .modal-location span {
  color: var(--text-secondary);
}

html.dark .section-title {
  color: var(--text-primary);
}

html.dark .navbar {
  background: transparent;
}
html.dark .navbar.scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(20px);
}
html.dark .navbar.scrolled .logo-text {
  color: var(--text-primary);
}
html.dark .navbar.scrolled .nav-link {
  color: var(--text-secondary);
}
html.dark .navbar.scrolled .nav-link:hover,
html.dark .navbar.scrolled .nav-link.active {
  color: var(--secondary);
  background: rgba(255,255,255,0.05);
}
html.dark .navbar.scrolled .theme-toggle {
  border-color: var(--border-color);
  color: var(--text-secondary);
}
html.dark .navbar.scrolled .nav-toggle span {
  background: var(--text-primary);
}

html.dark .hero {
  background: linear-gradient(135deg, #000000, #111111);
}

html.dark .search-bar {
  background: var(--bg-card);
  border-color: var(--border-color);
}
html.dark .search-input {
  color: var(--text-primary);
}
html.dark .search-input::placeholder {
  color: var(--text-muted);
}
html.dark .search-bar:focus-within {
  border-color: var(--secondary);
}
html.dark .search-bar-icon {
  color: var(--text-muted);
}

html.dark .filtro-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border-color);
}
html.dark .filtro-btn.active,
html.dark .filtro-btn:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  border-color: var(--secondary);
}

html.dark .ventaja-card {
  background: var(--bg-card);
}
html.dark .ventaja-card h3 {
  color: var(--text-primary);
}
html.dark .ventaja-card p {
  color: var(--text-secondary);
}

html.dark .nosotros-text h3,
html.dark .nosotros-text p,
html.dark .nosotros-text li {
  color: var(--text-secondary);
}

html.dark .contacto-info h3 {
  color: var(--text-primary);
}
html.dark .contacto-info p {
  color: var(--text-secondary);
}

html.dark .form-group input,
html.dark .form-group select,
html.dark .form-group textarea {
  background: var(--bg-input);
  border-color: var(--border-color);
  color: var(--text-primary);
}
html.dark .form-group input:focus,
html.dark .form-group select:focus,
html.dark .form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
}
html.dark .form-group label {
  color: var(--text-secondary);
}

html.dark .cta-section {
  background: linear-gradient(135deg, #111111, #1a1a1a);
}

html.dark .footer {
  background: #080808;
}
html.dark .footer-col h4 {
  color: var(--text-primary);
}
html.dark .footer-links a,
html.dark .footer-col p {
  color: var(--text-secondary);
}
html.dark .footer-bottom {
  border-top-color: var(--border-color);
  color: var(--text-muted);
}

/* Modal dark mode */
html.dark .modal {
  background: var(--bg-card);
}
html.dark .modal-info {
  background: var(--bg-card);
}
html.dark .modal-highlight {
  background: var(--bg-section);
}
html.dark .modal-highlight .highlight-value {
  color: var(--text-primary);
}
html.dark .modal-highlight .highlight-label {
  color: var(--text-muted);
}
html.dark .modal-description p {
  color: var(--text-secondary);
}
html.dark .modal-description h3,
html.dark .modal-features h3 {
  color: var(--secondary);
}
html.dark .feature-item {
  background: var(--bg-section);
  color: var(--text-secondary);
}
html.dark .area-item {
  background: var(--bg-section);
}
html.dark .modal-sidebar {
  background: var(--bg-section);
  border-left-color: var(--border-color);
}
html.dark .agent-widget {
  background: var(--bg-card);
  border-color: var(--border-color);
}
html.dark .agent-name {
  color: var(--text-primary);
}
html.dark .agent-desc p {
  color: var(--text-secondary);
  border-bottom-color: var(--border-color);
}
html.dark .modal-thumbnails {
  background: var(--bg-section);
}
html.dark .modal-close {
  background: var(--bg-section);
  color: var(--text-primary);
}

/* Light mode overrides (when html doesn't have .dark) */
html:not(.dark) .theme-toggle i::before {
  content: "\f186"; /* moon icon */
}

/* Mobile nav dark mode */
html.dark .nav-menu {
  background: var(--bg-card);
}
@media (max-width: 768px) {
  html.dark .nav-menu {
    background: #111111;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
  }
  html.dark .nav-link {
    color: var(--text-secondary) !important;
  }
  html.dark .nav-link:hover,
  html.dark .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(255,255,255,0.05) !important;
  }
  .theme-toggle {
    margin-right: 4px;
  }
}


/* =====================================================
   DARK MODE - FIXES DE LEGIBILIDAD
   ===================================================== */
html.dark .nosotros-section,
html.dark .nosotros-section * {
  color: var(--text-primary);
}
html.dark .nosotros-text p,
html.dark .nosotros-text li {
  color: #d0d0d0 !important;
}
html.dark .nosotros-text h3 {
  color: #ffffff !important;
}
html.dark .nosotros-list li {
  color: #d0d0d0 !important;
}
html.dark .section-header .section-title {
  color: #f0f0f0 !important;
}
html.dark .section-header .section-subtitle {
  color: #b0b0b0 !important;
}

/* Propiedad page dark mode */
html.dark main {
  background: var(--bg-body) !important;
}
html.dark .modal-layout {
  background: var(--bg-card);
}
html.dark .modal-main {
  background: var(--bg-card);
}
html.dark .modal-gallery {
  background: #000;
}
html.dark .modal-title {
  color: #f0f0f0 !important;
}
html.dark .modal-location span {
  color: #b0b0b0 !important;
}
html.dark .modal-location i {
  color: var(--secondary) !important;
}
html.dark .modal-description p,
html.dark .modal-features span,
html.dark .feature-item span {
  color: #d0d0d0 !important;
}
html.dark .modal-description h3,
html.dark .modal-features h3 {
  color: var(--secondary) !important;
}
html.dark .modal-highlight {
  background: #1a1a1a !important;
}
html.dark .modal-highlight .highlight-value {
  color: #f0f0f0 !important;
}
html.dark .modal-highlight .highlight-label {
  color: #999 !important;
}
html.dark .modal-highlight i {
  color: var(--secondary) !important;
}
html.dark .feature-item {
  background: #1a1a1a !important;
  color: #d0d0d0 !important;
}
html.dark .feature-item i {
  color: var(--secondary) !important;
}
html.dark .area-item {
  background: #1a1a1a !important;
  border-left-color: var(--secondary) !important;
}
html.dark .area-item span {
  color: #d0d0d0 !important;
}

/* Agent sidebar in dark */
html.dark .modal-sidebar {
  background: #111 !important;
  border-left-color: #222 !important;
}
html.dark .agent-widget {
  background: #1a1a1a !important;
  border-color: #2a2a2a !important;
}
html.dark .agent-name {
  color: #f0f0f0 !important;
}
html.dark .agent-role {
  color: var(--secondary) !important;
}
html.dark .agent-desc p {
  color: #b0b0b0 !important;
  border-bottom-color: #2a2a2a !important;
}
html.dark .agent-desc strong {
  color: #e0e0e0 !important;
}
html.dark .agent-photo-placeholder {
  background: #222 !important;
  color: #666 !important;
}

/* Sidebar form inputs dark */
html.dark .agent-widget input,
html.dark .agent-widget textarea {
  background: #111 !important;
  border-color: #333 !important;
  color: #f0f0f0 !important;
}
html.dark .agent-widget input::placeholder,
html.dark .agent-widget textarea::placeholder {
  color: #777 !important;
}
html.dark .agent-widget input:focus,
html.dark .agent-widget textarea:focus {
  border-color: var(--secondary) !important;
}
html.dark .agent-widget p[style*="font-weight: 600"] {
  color: #d0d0d0 !important;
}

/* Volver button dark */
html.dark .btn[style*="background: var(--white)"] {
  background: #1a1a1a !important;
  color: #f0f0f0 !important;
  border-color: #333 !important;
}

/* Thumbnails dark */
html.dark .modal-thumbnails {
  background: #111 !important;
}

/* Card shadows dark */
html.dark .propiedad-card {
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Contact section dark */
html.dark .contacto-section {
  background: #0d0d0d;
}
html.dark .contacto-card {
  background: #1a1a1a;
  border-color: #2a2a2a;
}
html.dark .contacto-card h3 {
  color: #f0f0f0;
}
html.dark .contacto-card p,
html.dark .contacto-card a {
  color: #b0b0b0;
}

/* Boton volver */
.btn-volver {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.btn-volver:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}
html.dark .btn-volver {
  background: #1a1a1a !important;
  color: #f0f0f0 !important;
  border-color: #333 !important;
}
html.dark .btn-volver:hover {
  border-color: var(--secondary) !important;
  color: var(--secondary) !important;
}

/* =====================================================
   NOSOTROS IMAGE FIX
   ===================================================== */
.nosotros-img {
  width: 100%;
  height: auto;
  border-radius: 50% !important; /* Make it a perfect circle */
  box-shadow: none !important; /* Remove the square shadow */
  background: transparent !important;
}


/* =====================================================
   MOBILE NAV - DARK MODE FIX (no more white background)
   ===================================================== */
@media (max-width: 768px) {
  html.dark .nav-menu {
    background: #111111 !important;
    box-shadow: -5px 0 30px rgba(0,0,0,0.7) !important;
  }
  html.dark .nav-menu .nav-link {
    color: #d0d0d0 !important;
    border-bottom: 1px solid #222;
  }
  html.dark .nav-menu .nav-link:hover,
  html.dark .nav-menu .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(201,168,76,0.1) !important;
  }
  html.dark .nav-menu .nav-btn {
    background: var(--accent) !important;
    color: white !important;
  }
}

/* =====================================================
   HERO ANIMATED GRADIENT (black to gold transition)
   ===================================================== */
@keyframes heroGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero {
  background: linear-gradient(
    135deg,
    #000000 0%,
    #0d0d0d 20%,
    #1a1508 40%,
    #2a2010 50%,
    #1a1508 60%,
    #0d0d0d 80%,
    #000000 100%
  ) !important;
  background-size: 400% 400% !important;
  animation: heroGradientShift 10s ease infinite !important;
}

html.dark .hero {
  background: linear-gradient(
    135deg,
    #000000 0%,
    #0d0d0d 20%,
    #1a1508 40%,
    #2a2010 50%,
    #1a1508 60%,
    #0d0d0d 80%,
    #000000 100%
  ) !important;
  background-size: 400% 400% !important;
  animation: heroGradientShift 10s ease infinite !important;
}

html:not(.dark) .hero {
  background: linear-gradient(
    135deg,
    #1a365d 0%,
    #2a4a7f 20%,
    #3a5a8f 40%,
    #c9a84c 50%,
    #3a5a8f 60%,
    #2a4a7f 80%,
    #1a365d 100%
  ) !important;
  background-size: 400% 400% !important;
  animation: heroGradientShift 10s ease infinite !important;
}
