/* src/App.css */
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #ede7f6; /* Lila clarito */
  margin: 0;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #222;
  text-align: center; /* Centra el título */
}

input[type="search"], input[type="text"] {
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid #e0e3e7;
  font-size: 1rem;
  background: #fff;
  margin-bottom: 2rem;
  width: 300px;
}

.section-title {
  font-size: 1.2rem;
  margin: 2rem 0 1rem 0;
  color: #444;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center; /* Centra las tarjetas */
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #e0e3e7;
  padding: 1.5rem 1.2rem;
  min-width: 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e0e3e7;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #555;
  overflow: hidden;
  border: 2px solid #eee;
}

.card .star {
  color: #FFD700;
  font-size: 1.4rem;
  margin-left: auto;
  cursor: pointer;
}

.card .star.inactive {
  color: #d3d3d3;
}

.card .nombre {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.3rem;
}

.card .info {
  font-size: 1rem;
  color: #555;
}

.busqueda-centro {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .cards {
    flex-direction: column;
    gap: 1rem;
  }
}