/* =========================================================
   DATOS · TEAM HEADER + TABS INTEGRADAS
   ========================================================= */

.datos-team-header-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  margin-bottom: 14px;
  padding: 16px 18px;

  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--datos-team-accent) 18%, rgba(255,255,255,.10));
  background:
    radial-gradient(
      circle at top right,
      color-mix(in srgb, var(--datos-team-accent) 12%, transparent) 0%,
      transparent 34%
    ),
    radial-gradient(
      circle at 8% 0%,
      rgba(255,255,255,.055) 0%,
      transparent 32%
    ),
    linear-gradient(
      180deg,
      rgba(12, 18, 18, 0.98) 0%,
      rgba(5, 9, 9, 0.99) 100%
    );

  color: white;
  overflow: hidden;

  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);

  position: relative;
}

.datos-team-header-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.32),
    transparent
  );
  opacity: 0.78;
  pointer-events: none;
}

.datos-team-header-main-row {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.datos-team-header-left {
  display: flex;
  align-items: center;
  gap: 14px;

  min-width: 0;
  flex: 1 1 auto;
}

.datos-team-header-logo-wrap {
  width: 72px;
  height: 72px;
  min-width: 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.13);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 24px rgba(0,0,0,0.20);
}

.datos-team-header-logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
  border-radius: 999px;
}

.datos-team-header-logo-fallback {
  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  font-size: 28px;
  font-weight: 900;

  background: rgba(255,255,255,0.065);
  color: white;
}

.datos-team-header-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.datos-team-header-title {
  max-width: 100%;

  font-size: 25px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.35px;

  color: white;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.datos-team-header-league {
  margin-top: 4px;

  font-size: 13px;
  font-weight: 750;
  color: rgba(255,255,255,0.72);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.datos-team-header-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 7px;
  margin-top: 9px;
}

.datos-team-header-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 25px;
  padding: 5px 10px;

  border-radius: 999px;
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.115);

  color: rgba(255,255,255,0.78);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.datos-team-header-meta-chip--accent {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--datos-team-accent) 16%, transparent) 0%,
      rgba(255,255,255,0.045) 100%
    );
  border-color: color-mix(in srgb, var(--datos-team-accent) 28%, transparent);
  color: white;
}

.datos-team-header-tabs-inline {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  min-width: fit-content;
}


/* =========================================================
   DATOS · TEAM TABS usando diseño de LIGAS
   ========================================================= */

.navbar-team-datos-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 5px;
  border-radius: 999px;

  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.10);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 28px rgba(0,0,0,0.18);
}

.navpill-btn-datos-team {
  appearance: none;
  -webkit-appearance: none;

  border: 0;
  outline: none;
  cursor: pointer;

  padding: 9px 16px;
  border-radius: 999px;

  background: transparent;
  color: rgba(255,255,255,0.62);

  font-size: 13px;
  font-weight: 850;
  letter-spacing: .15px;

  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.navpill-btn-datos-team:hover {
  color: white;
  background: rgba(255,255,255,0.075);
}

.navpill-btn-datos-team.is-active {
  color: white;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.09));

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 6px 18px rgba(0,0,0,0.22);
}


/* =========================================================
   RESPONSIVE · TEAM HEADER
   ========================================================= */

@media (max-width: 980px) {
  .datos-team-header-main-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .datos-team-header-tabs-inline {
    width: 100%;
    justify-content: flex-start;
  }

  .navbar-team-datos-custom {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .datos-team-header-card {
    padding: 14px;
    border-radius: 16px;
  }

  .datos-team-header-logo-wrap {
    width: 62px;
    height: 62px;
    min-width: 62px;
  }

  .datos-team-header-logo-img,
  .datos-team-header-logo-fallback {
    width: 52px;
    height: 52px;
  }

  .datos-team-header-title {
    font-size: 21px;
  }

  .navpill-btn-datos-team {
    padding: 8px 13px;
    font-size: 12px;
  }
}
