:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #0b6efd;
  --accent-hover: #0953c6;
  --darker-button: #0056b3;
  --light-blue: #66b3ff;
  --gray-light: #d1d5db;
  --verified-blue: #007bff;
  --darker-comuna: #444444;
  --radius: 14px;
  --max-w: 1100px;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 28px 18px;
  display: flex;
  justify-content: center;
  background: var(--bg);
  color: #0f172a;
}

.container {
  width: 100%;
  max-width: var(--max-w);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.filter-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
}

.search-box {
  width: 100%;
  padding: 6px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  height: 36px;
}

.select-comuna,
.select-specialty {
  padding: 6px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  width: 100%;
  height: 36px;
}

.search-btn,
.clear-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: auto;
  text-align: center;
  height: 36px;
  margin: 0;
}

.search-btn {
  background-color: var(--light-blue);
  color: white;
}

.search-btn:hover {
  background-color: var(--accent-hover);
}

.clear-btn {
  background-color: var(--gray-light);
  color: #333;
}

.clear-btn:hover {
  background-color: #b0b7c3;
}

.filter-item button {
  margin-right: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
}

.card-top {
  display: flex;
  padding: 14px;
  gap: 12px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name {
  font-size: 18px;
  line-height: 21px;
  color: #333;
  display: flex;
  align-items: center;
}

.name i {
  color: var(--verified-blue);
  margin-left: 8px;
  font-size: 14px; /* Reducido el tamaño del ícono */
}

.specialty {
  font-size: 15px;
  line-height: 21px;
  color: #333;
}

.comuna {
  font-size: 14px;
  line-height: 21px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 14px;
  border-top: 1px solid #f1f5f9;
}

.contact {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--darker-button);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.contact a i {
  margin-right: 12px;
}

/* No hay resultados */
.no-results {
  text-align: center;
  font-size: 16px;
  color: #999;
  font-family: 'Roboto', sans-serif;
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .filter-item {
    width: 100%;
    margin-bottom: 10px;
  }

  .search-btn,
  .clear-btn {
    width: 100%;
    margin-top: 10px;
  }
}

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

  .filters {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
  }

  .filter-item {
    width: 100%;
  }

  .search-btn,
  .clear-btn {
    width: 100%;
    margin-top: 10px;
    padding: 6px 12px;
  }
}
