/* ================ */
/* VARIABLES GLOBALES */
/* ================ */
:root {
  /* Colores */
  --azul-oscuro: #051020;
  --dorado: #D4AF37;
  --gris-claro: #f8f9fa;
  --blanco: #ffffff;
  --rojo-alquiler: #e74c3c;
  --sombra: 0 2px 10px rgba(0, 0, 0, 0.1);
  --sombra-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
  
  /* Fuentes */
  --fuente-principal: 'Arial', sans-serif;
  --fuente-titulos: 'Montserrat', sans-serif;
  
  /* Espaciados */
  --espacio-sm: 15px;
  --espacio-md: 30px;
  --espacio-lg: 60px;
  --radio-bordes: 8px;
}

/* ================ */
/* ESTILOS BASE */
/* ================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fuente-principal);
  color: #333;
  line-height: 1.6;
  padding-top: 80px; /* Compensación para header fijo */
}

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

/* ================ */
/* CABECERA CORREGIDA */
/* ================ */
header {
  background: var(--azul-oscuro);
  box-shadow: var(--sombra);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--espacio-sm) 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  color: var(--blanco);
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  font-family: var(--fuente-titulos);
  z-index: 1001;
}

.logo span {
  color: var(--dorado);
}

/* NAVEGACIÓN PRINCIPAL - CORREGIDA */
#nav-menu {
  display: flex;
}

#nav-menu ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

#nav-menu li {
  position: relative;
}

#nav-menu a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

#nav-menu a:hover,
#nav-menu a.active {
  color: var(--dorado);
}

/* DROPDOWN MENUS - COMPLETAMENTE CORREGIDOS */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-toggle::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blanco);
  min-width: 220px;
  box-shadow: var(--sombra-hover);
  border-radius: var(--radio-bordes);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  color: #333;
  padding: 0.8rem 1.5rem;
  display: block;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--gris-claro);
  color: var(--azul-oscuro);
  border-left-color: var(--dorado);
}

.menu-toggle {
  display: none;
  color: var(--blanco);
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

/* ================ */
/* BOTONES */
/* ================ */
.btn {
  display: inline-block;
  background: var(--dorado);
  color: var(--azul-oscuro);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: var(--fuente-titulos);
}

.btn:hover {
  background: #c9a227;
  transform: translateY(-3px);
  box-shadow: var(--sombra-hover);
}

.btn-primary {
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #030a16;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--azul-oscuro);
  border: 2px solid var(--azul-oscuro);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--azul-oscuro);
  color: var(--dorado);
  transform: translateY(-2px);
}

/* ================ */
/* HERO SECTION */
/* ================ */
.properties-hero {
  background: 
    linear-gradient(135deg, rgba(5, 16, 32, 0.85), rgba(26, 42, 58, 0.85)),
    url('./assets/img/inmuebles/Puesta.JPG') center/cover no-repeat;
  color: var(--blanco);
  padding: 80px 0;
  text-align: center;
  position: relative;
  margin-top: 0; /* Ya compensado en body */
}

.properties-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-family: var(--fuente-titulos);
}

.properties-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ================ */
/* FILTROS */
/* ================ */
.simple-filter-section {
  background-color: var(--gris-claro);
  padding: var(--espacio-md) 0;
}

.simple-filter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group label {
  font-weight: 600;
  color: var(--azul-oscuro);
  margin-bottom: 0;
}

.filter-group select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--fuente-principal);
}

.filter-btn {
  background: var(--azul-oscuro);
  color: var(--blanco);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 0;
}

.filter-btn:hover {
  background: #030a16;
}

/* ================ */
/* CONTROLES DE ORDENACIÓN */
/* ================ */
.sort-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.sort-btn {
  padding: 10px 15px;
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-family: var(--fuente-principal);
}

.sort-btn:hover {
  background-color: var(--dorado);
  transform: translateY(-2px);
}

.sort-btn.active {
  background-color: var(--dorado);
  color: var(--azul-oscuro);
  font-weight: bold;
}

