body {
  background: #eaf0fb;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.main-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: #222;
}

h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: #222;
}

input[type="text"] {
  width: 100%;
  padding: 10px 16px;
  margin-bottom: 32px;
  border: 1px solid #bcd;
  border-radius: 24px;
  font-size: 1rem;
  background: #f7fbff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #f7fbff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #0001;
  padding: 20px;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  border-left: 6px solid transparent;
}

.card:hover {
  box-shadow: 0 4px 16px #0002;
  border-left: 6px solid #7abaff;
}

.card.favorito {
  border-left: 6px solid #ffd700;
}

.card-info {
  flex: 1;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #666;
  overflow: hidden;
}

.card-info b {
  font-size: 1.1rem;
  color: #222;
  font-style: italic;
}

.card-info div {
  margin-top: 4px;
  font-size: 0.98rem;
  color: #444;
}

.fav-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 16px;
  color: #ff7f50;
}

.fav-btn.not-fav {
  color: #bbb;
}

@media (max-width: 700px) {
  .main-container {
    padding: 0 8px;
  }
  .cards-grid {
    gap: 12px;
  }
  .card {
    min-width: 180px;
    padding: 12px;
    gap: 10px;
  }
  .avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}