/* ─── Sección Equipo (design system) ─── */
#equipoSection.team-page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: min(1280px, 96vw);
  margin: 0 auto;
  padding: 40px 20px;
  box-shadow: none;
  text-align: center;
}

.team-hero-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 40px;
  padding: 0;
  box-sizing: border-box;
}

#equipoSection.team-page .team-hero-stage > .vibra-section__header {
  margin: 0 auto;
}

.team-tiers,
.team-custom-tiers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--v-space-3, 24px);
  width: 100%;
}

.team-custom-tiers {
  margin: 0 auto;
  max-width: 820px;
}

.team-tier--custom {
  --tier-accent: #a5f3fc;
  --tier-glow: rgba(165, 243, 252, 0.45);
  --tier-head-bg: linear-gradient(90deg, rgba(6, 182, 212, 0.55), rgba(255, 92, 240, 0.45), rgba(34, 211, 238, 0.48));
}

.team-area-manager {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 92, 240, 0.45);
  background: rgba(0, 0, 0, 0.2);
}

.team-area-manager__summary {
  cursor: pointer;
  font-weight: 700;
  color: #ff9aeb;
}

.team-area-manager__hint {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.team-area-create-btn {
  width: 100%;
  margin-top: 0.25rem;
}

.team-custom-areas-list {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.team-custom-areas-list__title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.team-custom-areas-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.88rem;
}

.team-area-delete-warn {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: #ffb347;
}

.team-area-delete-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.team-area-delete-btn {
  width: 100%;
}

.team-tier {
  --tier-glow: rgba(255, 92, 240, 0.45);
  --tier-accent: #ff5cf0;
  --tier-head-bg: linear-gradient(90deg, rgba(200, 0, 200, 0.55), rgba(255, 92, 240, 0.48), rgba(255, 154, 235, 0.42));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: var(--v-space-2, 16px);
  border-radius: var(--v-radius-card, 16px);
  background: var(--v-glass-bg, rgba(12, 6, 24, 0.72));
  backdrop-filter: var(--v-glass-blur, blur(12px));
  -webkit-backdrop-filter: var(--v-glass-blur, blur(12px));
  border: 1px solid var(--v-glass-border, rgba(255, 154, 235, 0.28));
  border-left: 3px solid var(--tier-accent);
  box-shadow: var(--v-glow-lg, 0 8px 28px rgba(200, 0, 200, 0.22));
}

.team-tier[data-tier="administradores"],
.team-tier[data-tier="coordinadores"],
.team-tier[data-tier="djs"],
.team-tier[data-tier="guias"] {
  max-width: 780px;
}

.team-tier[data-tier="duenos"] {
  --tier-accent: #fde047;
  --tier-glow: rgba(253, 224, 71, 0.4);
  --tier-head-bg: linear-gradient(90deg, rgba(180, 120, 0, 0.55), rgba(255, 92, 240, 0.5), rgba(255, 200, 100, 0.45));
}

.team-tier[data-tier="administradores"] {
  --tier-accent: #fbcfe8;
  --tier-glow: rgba(251, 207, 232, 0.45);
  --tier-head-bg: linear-gradient(90deg, rgba(219, 39, 119, 0.6), rgba(255, 92, 240, 0.55), rgba(255, 154, 235, 0.48));
}

.team-tier[data-tier="coordinadores"] {
  --tier-accent: #ddd6fe;
  --tier-glow: rgba(221, 214, 254, 0.4);
  --tier-head-bg: linear-gradient(90deg, rgba(124, 58, 237, 0.55), rgba(200, 0, 200, 0.5), rgba(167, 139, 250, 0.48));
}

.team-tier[data-tier="djs"] {
  --tier-accent: #ff9aeb;
  --tier-glow: rgba(255, 154, 235, 0.5);
  --tier-head-bg: linear-gradient(90deg, rgba(200, 0, 200, 0.62), rgba(255, 92, 240, 0.58), rgba(255, 154, 235, 0.52));
}

.team-tier[data-tier="guias"] {
  --tier-accent: #a5f3fc;
  --tier-glow: rgba(165, 243, 252, 0.38);
  --tier-head-bg: linear-gradient(90deg, rgba(6, 182, 212, 0.45), rgba(200, 0, 200, 0.5), rgba(255, 154, 235, 0.45));
}

.team-tier[data-tier="publicistas"] {
  --tier-accent: #fdba74;
  --tier-glow: rgba(253, 186, 116, 0.4);
  --tier-head-bg: linear-gradient(90deg, rgba(234, 88, 12, 0.5), rgba(255, 92, 240, 0.52), rgba(255, 154, 235, 0.48));
}

.team-tier[data-tier="eventos"] {
  --tier-accent: #f9a8d4;
  --tier-glow: rgba(249, 168, 212, 0.42);
  --tier-head-bg: linear-gradient(90deg, rgba(236, 72, 153, 0.55), rgba(255, 92, 240, 0.5), rgba(251, 207, 232, 0.48));
}

.team-tier[data-tier="constructores"] {
  --tier-accent: #86efac;
  --tier-glow: rgba(134, 239, 172, 0.38);
  --tier-head-bg: linear-gradient(90deg, rgba(22, 163, 74, 0.5), rgba(200, 0, 200, 0.48), rgba(74, 222, 128, 0.45));
}

.team-tier[data-tier="reclutadores"] {
  --tier-accent: #93c5fd;
  --tier-glow: rgba(147, 197, 253, 0.4);
  --tier-head-bg: linear-gradient(90deg, rgba(37, 99, 235, 0.5), rgba(255, 92, 240, 0.48), rgba(96, 165, 250, 0.45));
}

#equipoSection .team-tier-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0 0 10px;
  padding: 15px 16px;
  text-align: center;
  border-radius: calc(var(--v-radius-card, 16px) - 4px);
  background: var(--tier-head-bg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-sizing: border-box;
}

#equipoSection .team-tier-title-row {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 auto;
}