.sort-btn i {
  margin-left: 5px;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.sort-btn.desc i {
  transform: rotate(180deg);
}

/* ================ */
/* PROPIEDADES - IMÁGENES CORREGIDAS */
/* ================ */
.property-listing {
  padding: var(--espacio-lg) 0;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--espacio-md);
  margin-bottom: var(--espacio-lg);
}

.property-card-wrapper {
  margin-bottom: var(--espacio-md);
  position: relative;
  transition: transform 0.3s ease;
}

.property-card-wrapper:hover {
  transform: translateY(-5px);
}

.property-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--blanco);
  border: 1px solid #ddd;
  border-radius: var(--radio-bordes);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}

/* CONTENEDOR DE IMAGEN - CORREGIDO */
.image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f8f9fa; /* Color de respaldo si la imagen no carga */
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block; /* Asegurar que se muestre como bloque */
}

.property-card:hover .property-image {
  transform: scale(1.05);
}

/* Fallback para imágenes rotas */
.property-image:before {
  content: "Imagen no disponible";
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gris-claro);
  color: #666;
  font-size: 0.9rem;
}

.property-image[src]:before {
  display: none;
}

/* CINTAS HORIZONTALES */
.ribbon {
  position: absolute;
  color: var(--blanco);
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  pointer-events: none;
  padding: 8px 15px;
  font-size: 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--fuente-titulos);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  top: 15px;
  left: 15px;
  right: auto;
}

/* RIBBON DE PARTICULAR Y BANCO */
.owner-ribbon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--dorado), #b8941f);
  color: var(--azul-oscuro);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 9;
  text-transform: uppercase;
  pointer-events: none;
}

.bank-ribbon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: var(--blanco);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  text-align: right;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 9;
  text-transform: uppercase;
  pointer-events: none;
}

/* Mostrar u ocultar según el tipo de propiedad */
.property-card[data-banco="true"] .bank-ribbon {
  display: block;
}

.property-card[data-banco="true"] .owner-ribbon {
  display: none;
}

.property-card[data-banco="false"] .owner-ribbon {
  display: block;
}

.property-card:not([data-banco="true"]) .bank-ribbon {
  display: none;
}

/* TIPOS DE RIBBON */
.ribbon.alquiler {
  background: var(--rojo-alquiler);
}

.ribbon.chollo { 
  background: #E67E22;
}

.ribbon.oportunidad { 
  background: #2ECC71; 
}

.ribbon.alquilado { 
  background: #7F8C8D; 
  text-decoration: line-through;
  opacity: 0.9;
}

.ribbon.vendido { 
  background: #E74C3C; 
  border: 2px dashed var(--blanco);
  font-style: italic;
}

.ribbon.destacado {
  background-color: var(--dorado);
}

/* NÚMERO DE PROPIEDAD */
.property-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(5, 16, 32, 0.9);
  color: var(--blanco);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.property-index {
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 12px;
  margin-right: 8px;
  display: inline-block;
}

/* INFORMACIÓN DE PROPIEDAD */
.property-info {
  padding: 15px;
  position: relative;
}

.property-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.reference-number {
  font-size: 13px;
  color: #666;
  margin-left: 8px;
}

.bank-label, .owner-label {
  font-size: 12px;
  color: #666;
  margin-left: auto;
}

.bank-label i, .owner-label i {
  margin-right: 5px;
}

.bank-label {
  color: #e74c3c;
  font-weight: 600;
  font-size: 0.8rem;
}

.owner-label {
  color: var(--dorado);
  font-weight: 600;
  font-size: 0.8rem;
}

.property-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--azul-oscuro);
  font-family: var(--fuente-titulos);
  font-weight: 600;
}

.property-location {
  color: #666;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.property-location i {
  margin-right: 5px;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.feature {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 4px 8px;
  background: rgba(5, 16, 32, 0.05);
  border-radius: 4px;
}

.feature i {
  margin-right: 5px;
  font-size: 0.7rem;
  color: var(--azul-oscuro);
}

.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}

.tag {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.tag-alquiler {
  background: #fff3e0;
  color: #ef6c00;
}

.tag-reformado {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-garaje {
  background: #e3f2fd;
  color: #1565c0;
}

.price-container {
  margin: 8px 0;
  padding-top: 15px;
  border-top: 1px solid #ecf0f1;
}

.property-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--azul-oscuro);
}

