* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* --------- Topbar --------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1976d2; /* azul */
  color: white;
  padding: 1rem 2rem;
  border-bottom: 3px solid #1565c0;
}

.topbar h1 {
  font-size: 1.5rem;
}

.topbar input {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: none;
  outline: none;
  width: 250px;
}

/* --------- Secciones --------- */
.section {
  padding: 1.5rem 2rem;
}

.section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #1976d2;
}

.section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* --------- Tarjetas --------- */
.card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.card-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.card h3 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: #222;
}

.card p {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: #555;
}