/* --- ESTILOS GENERALES --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

h2 {
  margin-left: 1.5rem;
}

/* --- NAVBAR --- */
.navbar {
  position: relative;
  background: #b71c1c;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  z-index: 10;
}

.navbar .logo {
  font-size: 2rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Móvil */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #b71c1c;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border-bottom-left-radius: 10px;
  }

  .nav-links.show {
    display: flex;
  }
}

/* --- GRID RESPONSIVO --- */
.contenedor-propiedades {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .contenedor-propiedades {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .contenedor-propiedades {
    grid-template-columns: 1fr;
  }
}

.propiedad {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem;
}

.propiedad img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 1rem;
  background: #e53935;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

/* --- FOOTER --- */
.footer {
  background: #333;
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer p {
  margin: 0.5rem 0;
}