.property-fees {
  font-size: 0.9em;
  color: #666;
}

.property-notice {
  margin-top: 5px;
  font-size: 0.8rem;
  color: #7f8c8d;
}

.property-notice strong {
  color: #e74c3c;
}

/* PROPIEDADES VENDIDAS/ALQUILADAS */
.sold-property {
  position: relative;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.sold-property:hover {
  opacity: 1;
}

.sold-overlay-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.sold-badge {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: var(--blanco);
  padding: 12px 30px;
  font-weight: bold;
  font-size: 1.4em;
  text-transform: uppercase;
  letter-spacing: 3px;
  border: 2px solid var(--blanco);
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: rotate(-5deg);
}

.property-card.sold-property .property-number {
  background: #d32f2f;
  color: var(--blanco);
  z-index: 3;
}

.property-card.sold-property .property-price {
  color: #d32f2f;
  text-decoration: line-through;
}

.property-card.sold-property .property-notice {
  color: #d32f2f;
  font-weight: bold;
}

/* Efecto para propiedades no disponibles */
.property-card.alquilado img,
.property-card.vendido img {
  filter: grayscale(70%);
  opacity: 0.8;
}

.property-card.alquilado .contact-btn,
.property-card.vendido .contact-btn {
  display: none;
}

/* ================ */
/* ANUNCIOS - COMPLETAMENTE CORREGIDOS */
/* ================ */
.ad-card-wrapper {
  transition: transform 0.3s ease;
  margin-bottom: var(--espacio-md);
}

.ad-card-wrapper:hover {
  transform: translateY(-5px);
}

.ad-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--azul-oscuro), #1a2a3a);
  height: 100%;
  border-radius: var(--radio-bordes);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 30px 20px;
  text-align: center;
  color: var(--blanco);
  position: relative;
  min-height: 200px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.ad-card:hover {
  border-color: var(--dorado);
  transform: translateY(-5px);
}

.ad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dorado), #b8941f);
}

.ad-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.ad-icon {
  font-size: 2.5rem;
  color: var(--dorado);
  margin-bottom: 10px;
}

.ad-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: var(--dorado);
}

.ad-description {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.ad-button {
  background: var(--dorado);
  color: var(--azul-oscuro);
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: inline-block;
}

.ad-button:hover {
  background: #b8941f;
  transform: translateY(-2px);
}

/* Variante espectacular asesoría */
.espectacular-asesoria .ad-card {
  background: 
    linear-gradient(135deg, rgba(5, 16, 32, 0.9), rgba(26, 42, 58, 0.9)),
    url('./assets/img/asesoria.jpg') center/cover no-repeat;
  min-height: 300px;
}

.espectacular-asesoria .ad-title {
  color: var(--dorado);
  font-size: 1.5rem;
}

.espectacular-asesoria .ad-description {
  color: var(--blanco);
  font-size: 1rem;
}

/* NO RESULTADOS */
.no-results {
  text-align: center;
  padding: 60px 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.no-results img {
  max-width: 150px;
  margin-bottom: 20px;
  opacity: 0.5;
}

/* MAPA */
.map-container {
  margin-top: var(--espacio-lg);
}

.map-container h2 {
  text-align: center;
  margin-bottom: var(--espacio-md);
  font-family: var(--fuente-titulos);
}

.campina-map {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  display: flex;
  justify-content: center;
}

.campina-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radio-bordes);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* BOTÓN SUBIR */
#btn-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--dorado);
  color: var(--azul-oscuro);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 99;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-weight: bold;
}

#btn-top:hover {
  background: #c9a227;
  transform: translateY(-3px);
}

/* ================ */
/* FOOTER */
/* ================ */
.site-footer {
  background-color: var(--azul-oscuro);
  color: #ecf0f1;
  padding: 60px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 50px 0;
}

.footer-logo {
  color: var(--blanco);
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  font-family: var(--fuente-titulos);
  display: block;
  margin-bottom: 15px;
}

.footer-logo span {
  color: var(--dorado);
}

.footer-about {
  margin: 20px 0;
  line-height: 1.6;
  color: #aaa;
  font-size: 0.9rem;
  color: #bdc3c7;
}

