/* Tema oscuro */
body {
  background-color: #111;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
}

.container {
  position: relative;
  min-height: 100vh;
  padding-bottom: 50px;
}

.main {
  padding-bottom: 50px;    /* Footer height */
  margin-bottom: 5vh;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2.5rem;            /* Footer height */
  text-align: center;
}

/* Título */
h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Contenedor del Grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  gap: 20px;
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

/* Cada Propiedad */
.grid-item {
  background-color: #222;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

/* Imagen */
.propiedad-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.propiedad-img:hover {
  transform: scale(1.05);
}

/* Información */
.info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  padding: 0 10px;
}

/* Dirección y metros */
.left {
  text-align: left;
}

.direccion {
  font-size: 1.2em;
  margin: 0;
}

.metros {
  font-size: 1em;
  color: #aaa;
}

/* Precio */
.right {
  text-align: right;
}

.precio {
  font-size: 1.2em;
  font-weight: bold;
  color: white;
}

/* Estado de la propiedad */
.estado {
  margin-top: 10px;
  text-align: right;
}

.estado p {
  font-size: 1em;
  font-weight: bold;
}

.disponible {
  color: white;
}

.reservado {
  color: orange;
}

.vendido {
  color: red;
}

/* Estilos generales de la navbar */
.nav-navbar {
  background-color: #1a1a1a !important; /* Negro */
  border-bottom: 2px solid #444; /* Borde inferior sutil */
}

/* Logo y marca */
.nav-navbar-brand {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Estilos del menú */
.nav-menu .nav-item {
  margin-right: 15px;
}

.nav-text {
  font-size: 1rem;
}

/* Cambio de color en hover */
.nav-text:hover {
  color: #2a344f !important ; /* Amarillo */
}

/* Estilos del botón hamburguesa */
.nav-toggler {
  border: none;
  outline: none;
}

/* Ajustes para el icono del menú en móviles */
.nav-toggler-icon {
  filter: invert(100%);
}

/* Ajustes generales */
.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Estilos para el banner principal */
.banner {
  background-image: url('/images/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 50px 0;
}


.banner h2 {
  margin-bottom: 15px;
}

.banner .btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.banner .btn:hover {
  background-color: #0056b3;
}

/* Buscador de propiedades */
.buscador {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
}

.buscador h3 {
  margin-bottom: 15px;
}

.buscador form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.buscador input,
.buscador select,
.buscador button {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 5px;
}

.buscador input,
.buscador select {
  background-color: #222;
  color: white;
}

.buscador button {
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
}

.buscador button:hover {
  background-color: #218838;
}

/* Carruseles */
.destacadas {
  margin: 40px 0;
  text-align: center;
}

.destacadas h3 {
  margin-bottom: 20px;
}

.owl-carousel .item {
  background-color: #222;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.owl-carousel .item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.owl-carousel .info {
  margin-top: 10px;
  color: white;
}

.owl-carousel .precio {
  font-weight: bold;
  color: #ffcc00;
}

/* Sección de contacto */
.contacto {
  background-color: #1a1a1a;
  padding: 30px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.contacto h3 {
  margin-bottom: 15px;
}

.contacto p {
  margin-bottom: 20px;
}

.contacto .btn {
  background-color: #ffc107;
  color: black;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contacto .btn:hover {
  background-color: #e0a800;
}

/* Estilos del Footer */
footer {
  /* background-color: #222; */
  color: white;
  padding: 30px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
}

.footer-column {
  width: 23%;
  min-width: 200px;
  text-align: left;
}

.footer-column h5 {
  margin-bottom: 15px;
  color: #f8f9fa;
}

.footer-column ul {
  padding: 0;
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

.footer-column p {
  margin-bottom: 10px;
}

.social-icon {
  font-size: 24px;
  color: #bbb;
  margin-right: 15px;
  transition: color 0.3s;
}

.social-icon:hover {
  color: #ffffff;
}

/* Línea divisoria */
footer hr {
  border: 0.5px solid #444;
  margin: 20px auto;
  width: 90%;
}

/* Privacidad y Copyright */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
  font-size: 14px;
}

.footer-bottom a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #ffffff;
}


/* Responsivo */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }

  .buscador form {
    flex-direction: column;
  }

  .buscador input,
  .buscador select,
  .buscador button {
    width: 100%;
  }

  .destacadas .owl-carousel {
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

