.team-hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-ultra) 0%, var(--color-light) 50%, var(--color-ultra) 100%);
}

.team-hero-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.team-hero-title {
  margin-bottom: 0.5rem;
  color: var(--color-dark);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 700;
}

.team-hero-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: #6c6966;
}

.team-main-card-section {
  padding: 1.5rem 0 2.5rem;
}

.team-main-card {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.team-main-card-inner {
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.team-avatar-wrapper {
  width: 300px;
  height: 300px;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 4px solid var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

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

.team-name {
  margin-bottom: 0.25rem;
  color: var(--color-dark);
  font-weight: 700;
}

.team-role {
  margin-bottom: 0.1rem;
  color: #6c6966;
  font-weight: 600;
}

.team-description {
  margin-bottom: 1.5rem;
  color: #5b5754;
}

.team-formation-section,
.team-specialties-section {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, var(--color-ultra) 0%, var(--color-light) 50%, var(--color-ultra) 100%);
}

.team-section-title {
  margin-bottom: 1.75rem;
  color: var(--color-dark);
  text-align: center;
  font-weight: 700;
}

.formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.formation-card {
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.formation-card h3 {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.formation-subtitle {
  margin-bottom: 0;
  color: #6c6966;
}

.especialidades-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.especialidad-pill {
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.team-cta {
  padding: 3rem 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(250, 245, 237, 0.9) 0%, rgba(255, 247, 230, 0.95) 50%, rgba(250, 245, 237, 0.9) 100%),
    url("../imagenes/fundo.png") center / cover no-repeat;
}

.team-cta-inner {
  max-width: 760px;
}

.team-cta-title {
  margin-bottom: 0.5rem;
  color: var(--color-dark);
  font-weight: 700;
}

.team-cta-text {
  margin-bottom: 1.5rem;
  color: #5b5754;
}

@media (max-width: 767.98px) {
  .team-hero-section {
    padding: 2.5rem 0 1.5rem;
  }

  .team-main-card-section,
  .team-formation-section,
  .team-specialties-section {
    padding: 1.75rem 0;
  }

  .team-cta {
    padding: 2.5rem 0;
  }

  .team-section-title {
    margin-bottom: 1.25rem;
  }

  .team-avatar-wrapper {
    width: 220px;
    height: 220px;
  }
}
