/* ==========================================================================
   Componente: Equipo (.team-card)
   ========================================================================== */

.team__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}

@media (min-width: 768px) {
  .team__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-card {
  display: flex;
  align-items: center;
  gap: var(--space-32);
  text-align: left;
}

.team-card__photo {
  flex: 0 0 200px;
  width: 200px;
  height: 250px;
  border-radius: var(--radius-image);
  overflow: hidden;
}

.team-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.team-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(165, 121, 157, 0.12);
  color: var(--primary);
  font-size: 3rem;
}

.card:hover .team-card__photo--placeholder {
  animation: gentle-bounce .6s ease;
}

.team-card__body {
  flex: 1;
  min-width: 0;
}

.team-card__name {
  margin-bottom: var(--space-4);
  font-size: 1.125rem;
  color: var(--text-color);
}

.team-card__role {
  margin-bottom: var(--space-16);
  color: var(--gray-500);
  font-size: 0.875rem;
}

.team-card__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-24);
}

.team-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--gray-700);
  font-size: 0.9375rem;
  transition: var(--transition-base);
}

.team-card__link i {
  color: var(--primary);
}

.team-card__link:hover {
  color: var(--primary);
}

.team-card__destinations {
  margin-top: var(--space-16);
}

.team-card__destinations-label {
  display: block;
  margin-bottom: var(--space-8);
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 600;
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding: 0;
  list-style: none;
}

.team-card__tag {
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-button);
  background-color: rgba(165, 121, 157, 0.12);
  color: var(--primary);
  font-size: 0.8125rem;
}

@media (max-width: 767px) {
  .team-card {
    flex-direction: column;
    text-align: center;
    width: 300px;
    margin-inline: auto;
  }

  .team-card__photo {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 50%;
  }

  .team-card__contact,
  .team-card__tags {
    justify-content: center;
  }
}
