.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 30px 0;
}

.card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
  height: 340px;
  width: 1050px;
  max-width: 100%;
  margin-bottom: 0;
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-info {
  padding: 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.card
  img:not(.location-icon):not(.house-icon):not(.surface-icon):not(
    .whatsapp-icon img
  ) {
  width: 40%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.card-content {
  width: 60%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.card h2 {
  color: var(--text-color);
  font-size: 22px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 5px 0;
}

.card .price {
  color: var(--text-color);
  font-weight: 700;
  font-size: 22px;
  margin: 8px 0;
  text-align: left;
}

.card .type {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  margin: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.precio-box {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 10;
}

.precio-box .boton {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}

.location-icon,
.house-icon,
.surface-icon {
  max-width: 20px;
  max-height: 20px;
  width: 100%;
  height: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.whatsapp-icon {
  position: absolute;
  right: 20px;
  bottom: 8px;
  transition: transform 0.2s ease;
}

.whatsapp-icon img {
  max-width: 40px;
  min-width: 40px;
  width: 100%;
  height: auto;
  cursor: pointer;
}

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

.location {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  margin: 6px 0;
}

.aditional-info p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.details {
  margin-top: 16px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 32px;
}

.details p {
  margin: 0;
  display: flex;
  align-items: center;
}

.contact {
  margin-top: 15px;
}

.contact a {
  color: #ffffff;
  background-color: var(--main-color);
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 14px;
}

.contact a:hover {
  background-color: var(--main-color-hover);
}

.operation {
  font-size: 15px;
  color: var(--secondary-color);
  font-weight: 600;
}

/* === Tablet === */


@media screen and (max-width: 1024px) {
  .card {
    width: 90%; /* reducimos el ancho */
    height: auto; /* altura dinámica */
    flex-direction: column;
    align-items: center;
  }

  .card img:not(.location-icon):not(.house-icon):not(.surface-icon):not(.whatsapp-icon img) {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .card-content {
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .precio-box {
    top: 15px;
    right: 15px;
  }

  .details {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .whatsapp-icon {
    right: 15px;
    bottom: 15px;
  }
}


/* === Mobile === */
@media screen and (max-width: 768px) {
  .card-container {
    gap: 20px;
  }

  .card {
    width: 95%;
    flex-direction: column;
    height: auto;
  }

  .card img:not(.location-icon):not(.house-icon):not(.surface-icon):not(.whatsapp-icon img) {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .card-content {
    width: 100%;
    padding: 15px;
  }

  .card h2 {
    font-size: 20px;
  }

  .card p,
  .location,
  .aditional-info p {
    font-size: 14px;
  }

  .card .price {
    font-size: 20px;
  }

  .card .type {
    font-size: 13px;
  }

  .details {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .precio-box {
    top: 10px;
    right: 10px;
  }

  .whatsapp-icon {
    right: 10px;
    bottom: 10px;
  }

  .contact a {
    font-size: 12px;
    padding: 8px 12px;
  }

  .operation {
    font-size: 14px;
  }
}
