:root {
  --bg: #f9f9f9;
  --text: #222;
  --muted: #666;
  --primary: #2563eb;
  --card-bg: #fff;
  --border: #e5e7eb;
}

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

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

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

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

.topbar input {
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  width: 280px;
}

.contact-section {
  margin-top: 2rem;
}

.contact-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s ease;
}

.contact-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  overflow: hidden;
}

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

.info {
  flex: 1;
}

.info .name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info .meta {
  font-size: 0.875rem;
  color: var(--muted);
}
.info .orden .top-line {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
 display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap:2.6rem;
}
.info .orden .top-line .nombre {
  grid-column: span 4;
}
.info .orden .top-line .estrella {
   grid-column: span 1;
}
.info .github {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary);
}

.fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--muted);
}

.fav-btn.active {
  color: gold;
}

.no-results {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
}
 