/* Estilos generales para la aplicación */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.app {
  min-height: 100vh;
}

/* Mensaje de carga */
.app__loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 1.2rem;
  color: #666;
}

/* Contenido principal */
.app__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Mensaje de sin resultados */
.app__no-results {
  text-align: center;
  margin-top: 50px;
  color: #666;
  font-size: 1.1rem;
}

/* === Estilos del Topbar === */
.topbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.topbar__titulo {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.topbar__busqueda {
  max-width: 500px;
  margin: 0 auto;
}

.topbar__input {
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.topbar__input:focus {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.topbar__input::placeholder {
  color: #999;
}

/* === Estilos de ContactSection === */
.contact-section {
  margin-bottom: 40px;
}

.contact-section__title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #444;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

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

/* === Estilos de ContactCard === */
.contact-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Avatar */
.contact-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

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

.contact-card__avatar-iniciales {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Información del contacto */
.contact-card__info {
  flex: 1;
}

.contact-card__nombre {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.contact-card__telefono,
.contact-card__legajo,
.contact-card__github {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 3px;
}

.contact-card__github-link {
  color: #0366d6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card__github-link:hover {
  color: #0256cc;
  text-decoration: underline;
}

/* Botón de favorito */
.contact-card__favorito {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: #ccc;
}

.contact-card__favorito:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

.contact-card__favorito--activo {
  color: #ffd700;
}

.contact-card__favorito--activo:hover {
  color: #ffed4e;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .topbar {
    padding: 15px;
  }
  
  .topbar__titulo {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .app__content {
    padding: 15px;
  }
  
  .contact-section__list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .contact-card {
    padding: 15px;
  }
  
  .contact-card__avatar {
    width: 50px;
    height: 50px;
  }
  
  .contact-card__avatar-iniciales {
    font-size: 1rem;
  }
  
  .contact-card__nombre {
    font-size: 1rem;
  }
}