:root{
  --bg:#f6f7f8;
  --card:#ffffff;
  --accent:#0b2b3a;
  --muted:#6b7680;
  --shadow: 0 6px 14px rgba(11,43,58,0.06);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--accent);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

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

.topbar{
  background:transparent;
  padding-top:20px;
  padding-bottom:10px;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.title{
  margin:0;
  font-size:28px;
  font-weight:700;
}

.search{
  width:360px;
  max-width:40%;
  padding:10px 14px;
  border-radius:22px;
  border:1px solid #e2e6e9;
  background:white;
  outline:none;
  font-size:14px;
}

.section{
  margin-top:28px;
}

.section-title{
  margin: 10px 0 18px;
  font-size:20px;
}

.empty{
  color:var(--muted);
  padding:18px;
}

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

/* tarjeta */
.card{
  background:var(--card);
  border-radius:10px;
  padding:16px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  box-shadow: var(--shadow);
  position:relative;
  min-height:110px;
}

.card-left{
  width:72px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f0f4f6;
  border:4px solid #fff;
  box-shadow:0 2px 8px rgba(11,43,58,0.06);
}

.avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.initials{
  font-weight:700;
  font-size:18px;
  color:var(--accent);
}

.card-body{
  flex:1;
}

.card-name{
  margin:0 0 8px 0;
  font-size:16px;
}

.meta{ color:var(--muted); font-size:14px; line-height:1.6; }

/* botón favorito */
.fav{
  position:absolute;
  right:12px;
  top:12px;
  background:transparent;
  border:none;
  font-size:18px;
  cursor:pointer;
  color:#ffb400;
}
.fav:focus{ outline:2px solid rgba(11,43,58,0.08); border-radius:6px; }