/* ==========================================================================
   09. SECTION: NUESTRO EQUIPO (TEAM) COMPONENT
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-width: 1100px;
  width: 100%;
  margin-top: 15px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 16px;
  border-radius: 20px;
  background: var(--bg-card);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
}

/* Stagger the reveal-on-scroll across the grid, left to right, row by row */
.team-card:nth-child(1) { transition-delay: 0s; }
.team-card:nth-child(2) { transition-delay: 0.08s; }
.team-card:nth-child(3) { transition-delay: 0.16s; }
.team-card:nth-child(4) { transition-delay: 0.24s; }
.team-card:nth-child(5) { transition-delay: 0.32s; }
.team-card:nth-child(6) { transition-delay: 0.4s; }
.team-card:nth-child(7) { transition-delay: 0.48s; }
.team-card:nth-child(8) { transition-delay: 0.56s; }

.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-red-glow) 0%, var(--accent-gold) 55%, var(--accent-gold-bright) 100%);
  box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.15);
  margin-bottom: 16px;
  transition: var(--transition);
}

.team-card:hover .team-avatar {
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(255, 77, 109, 0.55), 0 0 0 3px rgba(255, 23, 68, 0.3);
}

.team-avatar span {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  letter-spacing: 0.3px;
}