#equipoSection .team-tier-icon {
  position: static;
  left: auto;
  top: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  font-size: 0.82rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 12px var(--tier-glow);
}

#equipoSection .team-tier-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  width: 100%;
  flex: 0 1 auto;
}

#equipoSection .team-tier-label h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
}

.team-tier-label p {
  margin: 1px 0 0;
  font-size: 0.7rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.78);
}

#equipoSection .team-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--v-space-2, 16px);
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

#equipoSection .team-grid:empty {
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
}

#equipoSection .team-grid:empty::after {
  content: "Próximamente";
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.team-tier[data-tier="duenos"] .team-grid {
  max-width: 520px;
}

#equipoSection .team-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 154, 235, 0.22) 50%,
    rgba(128, 0, 255, 0.35) 100%
  );
}

#equipoSection .team-card::before {
  background: linear-gradient(90deg, transparent, var(--tier-accent, #ff5cf0), transparent);
}

#equipoSection .team-card img:not(.vibra-card__avatar) {
  width: 100%;
  height: 148px;
  margin-top: var(--v-space-1, 8px);
  padding: 0 6px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

#equipoSection .team-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 0.45rem;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

#equipoSection .team-card p:first-of-type {
  margin-top: auto;
  padding: 0.35rem 0.5rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

#equipoSection .team-card p + p,
#equipoSection .team-card .team-card-role {
  margin: -0.15rem 0.4rem 0.45rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1a0a2e;
  background: var(--tier-accent, #ff9aeb);
  border-radius: 6px;
  display: inline-block;
  max-width: calc(100% - 0.8rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

#equipoSection .team-card .team-card-name {
  margin-top: auto;
  padding: 0.35rem 0.5rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 520px) {
  #equipoSection.team-page {
    padding: 28px 16px;
  }

  .team-hero-stage {
    margin-bottom: 28px;
  }

  .team-tier {
    padding: var(--v-space-2, 16px) var(--v-space-1, 8px);
  }

  #equipoSection .team-tier-head {
    flex-direction: column;
    justify-content: center;
    padding: 15px 14px;
  }

  #equipoSection .team-tier-label {
    align-items: center;
    text-align: center;
  }

  #equipoSection .team-grid {
    gap: var(--v-space-1, 8px);
  }

  #equipoSection .team-card,
  #equipoSection .vibra-card--sm {
    flex: 0 1 130px;
    width: 130px;
    max-width: 130px;
    min-height: 190px;
  }

  #equipoSection .team-card img:not(.vibra-card__avatar),
  #equipoSection .vibra-card--sm .vibra-card__avatar {
    height: 130px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .team-tier {
    animation: teamTierReveal 0.55s ease backwards;
  }

  .team-tiers > .team-tier:nth-child(1) { animation-delay: 0.04s; }
  .team-tiers > .team-tier:nth-child(2) { animation-delay: 0.08s; }
  .team-tiers > .team-tier:nth-child(3) { animation-delay: 0.12s; }
  .team-tiers > .team-tier:nth-child(4) { animation-delay: 0.16s; }
  .team-tiers > .team-tier:nth-child(5) { animation-delay: 0.2s; }
  .team-tiers > .team-tier:nth-child(6) { animation-delay: 0.24s; }
  .team-tiers > .team-tier:nth-child(7) { animation-delay: 0.28s; }
  .team-tiers > .team-tier:nth-child(8) { animation-delay: 0.32s; }
  .team-tiers > .team-tier:nth-child(9) { animation-delay: 0.36s; }
}

@keyframes teamTierReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
