:root{
  --bg:#f6f6f8;
  --card:#fff;
  --text:#222;
  --muted:#666;
  --accent:#ffd25a;
}

body{
  margin:0;
  font-family: system-ui, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px;
  background:#fff;
  border-bottom:1px solid #ddd;
}

.search{
  padding:8px 12px;
  border-radius:18px;
  border:1px solid #ccc;
}

.container{
  padding:24px;
  max-width:1100px;
  margin:0 auto;
}

.section{ margin-bottom:28px; }
.section h2{ font-size:16px; }

.cards-container{
  display:flex;
  flex-wrap: wrap;
  gap:16px; /* espacio entre tarjetas */
}

.contact-card{
  background:var(--card);
  border-radius:10px;
  padding:12px;
  border:1px solid #eee;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:150px;
}

.contact-avatar{
  width:100px;
  height:100px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ddd;
  margin-bottom:10px;
}

.contact-avatar img{
  width:100%;
  height:100%;
  object-fit:cover; /* recorta sin deformar */
  display:block;
}

.contact-avatar.initials{
  font-weight:700;
  color:#fff;
  background:#6aa2c7;
  font-size:24px;
}

.contact-info{
  text-align:center;
  margin-bottom:8px;
}

.contact-name{
  font-weight:bold;
  font-size:15px;
  margin-bottom:4px;
}

.fav-btn{
  font-size:20px;
  cursor:pointer;
  border:none;
  background:none;
}

.fav-btn.fav{
  color:var(--accent);
}
