.modal {
  display: none;
  position: fixed;
  z-index: 100000 !important; /* Valor mayor que el del navbar */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Fondo semitransparente */
  display: flex; /* Flexbox para centrar */
  justify-content: center;
  align-items: center;
}



.modal-content {
  position: relative;
  width: 350px;
  max-width: 800px; /* Ajustar el tamaño del modal */
  height: 500px;
  border-radius: 15px;
  overflow: hidden; /* Recorta el contenido fuera del modal */
  animation: fadeIn 0.5s ease;
  background: url('images/BANNER_HOUSE\ V2.jpg') center/cover no-repeat; /* Imagen como fondo */
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: scale(0.9);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

.modal-body {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px; /* Ajustar el espacio entre los botones */
  justify-content: center; /* Alinear botones horizontalmente */
  flex-wrap: nowrap; /* Asegura que los botones no se envuelvan */
  z-index: 2; /* Asegura que los botones estén visibles */
}

.modal-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s;
  padding: 8px 15px; /* Reducir tamaño del botón */
  font-size: 0.8rem; /* Reducir tamaño de texto */    
  white-space: nowrap; /* Asegura que el texto no se divida en varias líneas */
}

.modal-body a:hover {
  background-color: #8CB4B5;
}

.modal-body a i {
  margin-right: 8px;
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  padding: 5px 10px;
  line-height: 1;
  text-align: center;
  z-index: 3; /* Coloca el botón por encima de todo */
  
}

.close:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #000;
}

.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(173, 173, 173);
  color: #ffffff;
  text-transform: uppercase;
  margin: 5px;
  padding: 2px 2px;
  border-radius: 30px;
  font-size: x-small;
  text-decoration: none;
  transition: background 0.3s;
}

.more-link:hover {
  background-color: #8CB4B5;
}

.modal-body a i {
  margin-right: 5px; /* Ajustar espacio entre ícono y texto */
}