/* 1. Estilos base (mobile-first) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: hsl(0, 0%, 8%);
  color: white;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

/* 2. Tarjeta principal */
.card {
  background-color: hsl(0, 0%, 12%);
  padding: 2rem;
  border-radius: 15px;
  width: 100%;
  max-width: 350px;
  text-align: center;
}

/* 3. Imagen del perfil */
.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

/* 4. Ubicación */
.location {
  color: hsl(75, 94%, 57%);
  font-weight: bold;
  margin-bottom: 1rem;
}

/* 5. Descripción */
.bio {
  font-size: 14px;
  color: hsl(0, 0%, 70%);
  margin-bottom: 1.5rem;
}

/* 6. Botones/enlaces */
.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links a {
  text-decoration: none;
  background-color: hsl(0, 0%, 20%);
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.links a:hover {
  background-color: hsl(75, 94%, 57%);
  color: hsl(0, 0%, 8%);
}

/* 7. Créditos */
.attribution {
  margin-top: 2rem;
  font-size: 11px;
  color: hsl(0, 0%, 60%);
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

/* 8. Estilos opcionales para pantallas más grandes */
@media (min-width: 768px) {
  .card {
    padding: 2.5rem;
    max-width: 400px;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .bio {
    font-size: 15px;
  }

  .links a {
    font-size: 14px;
  }
}
