/* ========================================
   EQUIPO — Team (orbital rings)
   ======================================== */

.bb-team { position: relative; }
.bb-team::before {
  content: ''; position: absolute; top: 20%; left: -8%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(181,101,29,0.08) 0%, transparent 60%);
  border-radius: 999px; filter: blur(80px); pointer-events: none;
}
.bb-team::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(10,10,10,1) 0%, transparent 12%, transparent 88%, rgba(10,10,10,1) 100%);
  pointer-events: none; z-index: 0;
}
.bb-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
  max-width: 960px;
  margin: 0 auto;
}
.bb-team__member {
  text-align: center;
  position: relative;
}

/* --- Photo container (expanded for rings) --- */
.bb-team__photo {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 24px;
  aspect-ratio: 1;
  overflow: visible;
  position: relative;
  border-radius: 50%;
}
.bb-team__photo img {
  position: absolute;
  top: 50%; left: 50%;
  width: 83%;
  height: 83%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(0.2);
  transition: filter 400ms var(--bb-ease), transform 400ms var(--bb-ease);
  z-index: 1;
}
.bb-team__member:hover .bb-team__photo img {
  filter: grayscale(0) brightness(0.15);
  transform: translate(-50%, -50%) scale(1.04);
}

/* --- Description overlay --- */
.bb-team__desc {
  position: absolute;
  top: 50%; left: 50%;
  width: 83%; height: 83%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: var(--bb-bone);
  opacity: 0;
  transition: opacity 400ms var(--bb-ease);
  pointer-events: none;
  z-index: 2;
}
.bb-team__member:hover .bb-team__desc {
  opacity: 1;
}

/* --- Ring inner (dashed, clockwise) --- */
.bb-team__ring-inner {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 1px dashed rgba(181,101,29,0.25);
  animation: bb-team-orbit 36s linear infinite;
  pointer-events: none;
}
.bb-team__ring-inner::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  background: var(--bb-copper);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(181,101,29,0.5);
}

/* --- Ring outer (solid, counter-clockwise) --- */
.bb-team__ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(181,101,29,0.15);
  animation: bb-team-orbit-reverse 54s linear infinite;
  pointer-events: none;
}
.bb-team__ring-outer::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 50%;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  background: var(--bb-copper);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(181,101,29,0.4);
}

/* Stagger animation per member */
.bb-team__member:nth-child(2) .bb-team__ring-inner { animation-delay: -5s; }
.bb-team__member:nth-child(2) .bb-team__ring-outer { animation-delay: -10s; }
.bb-team__member:nth-child(3) .bb-team__ring-inner { animation-delay: -11s; }
.bb-team__member:nth-child(3) .bb-team__ring-outer { animation-delay: -20s; }
.bb-team__member:nth-child(4) .bb-team__ring-inner { animation-delay: -17s; }
.bb-team__member:nth-child(4) .bb-team__ring-outer { animation-delay: -30s; }
.bb-team__member:nth-child(5) .bb-team__ring-inner { animation-delay: -23s; }
.bb-team__member:nth-child(5) .bb-team__ring-outer { animation-delay: -40s; }
.bb-team__member:nth-child(6) .bb-team__ring-inner { animation-delay: -29s; }
.bb-team__member:nth-child(6) .bb-team__ring-outer { animation-delay: -14s; }
.bb-team__member:nth-child(7) .bb-team__ring-inner { animation-delay: -8s; }
.bb-team__member:nth-child(7) .bb-team__ring-outer { animation-delay: -46s; }
.bb-team__member:nth-child(8) .bb-team__ring-inner { animation-delay: -33s; }
.bb-team__member:nth-child(8) .bb-team__ring-outer { animation-delay: -24s; }

/* Hover: accelerate orbits */
.bb-team__member:hover .bb-team__ring-inner {
  animation-duration: 8s;
}
.bb-team__member:hover .bb-team__ring-outer {
  animation-duration: 12s;
}

/* --- Name & role --- */
.bb-team__name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--bb-fg-1);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.bb-team__role {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  color: var(--bb-copper);
  letter-spacing: 0.04em;
}

.bb-team__grid > :nth-child(n) { grid-column: auto; }

/* ---------- KEYFRAMES ---------- */
@keyframes bb-team-orbit {
  to { transform: rotate(360deg); }
}
@keyframes bb-team-orbit-reverse {
  to { transform: rotate(-360deg); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
  .bb-team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }
  .bb-team__grid > :nth-child(n) { grid-column: auto !important; }
  .bb-team__photo { max-width: 170px; }
  .bb-team__name { font-size: 16px; }
  .bb-team__desc { font-size: 9px; padding: 20px; line-height: 1.4; }
  .bb-team__ring-inner { animation-duration: 50s; }
  .bb-team__ring-outer { animation-duration: 72s; }
  .bb-team__ring-inner::after { width: 5px; height: 5px; margin-left: -2.5px; top: -2.5px; }
  .bb-team__ring-outer::after { width: 4px; height: 4px; margin-left: -2px; bottom: -2px; }
  .bb-team::before { display: none; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .bb-team__ring-inner,
  .bb-team__ring-outer {
    animation: none;
  }
  .bb-team__photo img { transition: none; }
  .bb-team__desc { transition: none; }
}
