/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  line-height: 1.5;
}

/* HEADER */
header {
  background-color: #0c0c0c;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  flex-wrap: wrap;
}

header h1 {
  font-size: 24px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

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

header nav ul li a:hover {
  text-decoration: underline;
}

/* BANNER */
.banner {
  background: url('imagenes/banner2.jpeg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.banner h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.banner p {
  font-size: 1.2rem;
}

/* PROPIEDADES */
.propiedades {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.propiedades h2 {
  width: 100%;
  margin-bottom: 30px;
  font-size: 2rem;
  text-align: center;
}

/* CARTAS */
.carta {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  flex: 0 1 300px;
}

.carta img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.carta h3 {
  margin: 10px 0 5px;
}

.carta p {
  color: #333;
  margin-bottom: 10px;
}

/* BOTONES UNIFORMES */
.boton {
  display: inline-block;
  background: linear-gradient(135deg, #000000, #000000);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 200px;
  margin-top: 10px;
}

.boton:hover {
  background: linear-gradient(135deg, #000000, #000000);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.boton-negro {
  background: #0c0c0c;
}

.boton-negro:hover {
  background: #060606;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* FOOTER */
footer {
  background-color: #090909;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-contenido {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80%;
  margin-top: 60px;
  border-radius: 10px;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}

.whatsapp-fijo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #25D366; /* verde oficial de WhatsApp */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.whatsapp-fijo:hover {
  transform: scale(1.1);
}

.whatsapp-fijo img {
  width: 32px;
  height: 32px;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .banner h2 {
    font-size: 2rem;
  }

  .banner p {
    font-size: 1rem;
  }

  .carta {
    flex: 1 1 100%;
  }

  .modal-contenido {
    max-width: 95%;
    max-height: 90%;
  }

  .boton {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
  }
}