.footer-title {
  color: var(--dorado);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-family: var(--fuente-titulos);
}

.footer-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--dorado);
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.footer-list i {
  color: var(--dorado);
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.footer-list a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-list a:hover {
  color: var(--dorado);
}

/* Footer Social */
.footer-social a {
  color: var(--blanco);
  margin-right: 15px;
  font-size: 18px;
  transition: color 0.3s;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: #0d1a2f;
  color: #ecf0f1;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--dorado);
  color: var(--azul-oscuro);
  transform: translateX(5px);
}

/* Footer Promocional */
.footer-promo {
  background: linear-gradient(135deg, var(--dorado), #b8941f);
  color: var(--azul-oscuro);
  padding: 30px 0;
}

.promo-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.promo-text h3 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
}

.promo-text p {
  margin: 0;
  opacity: 0.9;
}

.promo-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Badges de Confianza */
.footer-badges {
  margin: 20px 0;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}

.badge i {
  color: var(--dorado);
}

.badge span {
  font-size: 0.85rem;
  color: #ecf0f1;
}

/* Información de Contacto */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.contact-item i {
  color: var(--dorado);
  margin-top: 2px;
}

.contact-item div {
  display: flex;
  flex-direction: column;
}

.contact-item strong {
  color: #ecf0f1;
  font-size: 0.9rem;
}

.contact-item span {
  color: #bdc3c7;
  font-size: 0.85rem;
}

/* Newsletter */
.newsletter {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.newsletter h4 {
  margin: 0 0 5px 0;
  color: #ecf0f1;
}

.newsletter p {
  margin: 0 0 15px 0;
  color: #bdc3c7;
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  gap: 5px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background: #0d1a2f;
  color: #ecf0f1;
}

.newsletter-form button {
  background: var(--dorado);
  color: var(--azul-oscuro);
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
}

.newsletter-form button:hover {
  background: #b8941f;
}

/* Footer Legal */
.footer-bottom {
  border-top: 1px solid #0d1a2f;
  padding: 20px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-certifications i {
  margin-right: 10px;
  color: var(--dorado);
}

.footer-copyright {
  background: #030a16;
  padding: 20px 0;
  text-align: center;
  color: #aaa;
  font-size: 14px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-developer {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #7f8c8d;
}

.footer-legal {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 10px 0;
}

.footer-legal a {
  color: #7f8c8d;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--dorado);
}

/* ================ */
/* RESPONSIVE - CORREGIDO */
/* ================ */
@media (max-width: 1024px) {
  #nav-menu ul {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .header-container {
    flex-direction: row;
    align-items: center;
  }
  
  .menu-toggle {
    display: block;
  }
  
  #nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--azul-oscuro);
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: left 0.3s ease;
    z-index: 1000;
  }
  
  #nav-menu.show {
    left: 0;
  }
  
  #nav-menu ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  #nav-menu li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  #nav-menu a {
    padding: 15px 0;
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    margin: 0;
    display: none;
    border-radius: 0;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu li {
    border-bottom: none;
  }
  
  .dropdown-menu a {
    color: var(--blanco);
    padding: 12px 15px 12px 30px;
    border-left: none;
  }
  
  .dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--dorado);
  }
  
  .properties-hero h1 {
    font-size: 2rem;
  }
  
  .properties-hero p {
    font-size: 1.1rem;
  }
  
  .property-grid {
    grid-template-columns: 1fr;
  }
  
  .simple-filter-form {
    flex-direction: column;
  }
  
  .simple-filter-form .filter-group {
    flex-direction: column;
    width: 100%;
  }
  
  .simple-filter-form select {
    width: 100%;
  }
  
  .promo-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .footer-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-legal {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .property-features {
    gap: 6px;
  }
  
  .property-features span {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  .campina-map iframe {
    width: 100%;
    height: 300px;
  }
  
  .ad-card {
    padding: 20px 15px;
  }
  
  .ad-icon {
    font-size: 2rem;
  }
  
  .ad-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .properties-hero h1 {
    font-size: 1.8rem;
  }
  
  .properties-hero p {
    font-size: 1rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .logo {
    font-size: 24px;
  }
}